Makefile.in 1.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960
  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:=ctype.c
  9. MOBJ:= isalnum.o isalpha.o isascii.o iscntrl.o isdigit.o \
  10. isgraph.o islower.o isprint.o ispunct.o isspace.o \
  11. isupper.o isxdigit.o toascii.o tolower.o toupper.o \
  12. isblank.o isxlower.o isxupper.o
  13. ifeq ($(UCLIBC_HAS_CTYPE_TABLES),y)
  14. MOBJ+= __C_ctype_b.o __C_ctype_tolower.o __C_ctype_toupper.o \
  15. __ctype_b_loc.o __ctype_tolower_loc.o __ctype_toupper_loc.o \
  16. __ctype_assert.o isctype.o
  17. endif
  18. MOBJx= isalnum_l.o isalpha_l.o isascii_l.o iscntrl_l.o isdigit_l.o \
  19. isgraph_l.o islower_l.o isprint_l.o ispunct_l.o isspace_l.o \
  20. isupper_l.o isxdigit_l.o toascii_l.o tolower_l.o toupper_l.o \
  21. isblank_l.o # isxlower_l.o isxupper_l.o
  22. MISC_CTYPE_DIR:=$(top_srcdir)libc/misc/ctype
  23. MISC_CTYPE_OUT:=$(top_builddir)libc/misc/ctype
  24. MISC_CTYPE_MSRC:=$(MISC_CTYPE_DIR)/$(MSRC)
  25. MISC_CTYPE_MOBJ:=$(patsubst %.o,$(MISC_CTYPE_OUT)/%.o,$(MOBJ))
  26. MISC_CTYPE_MOBJx=$(patsubst %.o,$(MISC_CTYPE_OUT)/%.o,$(MOBJx))
  27. # adapt this if MOBJx is done for multi
  28. MISC_CTYPE_DEF:=$(patsubst %,-DL_%,$(subst .o,,$(notdir $(MISC_CTYPE_MOBJ))))
  29. $(MISC_CTYPE_MOBJ): $(MISC_CTYPE_MSRC)
  30. $(compile.m)
  31. $(MISC_CTYPE_MOBJ:.o=.os): $(MISC_CTYPE_MSRC)
  32. $(compile.m)
  33. $(MISC_CTYPE_MOBJx): $(MISC_CTYPE_MSRC)
  34. $(compile.m) -D__UCLIBC_DO_XLOCALE
  35. $(MISC_CTYPE_MOBJx:.o=.os): $(MISC_CTYPE_MSRC)
  36. $(compile.m) -D__UCLIBC_DO_XLOCALE
  37. libc-a-y+=$(MISC_CTYPE_MOBJ)
  38. libc-a-$(UCLIBC_HAS_XLOCALE)+=$(MISC_CTYPE_MOBJx)
  39. libc-so-y+=$(MISC_CTYPE_MOBJ:.o=.os)
  40. libc-so-$(UCLIBC_HAS_XLOCALE)+=$(MISC_CTYPE_MOBJx:.o=.os)
  41. CFLAGS-multi-y+=$(MISC_CTYPE_DEF)
  42. libc-multi-y+=$(MISC_CTYPE_MSRC)
  43. libc-nomulti-$(UCLIBC_HAS_XLOCALE)+=$(MISC_CTYPE_MOBJx)
  44. objclean-y+=misc_ctype_objclean
  45. misc_ctype_objclean:
  46. $(RM) $(MISC_CTYPE_OUT)/*.{o,os}