Makefile.in 934 B

1234567891011121314151617181920212223242526272829303132
  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-y :=
  15. CSRC-$(UCLIBC_HAS_WCHAR) += $(COM_SRC)
  16. CSRC-$(UCLIBC_HAS_XLOCALE) += $(patsubst %.c,%_l.c,$(COM_SRC))
  17. MISC_WCTYPE_DIR := $(top_srcdir)libc/misc/wctype
  18. MISC_WCTYPE_OUT := $(top_builddir)libc/misc/wctype
  19. MISC_WCTYPE_SRC := $(patsubst %.c,$(MISC_WCTYPE_DIR)/%.c,$(CSRC-y))
  20. MISC_WCTYPE_OBJ := $(patsubst %.c,$(MISC_WCTYPE_OUT)/%.o,$(CSRC-y))
  21. libc-y += $(MISC_WCTYPE_OBJ)
  22. objclean-y += CLEAN_libc/misc/wctype
  23. CLEAN_libc/misc/wctype:
  24. $(do_rm) $(addprefix $(MISC_WCTYPE_OUT)/*., o os)