Makefile.in 1.0 KB

12345678910111213141516171819202122232425262728293031323334353637383940
  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. # multi source ctype.c
  8. COM_SRC := \
  9. isalnum.c isalpha.c iscntrl.c isdigit.c \
  10. isgraph.c islower.c isprint.c ispunct.c isspace.c \
  11. isupper.c isxdigit.c tolower.c toupper.c \
  12. isblank.c
  13. ifeq ($(UCLIBC_SUSV4_LEGACY),y)
  14. COM_SRC += isascii.c toascii.c
  15. endif
  16. CSRC := $(COM_SRC)
  17. ifeq ($(UCLIBC_HAS_CTYPE_TABLES),y)
  18. CSRC += __C_ctype_b.c __C_ctype_tolower.c __C_ctype_toupper.c \
  19. __ctype_b_loc.c __ctype_tolower_loc.c __ctype_toupper_loc.c \
  20. __ctype_assert.c isctype.c
  21. endif
  22. ifeq ($(UCLIBC_HAS_XLOCALE),y)
  23. CSRC += $(patsubst %.c,%_l.c,$(COM_SRC))
  24. endif
  25. MISC_CTYPE_DIR := $(top_srcdir)libc/misc/ctype
  26. MISC_CTYPE_OUT := $(top_builddir)libc/misc/ctype
  27. MISC_CTYPE_SRC := $(patsubst %.c,$(MISC_CTYPE_DIR)/%.c,$(CSRC))
  28. MISC_CTYPE_OBJ := $(patsubst %.c,$(MISC_CTYPE_OUT)/%.o,$(CSRC))
  29. libc-y += $(MISC_CTYPE_OBJ)
  30. objclean-y += misc_ctype_clean
  31. misc_ctype_clean:
  32. $(do_rm) $(addprefix $(MISC_CTYPE_OUT)/*., o os)