| @@ -1,14 +1,14 @@ | | | @@ -1,14 +1,14 @@ |
1 | # $NetBSD: Makefile,v 1.35 2024/04/20 08:03:08 rillig Exp $ | | 1 | # $NetBSD: Makefile,v 1.36 2024/04/21 17:19:52 rillig Exp $ |
2 | | | 2 | |
3 | LIBISPRIVATE=yes | | 3 | LIBISPRIVATE=yes |
4 | | | 4 | |
5 | LIB=ntp | | 5 | LIB=ntp |
6 | | | 6 | |
7 | .include <bsd.own.mk> | | 7 | .include <bsd.own.mk> |
8 | | | 8 | |
9 | .include "${.CURDIR}/../Makefile.inc" | | 9 | .include "${.CURDIR}/../Makefile.inc" |
10 | | | 10 | |
11 | DIST= ${IDIST}/libntp | | 11 | DIST= ${IDIST}/libntp |
12 | | | 12 | |
13 | .PATH.c: ${DIST} | | 13 | .PATH.c: ${DIST} |
14 | | | 14 | |
| @@ -78,25 +78,25 @@ timetoa.c \ | | | @@ -78,25 +78,25 @@ timetoa.c \ |
78 | timexsup.c \ | | 78 | timexsup.c \ |
79 | uglydate.c \ | | 79 | uglydate.c \ |
80 | vint64ops.c \ | | 80 | vint64ops.c \ |
81 | work_fork.c \ | | 81 | work_fork.c \ |
82 | work_thread.c \ | | 82 | work_thread.c \ |
83 | xsbprintf.c \ | | 83 | xsbprintf.c \ |
84 | ymd2yd.c | | 84 | ymd2yd.c |
85 | | | 85 | |
86 | CPPFLAGS+= -I${IDIST}/sntp/libopts | | 86 | CPPFLAGS+= -I${IDIST}/sntp/libopts |
87 | | | 87 | |
88 | # For MKREPRO, avoid using __DATE__ and __TIME__. | | 88 | # For MKREPRO, avoid using __DATE__ and __TIME__. |
89 | .if ${MKREPRO:Uno} == "yes" | | 89 | .if ${MKREPRO:Uno} == "yes" |
90 | MKREPRO_CPPFLAGS.ntp_calendar.c:= \ | | 90 | MKREPRO_CPPFLAGS.ntp_calendar.c:= \ |
91 | -DMKREPRO_DATE=\"${%b %e %Y:L:gmtime=${MKREPRO_TIMESTAMP}:Q}\" \ | | 91 | -DMKREPRO_DATE=\"${%b %e %Y:L:${:Ugmtime=${MKREPRO_TIMESTAMP}}:Q}\" \ |
92 | -DMKREPRO_TIME=\"${%T:L:gmtime=${MKREPRO_TIMESTAMP}:Q}\" | | 92 | -DMKREPRO_TIME=\"${%T:L:${:Ugmtime=${MKREPRO_TIMESTAMP}}:Q}\" |
93 | CPPFLAGS.ntp_calendar.c += ${MKREPRO_CPPFLAGS.ntp_calendar.c} | | 93 | CPPFLAGS.ntp_calendar.c += ${MKREPRO_CPPFLAGS.ntp_calendar.c} |
94 | .endif | | 94 | .endif |
95 | | | 95 | |
96 | COPTS.timetoa.c+= ${CC_WNO_FORMAT_TRUNCATION} | | 96 | COPTS.timetoa.c+= ${CC_WNO_FORMAT_TRUNCATION} |
97 | COPTS.socktoa.c+= ${${ACTIVE_CC} == "gcc" && ${HAVE_GCC:U0} >= 10:? -Wno-restrict :} | | 97 | COPTS.socktoa.c+= ${${ACTIVE_CC} == "gcc" && ${HAVE_GCC:U0} >= 10:? -Wno-restrict :} |
98 | COPTS.socktohost.c+= ${${ACTIVE_CC} == "gcc" && ${HAVE_GCC:U0} >= 10:? -Wno-restrict :} | | 98 | COPTS.socktohost.c+= ${${ACTIVE_CC} == "gcc" && ${HAVE_GCC:U0} >= 10:? -Wno-restrict :} |
99 | | | 99 | |
100 | COPTS.a_md5encrypt.c+= -Wno-error=deprecated-declarations | | 100 | COPTS.a_md5encrypt.c+= -Wno-error=deprecated-declarations |
101 | | | 101 | |
102 | .include <bsd.lib.mk> | | 102 | .include <bsd.lib.mk> |