Makefile.in 1.8 KB

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