|
Packit |
6c4009 |
# Copyright (C) 1991-2018 Free Software Foundation, Inc.
|
|
Packit |
6c4009 |
# This file is part of the GNU C Library.
|
|
Packit |
6c4009 |
|
|
Packit |
6c4009 |
# The GNU C Library is free software; you can redistribute it and/or
|
|
Packit |
6c4009 |
# modify it under the terms of the GNU Lesser General Public
|
|
Packit |
6c4009 |
# License as published by the Free Software Foundation; either
|
|
Packit |
6c4009 |
# version 2.1 of the License, or (at your option) any later version.
|
|
Packit |
6c4009 |
|
|
Packit |
6c4009 |
# The GNU C Library is distributed in the hope that it will be useful,
|
|
Packit |
6c4009 |
# but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
Packit |
6c4009 |
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
|
|
Packit |
6c4009 |
# Lesser General Public License for more details.
|
|
Packit |
6c4009 |
|
|
Packit |
6c4009 |
# You should have received a copy of the GNU Lesser General Public
|
|
Packit |
6c4009 |
# License along with the GNU C Library; if not, see
|
|
Packit |
6c4009 |
# <http://www.gnu.org/licenses/>.
|
|
Packit |
6c4009 |
|
|
Packit |
6c4009 |
#
|
|
Packit |
6c4009 |
# Makefile for time routines
|
|
Packit |
6c4009 |
#
|
|
Packit |
6c4009 |
subdir := time
|
|
Packit |
6c4009 |
|
|
Packit |
6c4009 |
include ../Makeconfig
|
|
Packit |
6c4009 |
|
|
Packit |
6c4009 |
headers := time.h sys/time.h sys/timeb.h bits/time.h \
|
|
Packit |
6c4009 |
bits/types/clockid_t.h bits/types/clock_t.h \
|
|
Packit |
6c4009 |
bits/types/struct_itimerspec.h \
|
|
Packit |
6c4009 |
bits/types/struct_timespec.h bits/types/struct_timeval.h \
|
|
Packit |
6c4009 |
bits/types/struct_tm.h bits/types/timer_t.h \
|
|
Packit |
6c4009 |
bits/types/time_t.h
|
|
Packit |
6c4009 |
|
|
Packit |
6c4009 |
routines := offtime asctime clock ctime ctime_r difftime \
|
|
Packit |
6c4009 |
gmtime localtime mktime time \
|
|
Packit |
6c4009 |
gettimeofday settimeofday adjtime tzset \
|
|
Packit |
6c4009 |
tzfile getitimer setitimer \
|
|
Packit |
6c4009 |
stime dysize timegm ftime \
|
|
Packit |
6c4009 |
getdate strptime strptime_l \
|
|
Packit |
6c4009 |
strftime wcsftime strftime_l wcsftime_l \
|
|
Packit Bot |
0c2104 |
timespec_get
|
|
Packit |
6c4009 |
aux := era alt_digit lc-time-cleanup
|
|
Packit |
6c4009 |
|
|
Packit |
6c4009 |
tests := test_time clocktest tst-posixtz tst-strptime tst_wcsftime \
|
|
Packit |
6c4009 |
tst-getdate tst-mktime tst-mktime2 tst-ftime_l tst-strftime \
|
|
Packit |
6c4009 |
tst-mktime3 tst-strptime2 bug-asctime bug-asctime_r bug-mktime1 \
|
|
Packit |
6c4009 |
tst-strptime3 bug-getdate1 tst-strptime-whitespace tst-ftime \
|
|
Packit Bot |
0c2104 |
tst-tzname tst-y2039
|
|
Packit |
6c4009 |
|
|
Packit |
6c4009 |
include ../Rules
|
|
Packit |
6c4009 |
|
|
Packit |
6c4009 |
ifeq ($(run-built-tests),yes)
|
|
Packit |
6c4009 |
LOCALES := de_DE.ISO-8859-1 en_US.ISO-8859-1 ja_JP.EUC-JP fr_FR.UTF-8 \
|
|
Packit |
6c4009 |
es_ES.UTF-8 pl_PL.UTF-8 ru_RU.UTF-8
|
|
Packit |
6c4009 |
include ../gen-locales.mk
|
|
Packit |
6c4009 |
|
|
Packit |
6c4009 |
$(objpfx)tst-ftime_l.out: $(gen-locales)
|
|
Packit |
6c4009 |
$(objpfx)tst-strptime.out: $(gen-locales)
|
|
Packit |
6c4009 |
endif
|
|
Packit |
6c4009 |
|
|
Packit |
6c4009 |
tz-cflags = -DTZDIR='"$(zonedir)"' \
|
|
Packit |
6c4009 |
-DTZDEFAULT='"$(localtime-file)"' \
|
|
Packit |
6c4009 |
-DTZDEFRULES='"$(posixrules-file)"'
|
|
Packit |
6c4009 |
|
|
Packit |
6c4009 |
CFLAGS-tzfile.c += $(tz-cflags)
|
|
Packit |
6c4009 |
CFLAGS-tzset.c += $(tz-cflags)
|
|
Packit |
6c4009 |
CFLAGS-getdate.c += -fexceptions
|
|
Packit |
6c4009 |
|
|
Packit |
6c4009 |
# Don't warn about Y2k problem in strftime format string.
|
|
Packit |
6c4009 |
CFLAGS-test_time.c += -Wno-format
|
|
Packit |
6c4009 |
|
|
Packit |
6c4009 |
tst-getdate-ENV= DATEMSK=datemsk TZDIR=${common-objpfx}timezone/testdata
|
|
Packit |
6c4009 |
test_time-ARGS= EST5EDT CST
|
|
Packit |
6c4009 |
|
|
Packit |
6c4009 |
tst-tzname-ENV = TZDIR=${common-objpfx}timezone/testdata
|
|
Packit |
6c4009 |
CPPFLAGS-tst-tzname.c += -DTZDEFRULES='"$(posixrules-file)"'
|
|
Packit |
6c4009 |
|
|
Packit |
6c4009 |
bug-getdate1-ARGS = ${objpfx}bug-getdate1-fmt
|