Makefile.in 1015 B

1234567891011121314151617181920212223242526272829303132333435363738
  1. # Makefile for uClibc
  2. #
  3. # Copyright (C) 2000-2006 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 isascii.c iscntrl.c isdigit.c \
  10. isgraph.c islower.c isprint.c ispunct.c isspace.c \
  11. isupper.c isxdigit.c toascii.c tolower.c toupper.c \
  12. isblank.c
  13. CSRC := $(COM_SRC)
  14. ifeq ($(UCLIBC_HAS_CTYPE_TABLES),y)
  15. CSRC += __C_ctype_b.c __C_ctype_tolower.c __C_ctype_toupper.c \
  16. __ctype_b_loc.c __ctype_tolower_loc.c __ctype_toupper_loc.c \
  17. __ctype_assert.c isctype.c
  18. endif
  19. ifeq ($(UCLIBC_HAS_XLOCALE),y)
  20. CSRC += $(patsubst %.c,%_l.c,$(COM_SRC))
  21. endif
  22. MISC_CTYPE_DIR := $(top_srcdir)libc/misc/ctype
  23. MISC_CTYPE_OUT := $(top_builddir)libc/misc/ctype
  24. MISC_CTYPE_SRC := $(patsubst %.c,$(MISC_CTYPE_DIR)/%.c,$(CSRC))
  25. MISC_CTYPE_OBJ := $(patsubst %.c,$(MISC_CTYPE_OUT)/%.o,$(CSRC))
  26. libc-y += $(MISC_CTYPE_OBJ)
  27. objclean-y += misc_ctype_objclean
  28. misc_ctype_objclean:
  29. $(RM) $(MISC_CTYPE_OUT)/*.{o,os}