12345678910111213141516171819202122232425262728293031323334353637383940 |
- # Makefile for uClibc
- #
- # Copyright (C) 2000-2008 Erik Andersen <andersen@uclibc.org>
- #
- # Licensed under the LGPL v2.1, see the file COPYING.LIB in this tarball.
- #
- # multi source ctype.c
- COM_SRC := \
- isalnum.c isalpha.c iscntrl.c isdigit.c \
- isgraph.c islower.c isprint.c ispunct.c isspace.c \
- isupper.c isxdigit.c tolower.c toupper.c \
- isblank.c
- ifeq ($(UCLIBC_SUSV4_LEGACY),y)
- COM_SRC += isascii.c toascii.c
- endif
- CSRC := $(COM_SRC)
- ifeq ($(UCLIBC_HAS_CTYPE_TABLES),y)
- CSRC += __C_ctype_b.c __C_ctype_tolower.c __C_ctype_toupper.c \
- __ctype_b_loc.c __ctype_tolower_loc.c __ctype_toupper_loc.c \
- __ctype_assert.c isctype.c
- endif
- ifeq ($(UCLIBC_HAS_XLOCALE),y)
- CSRC += $(patsubst %.c,%_l.c,$(COM_SRC))
- endif
- MISC_CTYPE_DIR := $(top_srcdir)libc/misc/ctype
- MISC_CTYPE_OUT := $(top_builddir)libc/misc/ctype
- MISC_CTYPE_SRC := $(patsubst %.c,$(MISC_CTYPE_DIR)/%.c,$(CSRC))
- MISC_CTYPE_OBJ := $(patsubst %.c,$(MISC_CTYPE_OUT)/%.o,$(CSRC))
- libc-y += $(MISC_CTYPE_OBJ)
- objclean-y += misc_ctype_clean
- misc_ctype_clean:
- $(do_rm) $(addprefix $(MISC_CTYPE_OUT)/*., o os)
|