Makefile.in 1.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354
  1. # Makefile for uClibc
  2. #
  3. # Copyright (C) 2000 by Lineo, inc.
  4. # Copyright (C) 2000-2005 Erik Andersen <andersen@uclibc.org>
  5. #
  6. # Licensed under the LGPL v2.1, see the file COPYING.LIB in this tarball.
  7. #
  8. MSRC:=wctype.c
  9. MOBJ:= iswalnum.o iswalpha.o iswcntrl.o iswdigit.o iswgraph.o \
  10. iswlower.o iswprint.o iswpunct.o iswspace.o iswupper.o \
  11. iswxdigit.o iswblank.o wctrans.o towctrans.o \
  12. wctype.o iswctype.o towlower.o towupper.o
  13. MOBJx= iswalnum_l.o iswalpha_l.o iswcntrl_l.o iswdigit_l.o iswgraph_l.o \
  14. iswlower_l.o iswprint_l.o iswpunct_l.o iswspace_l.o iswupper_l.o \
  15. iswxdigit_l.o iswblank_l.o \
  16. wctype_l.o iswctype_l.o wctrans_l.o towctrans_l.o towlower_l.o towupper_l.o
  17. MISC_WCTYPE_DIR:=$(top_srcdir)libc/misc/wctype
  18. MISC_WCTYPE_OUT:=$(top_builddir)libc/misc/wctype
  19. MISC_WCTYPE_MSRC:=$(MISC_WCTYPE_DIR)/$(MSRC)
  20. MISC_WCTYPE_MOBJ:=$(patsubst %.o,$(MISC_WCTYPE_OUT)/%.o,$(MOBJ))
  21. MISC_WCTYPE_MOBJx=$(patsubst %.o,$(MISC_WCTYPE_OUT)/%.o,$(MOBJx))
  22. # adapt this if MOBJx is done for multi
  23. MISC_WCTYPE_DEF:=$(patsubst %,-DL_%,$(subst .o,,$(notdir $(MISC_WCTYPE_MOBJ))))
  24. $(MISC_WCTYPE_MOBJ): $(MISC_WCTYPE_MSRC)
  25. $(compile.m)
  26. $(MISC_WCTYPE_MOBJ:.o=.os): $(MISC_WCTYPE_MSRC)
  27. $(compile.m)
  28. $(MISC_WCTYPE_MOBJx): $(MISC_WCTYPE_MSRC)
  29. $(compile.m) -D__UCLIBC_DO_XLOCALE
  30. $(MISC_WCTYPE_MOBJx:.o=.os): $(MISC_WCTYPE_MSRC)
  31. $(compile.m) -D__UCLIBC_DO_XLOCALE
  32. libc-a-$(UCLIBC_HAS_WCHAR)+=$(MISC_WCTYPE_MOBJ)
  33. libc-a-$(UCLIBC_HAS_XLOCALE)+=$(MISC_WCTYPE_MOBJx)
  34. libc-so-$(UCLIBC_HAS_WCHAR)+=$(MISC_WCTYPE_MOBJ:.o=.os)
  35. libc-so-$(UCLIBC_HAS_XLOCALE)+=$(MISC_WCTYPE_MOBJx:.o=.os)
  36. CFLAGS-multi-$(UCLIBC_HAS_WCHAR)+=$(MISC_WCTYPE_DEF)
  37. libc-multi-$(UCLIBC_HAS_WCHAR)+=$(MISC_WCTYPE_MSRC)
  38. libc-nomulti-$(UCLIBC_HAS_XLOCALE)+=$(MISC_WCTYPE_MOBJx)
  39. objclean-y+=misc_wctype_objclean
  40. misc_wctype_objclean:
  41. $(RM) $(MISC_WCTYPE_OUT)/*.{o,os}