| @@ -1,14 +1,14 @@ | | | @@ -1,14 +1,14 @@ |
1 | # $NetBSD: Makefile,v 1.33 2024/04/19 14:58:18 jakllsch Exp $ | | 1 | # $NetBSD: Makefile,v 1.34 2024/04/19 16:04:28 jakllsch 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 | |
| @@ -83,27 +83,27 @@ work_thread.c \ | | | @@ -83,27 +83,27 @@ 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 | # Instead, use the date and time from ${MKREPRO_TIMESTAMP} | | 89 | # Instead, use the date and time from ${MKREPRO_TIMESTAMP} |
90 | .if ${MKREPRO:Uno} == "yes" | | 90 | .if ${MKREPRO:Uno} == "yes" |
91 | .if ${MKREPRO_TIMESTAMP:Uundefined} == "undefined" | | 91 | .if ${MKREPRO_TIMESTAMP:Uundefined} == "undefined" |
92 | .error MKREPRO_TIMESTAMP is undefined with MKREPRO active | | 92 | .error MKREPRO_TIMESTAMP is undefined with MKREPRO active |
93 | .endif | | 93 | .endif |
94 | MKREPRO_DATE != env LC_ALL=C ${TOOL_DATE} -u -r "${MKREPRO_TIMESTAMP}" "+%b %e %Y" | | 94 | MKREPRO_DATE != env LC_ALL=C ${TOOL_DATE} -u -r "${MKREPRO_TIMESTAMP}" "+%b %e %Y" |
95 | MKREPRO_TIME != env LC_ALL=C ${TOOL_DATE} -u -r "${MKREPRO_TIMESTAMP}" "+%T" | | 95 | MKREPRO_TIME != env LC_ALL=C ${TOOL_DATE} -u -r "${MKREPRO_TIMESTAMP}" "+%T" |
96 | .if ${MKREPRO_TIME} == "" || ${MKREPRO_TIME} == "" | | 96 | .if ${MKREPRO_DATE} == "" || ${MKREPRO_TIME} == "" |
97 | .error empty MKREPRO_DATE or MKREPRO_TIME | | 97 | .error empty MKREPRO_DATE or MKREPRO_TIME |
98 | .endif | | 98 | .endif |
99 | CPPFLAGS.ntp_calendar.c += -DMKREPRO_DATE=\"${MKREPRO_DATE:Q}\" | | 99 | CPPFLAGS.ntp_calendar.c += -DMKREPRO_DATE=\"${MKREPRO_DATE:Q}\" |
100 | CPPFLAGS.ntp_calendar.c += -DMKREPRO_TIME=\"${MKREPRO_TIME:Q}\" | | 100 | CPPFLAGS.ntp_calendar.c += -DMKREPRO_TIME=\"${MKREPRO_TIME:Q}\" |
101 | .endif | | 101 | .endif |
102 | | | 102 | |
103 | COPTS.timetoa.c+= ${CC_WNO_FORMAT_TRUNCATION} | | 103 | COPTS.timetoa.c+= ${CC_WNO_FORMAT_TRUNCATION} |
104 | COPTS.socktoa.c+= ${${ACTIVE_CC} == "gcc" && ${HAVE_GCC:U0} >= 10:? -Wno-restrict :} | | 104 | COPTS.socktoa.c+= ${${ACTIVE_CC} == "gcc" && ${HAVE_GCC:U0} >= 10:? -Wno-restrict :} |
105 | COPTS.socktohost.c+= ${${ACTIVE_CC} == "gcc" && ${HAVE_GCC:U0} >= 10:? -Wno-restrict :} | | 105 | COPTS.socktohost.c+= ${${ACTIVE_CC} == "gcc" && ${HAVE_GCC:U0} >= 10:? -Wno-restrict :} |
106 | | | 106 | |
107 | COPTS.a_md5encrypt.c+= -Wno-error=deprecated-declarations | | 107 | COPTS.a_md5encrypt.c+= -Wno-error=deprecated-declarations |
108 | | | 108 | |
109 | .include <bsd.lib.mk> | | 109 | .include <bsd.lib.mk> |