OSDN Git Service

64171eb9672b8a16ebebc4bde87a8987fef87179
[uclinux-h8/uclibc-ng.git] / libc / misc / wchar / Makefile.in
1 # Makefile for uClibc
2 #
3 # Copyright (C) 2000 by Lineo, inc.
4 # Copyright (C) 2000-2006 Erik Andersen <andersen@uclibc.org>
5 #
6 # Licensed under the LGPL v2.1, see the file COPYING.LIB in this tarball.
7 #
8
9 # The stdio and time related wide functions are now built in the normal
10 # directories.
11 #
12 # stdio: 
13 #       fwide fgetwc getwchar fgetws fputwc putwchar fputws ungetwc
14 #       getwc (fgetwc alias) getwc_unlocked (fgetwc_unlocked alias)
15 #       putwc (fputwc alias) putwc_unlocked (fputwc_unlocked alias)
16 # time:
17 # wcsftime
18 #
19
20 # multi source wchar.c
21 CSRC := btowc.c wctob.c mbsinit.c mbrlen.c mbrtowc.c wcrtomb.c mbsrtowcs.c \
22         wcsrtombs.c _wchar_utf8sntowcs.c _wchar_wcsntoutf8s.c \
23         mbsnrtowcs.c wcsnrtombs.c wcwidth.c wcswidth.c
24
25 ifeq ($(UCLIBC_HAS_LOCALE),y)
26 CSRC += iconv.c
27 endif
28
29 MISC_WCHAR_DIR := $(top_srcdir)libc/misc/wchar
30 MISC_WCHAR_OUT := $(top_builddir)libc/misc/wchar
31
32 MISC_WCHAR_SRC := $(patsubst %.c,$(MISC_WCHAR_DIR)/%.c,$(CSRC))
33 MISC_WCHAR_OBJ := $(patsubst %.c,$(MISC_WCHAR_OUT)/%.o,$(CSRC))
34
35 libc-$(UCLIBC_HAS_WCHAR) += $(MISC_WCHAR_OBJ)
36
37 objclean-y += misc_wchar_objclean
38
39 misc_wchar_objclean:
40         $(RM) $(MISC_WCHAR_OUT)/*.{o,os}