summaryrefslogtreecommitdiff
path: root/libc/misc/time/Makefile.in
blob: 4c4d510b15f5793d040890c281875234cc6ca2b7 (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
37
38
39
40
41
# Makefile for uClibc
#
# Copyright (C) 2000-2006 Erik Andersen <andersen@uclibc.org>
#
# Licensed under the LGPL v2.1, see the file COPYING.LIB in this tarball.
#

CSRC := adjtime.c
ifeq ($(UCLIBC_SUSV3_LEGACY),y)
CSRC += ftime.c
endif
# multi source time.c
CSRC +=	asctime.c asctime_r.c clock.c ctime.c ctime_r.c gmtime.c gmtime_r.c \
	localtime.c localtime_r.c mktime.c strftime.c strptime.c tzset.c \
	_time_t2tm.c __time_tm.c _time_mktime.c dysize.c timegm.c \
	_time_mktime_tzi.c _time_localtime_tzi.c
ifeq ($(UCLIBC_HAS_FLOATS),y)
CSRC += difftime.c
endif
ifeq ($(UCLIBC_HAS_XLOCALE),y)
CSRC += strftime_l.c strptime_l.c
endif
ifeq ($(UCLIBC_HAS_WCHAR),y)
CSRC += wcsftime.c
ifeq ($(UCLIBC_HAS_XLOCALE),y)
CSRC += wcsftime_l.c
endif
endif

MISC_TIME_DIR := $(top_srcdir)libc/misc/time
MISC_TIME_OUT := $(top_builddir)libc/misc/time

MISC_TIME_SRC := $(patsubst %.c,$(MISC_TIME_DIR)/%.c,$(CSRC))
MISC_TIME_OBJ := $(patsubst %.c,$(MISC_TIME_OUT)/%.o,$(CSRC))

libc-y += $(MISC_TIME_OBJ)

objclean-y += misc_time_objclean

misc_time_objclean:
	$(RM) $(MISC_TIME_OUT)/*.{o,os}