]> rtime.felk.cvut.cz Git - l4.git/blob - l4/pkg/uclibc/lib/contrib/uclibc/libc/misc/ctype/Makefile.in
f4705e1d5c427954696d76a605a646b978f90feb
[l4.git] / l4 / pkg / uclibc / lib / contrib / uclibc / libc / misc / ctype / Makefile.in
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
8 subdirs += libc/misc/ctype
9
10 # multi source ctype.c
11 COM_SRC := \
12         isalnum.c isalpha.c iscntrl.c isdigit.c \
13         isgraph.c islower.c isprint.c ispunct.c isspace.c \
14         isupper.c isxdigit.c tolower.c toupper.c \
15         isblank.c
16 ifeq ($(UCLIBC_SUSV4_LEGACY),y)
17 COM_SRC += isascii.c toascii.c
18 endif
19 CSRC := $(COM_SRC)
20
21 ifeq ($(UCLIBC_HAS_CTYPE_TABLES),y)
22 CSRC += __C_ctype_b.c __C_ctype_tolower.c __C_ctype_toupper.c \
23         __ctype_b_loc.c __ctype_tolower_loc.c __ctype_toupper_loc.c \
24         __ctype_assert.c isctype.c
25 endif
26
27 ifeq ($(UCLIBC_HAS_XLOCALE),y)
28 CSRC += $(patsubst %.c,%_l.c,$(COM_SRC))
29 endif
30
31 MISC_CTYPE_DIR := $(top_srcdir)libc/misc/ctype
32 MISC_CTYPE_OUT := $(top_builddir)libc/misc/ctype
33
34 MISC_CTYPE_SRC := $(patsubst %.c,$(MISC_CTYPE_DIR)/%.c,$(CSRC))
35 MISC_CTYPE_OBJ := $(patsubst %.c,$(MISC_CTYPE_OUT)/%.o,$(CSRC))
36
37 libc-y += $(MISC_CTYPE_OBJ)
38
39 objclean-y += misc_ctype_clean
40
41 misc_ctype_clean:
42         $(do_rm) $(addprefix $(MISC_CTYPE_OUT)/*., o os)