Makefile.in 1.0 KB

123456789101112131415161718192021222324252627282930313233343536373839
  1. # Makefile for uClibc
  2. #
  3. # Copyright (C) 2000 by Lineo, inc.
  4. # Copyright (C) 2000-2006 Erik Andersen <andersen@uclibc.org>
  5. #
  6. # Licensed under the LGPL v2.1, see the file COPYING.LIB in this tarball.
  7. #
  8. # multi source ctype.c
  9. COM_SRC := \
  10. isalnum.c isalpha.c isascii.c iscntrl.c isdigit.c \
  11. isgraph.c islower.c isprint.c ispunct.c isspace.c \
  12. isupper.c isxdigit.c toascii.c tolower.c toupper.c \
  13. isblank.c
  14. CSRC := $(COM_SRC)
  15. ifeq ($(UCLIBC_HAS_CTYPE_TABLES),y)
  16. CSRC += __C_ctype_b.c __C_ctype_tolower.c __C_ctype_toupper.c \
  17. __ctype_b_loc.c __ctype_tolower_loc.c __ctype_toupper_loc.c \
  18. __ctype_assert.c isctype.c
  19. endif
  20. ifeq ($(UCLIBC_HAS_XLOCALE),y)
  21. CSRC += $(patsubst %.c,%_l.c,$(COM_SRC))
  22. endif
  23. MISC_CTYPE_DIR := $(top_srcdir)libc/misc/ctype
  24. MISC_CTYPE_OUT := $(top_builddir)libc/misc/ctype
  25. MISC_CTYPE_SRC := $(patsubst %.c,$(MISC_CTYPE_DIR)/%.c,$(CSRC))
  26. MISC_CTYPE_OBJ := $(patsubst %.c,$(MISC_CTYPE_OUT)/%.o,$(CSRC))
  27. libc-y += $(MISC_CTYPE_OBJ)
  28. objclean-y += misc_ctype_objclean
  29. misc_ctype_objclean:
  30. $(RM) $(MISC_CTYPE_OUT)/*.{o,os}