Makefile.in 1.1 KB

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