aboutsummaryrefslogtreecommitdiff
path: root/lib/libc/stdtime/Makefile.inc
diff options
context:
space:
mode:
authorDag-Erling Smørgrav <des@FreeBSD.org>2023-01-11 09:20:46 +0000
committerDag-Erling Smørgrav <des@FreeBSD.org>2023-01-11 10:39:12 +0000
commit394cf6719a3c665eabe24d96669409e0c5a78076 (patch)
tree6c5e549186b005f660868d72ca488d28723030e6 /lib/libc/stdtime/Makefile.inc
parentd68f15420528e11f69a7bda365608581bfc34e64 (diff)
tzcode: Move configuration into separate header.
MFC after: 1 week Sponsored by: Klara, Inc.
Diffstat (limited to 'lib/libc/stdtime/Makefile.inc')
-rw-r--r--lib/libc/stdtime/Makefile.inc17
1 files changed, 10 insertions, 7 deletions
diff --git a/lib/libc/stdtime/Makefile.inc b/lib/libc/stdtime/Makefile.inc
index a7ef64650ba1..a55cbbb17e24 100644
--- a/lib/libc/stdtime/Makefile.inc
+++ b/lib/libc/stdtime/Makefile.inc
@@ -3,17 +3,20 @@
.PATH: ${LIBC_SRCTOP}/stdtime ${SRCTOP}/contrib/tzcode
-SRCS+= asctime.c difftime.c localtime.c strftime.c strptime.c timelocal.c \
- time32.c
+TZCODE_SRCS= asctime.c difftime.c localtime.c
+STDTIME_SRCS= strftime.c strptime.c timelocal.c
+SRCS+= ${TZCODE_SRCS} ${STDTIME_SRCS} time32.c
-SYM_MAPS+= ${LIBC_SRCTOP}/stdtime/Symbol.map
+SYM_MAPS+= ${LIBC_SRCTOP}/stdtime/Symbol.map
-CFLAGS+= -I${SRCTOP}/contrib/tzcode -I${LIBC_SRCTOP}/stdtime
+.for src in ${TZCODE_SRCS} ${STDTIME_SRCS}
+CFLAGS.${src}+= -I${SRCTOP}/contrib/tzcode -include tzconfig.h
+.endfor
+.for src in ${STDTIME_SRCS}
+CFLAGS.${src}+= -I${LIBC_SRCTOP}/stdtime
+.endfor
-CFLAGS.localtime.c= -fwrapv
CFLAGS.localtime.c+= -DALL_STATE -DTHREAD_SAFE
-CFLAGS.localtime.c+= -DHAVE_TZNAME=2 -DUSG_COMPAT=0 -DALTZONE=0
-CFLAGS.localtime.c+= -DNETBSD_INSPIRED=0 -DSTD_INSPIRED=1
.if ${MK_DETECT_TZ_CHANGES} != "no"
CFLAGS.localtime.c+= -DDETECT_TZ_CHANGES
.endif