Fri Apr 19 16:04:28 2024 UTC (31d)
fix copy/paste-o


(jakllsch)
diff -r1.33 -r1.34 src/external/bsd/ntp/lib/libntp/Makefile

cvs diff -r1.33 -r1.34 src/external/bsd/ntp/lib/libntp/Makefile (switch to unified diff)

--- src/external/bsd/ntp/lib/libntp/Makefile 2024/04/19 14:58:18 1.33
+++ src/external/bsd/ntp/lib/libntp/Makefile 2024/04/19 16:04:28 1.34
@@ -1,109 +1,109 @@ @@ -1,109 +1,109 @@
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
3LIBISPRIVATE=yes 3LIBISPRIVATE=yes
4 4
5LIB=ntp 5LIB=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
11DIST= ${IDIST}/libntp  11DIST= ${IDIST}/libntp
12 12
13.PATH.c: ${DIST} 13.PATH.c: ${DIST}
14 14
15SRCS= \ 15SRCS= \
16a_md5encrypt.c \ 16a_md5encrypt.c \
17adjtime.c \ 17adjtime.c \
18atoint.c \ 18atoint.c \
19atolfp.c \ 19atolfp.c \
20atouint.c \ 20atouint.c \
21audio.c \ 21audio.c \
22authkeys.c \ 22authkeys.c \
23authreadkeys.c \ 23authreadkeys.c \
24authusekey.c \ 24authusekey.c \
25bsd_strerror.c \ 25bsd_strerror.c \
26buftvtots.c \ 26buftvtots.c \
27caljulian.c \ 27caljulian.c \
28caltontp.c \ 28caltontp.c \
29calyearstart.c \ 29calyearstart.c \
30clocktime.c \ 30clocktime.c \
31clocktypes.c \ 31clocktypes.c \
32decodenetnum.c \ 32decodenetnum.c \
33dofptoa.c \ 33dofptoa.c \
34dolfptoa.c \ 34dolfptoa.c \
35emalloc.c \ 35emalloc.c \
36findconfig.c \ 36findconfig.c \
37getopt.c \ 37getopt.c \
38hextoint.c \ 38hextoint.c \
39hextolfp.c \ 39hextolfp.c \
40humandate.c \ 40humandate.c \
41icom.c \ 41icom.c \
42iosignal.c \ 42iosignal.c \
43is_ip_address.c \ 43is_ip_address.c \
44lib_strbuf.c \ 44lib_strbuf.c \
45libssl_compat.c \ 45libssl_compat.c \
46machines.c \ 46machines.c \
47mktime.c \ 47mktime.c \
48modetoa.c \ 48modetoa.c \
49mstolfp.c \ 49mstolfp.c \
50msyslog.c \ 50msyslog.c \
51netof.c \ 51netof.c \
52ntp_calendar.c \ 52ntp_calendar.c \
53ntp_calgps.c \ 53ntp_calgps.c \
54ntp_crypto_rnd.c \ 54ntp_crypto_rnd.c \
55ntp_intres.c \ 55ntp_intres.c \
56ntp_libopts.c \ 56ntp_libopts.c \
57ntp_lineedit.c \ 57ntp_lineedit.c \
58ntp_random.c \ 58ntp_random.c \
59ntp_rfc2553.c \ 59ntp_rfc2553.c \
60ntp_worker.c \ 60ntp_worker.c \
61numtoa.c \ 61numtoa.c \
62numtohost.c \ 62numtohost.c \
63octtoint.c \ 63octtoint.c \
64prettydate.c \ 64prettydate.c \
65recvbuff.c \ 65recvbuff.c \
66refnumtoa.c \ 66refnumtoa.c \
67snprintf.c \ 67snprintf.c \
68socket.c \ 68socket.c \
69socktoa.c \ 69socktoa.c \
70socktohost.c \ 70socktohost.c \
71ssl_init.c \ 71ssl_init.c \
72statestr.c \ 72statestr.c \
73strdup.c \ 73strdup.c \
74syssignal.c \ 74syssignal.c \
75systime.c \ 75systime.c \
76timespecops.c \ 76timespecops.c \
77timetoa.c \ 77timetoa.c \
78timexsup.c \ 78timexsup.c \
79uglydate.c \ 79uglydate.c \
80vint64ops.c \ 80vint64ops.c \
81work_fork.c \ 81work_fork.c \
82work_thread.c \ 82work_thread.c \
83xsbprintf.c \ 83xsbprintf.c \
84ymd2yd.c 84ymd2yd.c
85 85
86CPPFLAGS+= -I${IDIST}/sntp/libopts 86CPPFLAGS+= -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
94MKREPRO_DATE != env LC_ALL=C ${TOOL_DATE} -u -r "${MKREPRO_TIMESTAMP}" "+%b %e %Y" 94MKREPRO_DATE != env LC_ALL=C ${TOOL_DATE} -u -r "${MKREPRO_TIMESTAMP}" "+%b %e %Y"
95MKREPRO_TIME != env LC_ALL=C ${TOOL_DATE} -u -r "${MKREPRO_TIMESTAMP}" "+%T" 95MKREPRO_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
99CPPFLAGS.ntp_calendar.c += -DMKREPRO_DATE=\"${MKREPRO_DATE:Q}\" 99CPPFLAGS.ntp_calendar.c += -DMKREPRO_DATE=\"${MKREPRO_DATE:Q}\"
100CPPFLAGS.ntp_calendar.c += -DMKREPRO_TIME=\"${MKREPRO_TIME:Q}\" 100CPPFLAGS.ntp_calendar.c += -DMKREPRO_TIME=\"${MKREPRO_TIME:Q}\"
101.endif 101.endif
102 102
103COPTS.timetoa.c+= ${CC_WNO_FORMAT_TRUNCATION} 103COPTS.timetoa.c+= ${CC_WNO_FORMAT_TRUNCATION}
104COPTS.socktoa.c+= ${${ACTIVE_CC} == "gcc" && ${HAVE_GCC:U0} >= 10:? -Wno-restrict :} 104COPTS.socktoa.c+= ${${ACTIVE_CC} == "gcc" && ${HAVE_GCC:U0} >= 10:? -Wno-restrict :}
105COPTS.socktohost.c+= ${${ACTIVE_CC} == "gcc" && ${HAVE_GCC:U0} >= 10:? -Wno-restrict :} 105COPTS.socktohost.c+= ${${ACTIVE_CC} == "gcc" && ${HAVE_GCC:U0} >= 10:? -Wno-restrict :}
106 106
107COPTS.a_md5encrypt.c+= -Wno-error=deprecated-declarations 107COPTS.a_md5encrypt.c+= -Wno-error=deprecated-declarations
108 108
109.include <bsd.lib.mk> 109.include <bsd.lib.mk>