Makefile.in 1.9 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556
  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_MOBJ:.o=.os): $(MISC_CTYPE_MSRC)
  30. $(compile.m)
  31. $(MISC_CTYPE_MOBJx) $(MISC_CTYPE_MOBJx:.o=.os): $(MISC_CTYPE_MSRC)
  32. $(compile.m) -D__UCLIBC_DO_XLOCALE
  33. libc-a-y+=$(MISC_CTYPE_MOBJ)
  34. libc-a-$(UCLIBC_HAS_XLOCALE)+=$(MISC_CTYPE_MOBJx)
  35. libc-a-pic-y+=$(MISC_CTYPE_MOBJ:.o=.os)
  36. libc-a-pic-$(UCLIBC_HAS_XLOCALE)+=$(MISC_CTYPE_MOBJx:.o=.os)
  37. libc-so-y+=$(MISC_CTYPE_MOBJ:.o=.os)
  38. libc-so-$(UCLIBC_HAS_XLOCALE)+=$(MISC_CTYPE_MOBJx:.o=.os)
  39. CFLAGS-multi-y+=$(MISC_CTYPE_DEF)
  40. libc-multi-y+=$(MISC_CTYPE_MSRC)
  41. libc-nomulti-$(UCLIBC_HAS_XLOCALE)+=$(MISC_CTYPE_MOBJx)
  42. objclean-y+=misc_ctype_objclean
  43. misc_ctype_objclean:
  44. $(RM) $(MISC_CTYPE_OUT)/*.{o,os}