summaryrefslogtreecommitdiff
path: root/libc/misc/wctype/Makefile.in
blob: 4eacc118e02c57fb7cf7e53f9f071432b2e7067b (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/wctype

# multi source _wctype.c
COM_SRC := \
	iswalnum.c iswalpha.c iswcntrl.c iswdigit.c iswgraph.c \
	iswlower.c iswprint.c iswpunct.c iswspace.c iswupper.c \
	iswxdigit.c iswblank.c wctrans.c towctrans.c \
	wctype.c iswctype.c towlower.c towupper.c

CSRC :=
ifeq ($(UCLIBC_HAS_WCHAR),y)
CSRC += $(COM_SRC)
endif
ifeq ($(UCLIBC_HAS_XLOCALE),y)
CSRC += $(patsubst %.c,%_l.c,$(COM_SRC))
endif

MISC_WCTYPE_DIR := $(top_srcdir)libc/misc/wctype
MISC_WCTYPE_OUT := $(top_builddir)libc/misc/wctype

MISC_WCTYPE_SRC := $(patsubst %.c,$(MISC_WCTYPE_DIR)/%.c,$(CSRC))
MISC_WCTYPE_OBJ := $(patsubst %.c,$(MISC_WCTYPE_OUT)/%.o,$(CSRC))

libc-y += $(MISC_WCTYPE_OBJ)

objclean-y += CLEAN_libc/misc/wctype

CLEAN_libc/misc/wctype:
	$(do_rm) $(addprefix $(MISC_WCTYPE_OUT)/*., o os)