3 # Copyright (C) 2000-2008 Erik Andersen <andersen@uclibc.org>
5 # Licensed under the LGPL v2.1, see the file COPYING.LIB in this tarball.
8 subdirs += libc/misc/time
11 CSRC-$(UCLIBC_SUSV3_LEGACY) += ftime.c
13 CSRC-y += 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 CSRC-$(UCLIBC_HAS_FLOATS) += difftime.c
18 CSRC-$(UCLIBC_HAS_XLOCALE) += strftime_l.c strptime_l.c
19 CSRC-$(UCLIBC_HAS_WCHAR) += wcsftime.c
20 CSRC-$(if $(findstring yy,$(UCLIBC_HAS_WCHAR)$(UCLIBC_HAS_XLOCALE)),y) += \
23 MISC_TIME_DIR := $(top_srcdir)libc/misc/time
24 MISC_TIME_OUT := $(top_builddir)libc/misc/time
26 MISC_TIME_SRC := $(patsubst %.c,$(MISC_TIME_DIR)/%.c,$(CSRC-y))
27 MISC_TIME_OBJ := $(patsubst %.c,$(MISC_TIME_OUT)/%.o,$(CSRC-y))
29 libc-y += $(MISC_TIME_OBJ)
31 objclean-y += CLEAN_libc/misc/time
34 $(do_rm) $(addprefix $(MISC_TIME_OUT)/*., o os)