Makefile.in 958 B

123456789101112131415161718192021222324252627282930313233343536
  1. # Makefile for uClibc
  2. #
  3. # Copyright (C) 2000-2008 Erik Andersen <andersen@uclibc.org>
  4. #
  5. # Licensed under the LGPL v2.1, see the file COPYING.LIB in this tarball.
  6. #
  7. subdirs += libc/misc/wctype
  8. # multi source _wctype.c
  9. COM_SRC := \
  10. iswalnum.c iswalpha.c iswcntrl.c iswdigit.c iswgraph.c \
  11. iswlower.c iswprint.c iswpunct.c iswspace.c iswupper.c \
  12. iswxdigit.c iswblank.c wctrans.c towctrans.c \
  13. wctype.c iswctype.c towlower.c towupper.c
  14. CSRC :=
  15. ifeq ($(UCLIBC_HAS_WCHAR),y)
  16. CSRC += $(COM_SRC)
  17. endif
  18. ifeq ($(UCLIBC_HAS_XLOCALE),y)
  19. CSRC += $(patsubst %.c,%_l.c,$(COM_SRC))
  20. endif
  21. MISC_WCTYPE_DIR := $(top_srcdir)libc/misc/wctype
  22. MISC_WCTYPE_OUT := $(top_builddir)libc/misc/wctype
  23. MISC_WCTYPE_SRC := $(patsubst %.c,$(MISC_WCTYPE_DIR)/%.c,$(CSRC))
  24. MISC_WCTYPE_OBJ := $(patsubst %.c,$(MISC_WCTYPE_OUT)/%.o,$(CSRC))
  25. libc-y += $(MISC_WCTYPE_OBJ)
  26. objclean-y += CLEAN_libc/misc/wctype
  27. CLEAN_libc/misc/wctype:
  28. $(do_rm) $(addprefix $(MISC_WCTYPE_OUT)/*., o os)