# 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.
#

klib-y :=

klib-y += adjtime.o ftime.o

# multi source time.o
klib-y += \
	asctime.o asctime_r.o clock.o ctime.o ctime_r.o gmtime.o gmtime_r.o \
	localtime.o localtime_r.o mktime.o strftime.o strptime.o tzset.o \
	_time_t2tm.o __time_tm.o _time_mktime.o dysize.o timegm.o \
	_time_mktime_tzi.o _time_localtime_tzi.o

ifeq ($(UCLIBC_HAS_FLOATS),y)
klib-y += difftime.o
endif

klib-$(UCLIBC_HAS_XLOCALE) += strftime_l.o strptime_l.o

ifeq ($(UCLIBC_HAS_WCHAR),y)
klib-y += wcsftime.o
klib-$(UCLIBC_HAS_XLOCALE) += wcsftime_l.o
endif
