OSDN Git Service

- less verbose make clean
[uclinux-h8/uClibc.git] / libc / misc / time / 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 CSRC := adjtime.c
9 ifeq ($(UCLIBC_SUSV3_LEGACY),y)
10 CSRC += ftime.c
11 endif
12 # multi source time.c
13 CSRC += asctime.c asctime_r.c clock.c ctime.c ctime_r.c gmtime.c gmtime_r.c \
14         localtime.c localtime_r.c mktime.c strftime.c strptime.c tzset.c \
15         _time_t2tm.c __time_tm.c _time_mktime.c dysize.c timegm.c \
16         _time_mktime_tzi.c _time_localtime_tzi.c
17 ifeq ($(UCLIBC_HAS_FLOATS),y)
18 CSRC += difftime.c
19 endif
20 ifeq ($(UCLIBC_HAS_XLOCALE),y)
21 CSRC += strftime_l.c strptime_l.c
22 endif
23 ifeq ($(UCLIBC_HAS_WCHAR),y)
24 CSRC += wcsftime.c
25 ifeq ($(UCLIBC_HAS_XLOCALE),y)
26 CSRC += wcsftime_l.c
27 endif
28 endif
29
30 MISC_TIME_DIR := $(top_srcdir)libc/misc/time
31 MISC_TIME_OUT := $(top_builddir)libc/misc/time
32
33 MISC_TIME_SRC := $(patsubst %.c,$(MISC_TIME_DIR)/%.c,$(CSRC))
34 MISC_TIME_OBJ := $(patsubst %.c,$(MISC_TIME_OUT)/%.o,$(CSRC))
35
36 libc-y += $(MISC_TIME_OBJ)
37
38 objclean-y += misc_time_clean
39
40 misc_time_clean:
41         $(do_rm) $(addprefix $(MISC_TIME_OUT)/*., o os)