Makefile.in 1.7 KB

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