Makefile.in 909 B

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