blob: 0ebaec2857361659950ce5fd2b5e606b26613041 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
|
# 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.
#
subdirs += libc/misc/ctype
# multi source ctype.c
COM_SRC-y := \
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
COM_SRC-$(UCLIBC_SUSV4_LEGACY) += isascii.c toascii.c
CSRC-y := $(COM_SRC-y)
CSRC-$(UCLIBC_HAS_CTYPE_TABLES) += \
__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
CSRC-$(UCLIBC_HAS_XLOCALE) += $(patsubst %.c,%_l.c,$(COM_SRC-y))
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-y))
MISC_CTYPE_OBJ := $(patsubst %.c,$(MISC_CTYPE_OUT)/%.o,$(CSRC-y))
libc-y += $(MISC_CTYPE_OBJ)
objclean-y += CLEAN_libc/misc/ctype
CLEAN_libc/misc/ctype:
$(do_rm) $(addprefix $(MISC_CTYPE_OUT)/*., o os)
|