Makefile.in 1.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142
  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 := \
  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. ifeq ($(UCLIBC_SUSV4_LEGACY),y)
  15. COM_SRC += isascii.c toascii.c
  16. endif
  17. CSRC := $(COM_SRC)
  18. ifeq ($(UCLIBC_HAS_CTYPE_TABLES),y)
  19. CSRC += __C_ctype_b.c __C_ctype_tolower.c __C_ctype_toupper.c \
  20. __ctype_b_loc.c __ctype_tolower_loc.c __ctype_toupper_loc.c \
  21. __ctype_assert.c isctype.c
  22. endif
  23. ifeq ($(UCLIBC_HAS_XLOCALE),y)
  24. CSRC += $(patsubst %.c,%_l.c,$(COM_SRC))
  25. endif
  26. MISC_CTYPE_DIR := $(top_srcdir)libc/misc/ctype
  27. MISC_CTYPE_OUT := $(top_builddir)libc/misc/ctype
  28. MISC_CTYPE_SRC := $(patsubst %.c,$(MISC_CTYPE_DIR)/%.c,$(CSRC))
  29. MISC_CTYPE_OBJ := $(patsubst %.c,$(MISC_CTYPE_OUT)/%.o,$(CSRC))
  30. libc-y += $(MISC_CTYPE_OBJ)
  31. objclean-y += misc_ctype_clean
  32. misc_ctype_clean:
  33. $(do_rm) $(addprefix $(MISC_CTYPE_OUT)/*., o os)