Makefile.in 1.8 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950
  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_MOBJ:.o=.os): $(MISC_WCTYPE_MSRC)
  25. $(compile.m)
  26. $(MISC_WCTYPE_MOBJx) $(MISC_WCTYPE_MOBJx:.o=.os): $(MISC_WCTYPE_MSRC)
  27. $(compile.m) -D__UCLIBC_DO_XLOCALE
  28. libc-a-$(UCLIBC_HAS_WCHAR)+=$(MISC_WCTYPE_MOBJ)
  29. libc-a-$(UCLIBC_HAS_XLOCALE)+=$(MISC_WCTYPE_MOBJx)
  30. libc-a-pic-$(UCLIBC_HAS_WCHAR)+=$(MISC_WCTYPE_MOBJ:.o=.os)
  31. libc-a-pic-$(UCLIBC_HAS_XLOCALE)+=$(MISC_WCTYPE_MOBJx:.o=.os)
  32. libc-so-$(UCLIBC_HAS_WCHAR)+=$(MISC_WCTYPE_MOBJ:.o=.os)
  33. libc-so-$(UCLIBC_HAS_XLOCALE)+=$(MISC_WCTYPE_MOBJx:.o=.os)
  34. CFLAGS-multi-$(UCLIBC_HAS_WCHAR)+=$(MISC_WCTYPE_DEF)
  35. libc-multi-$(UCLIBC_HAS_WCHAR)+=$(MISC_WCTYPE_MSRC)
  36. libc-nomulti-$(UCLIBC_HAS_XLOCALE)+=$(MISC_WCTYPE_MOBJx)
  37. objclean-y+=misc_wctype_objclean
  38. misc_wctype_objclean:
  39. $(RM) $(MISC_WCTYPE_OUT)/*.{o,os}