| @@ -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 | |
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 | |
15 | SRCS= \ | | 15 | SRCS= \ |
16 | a_md5encrypt.c \ | | 16 | a_md5encrypt.c \ |
17 | adjtime.c \ | | 17 | adjtime.c \ |
18 | atoint.c \ | | 18 | atoint.c \ |
19 | atolfp.c \ | | 19 | atolfp.c \ |
20 | atouint.c \ | | 20 | atouint.c \ |
21 | audio.c \ | | 21 | audio.c \ |
22 | authkeys.c \ | | 22 | authkeys.c \ |
23 | authreadkeys.c \ | | 23 | authreadkeys.c \ |
24 | authusekey.c \ | | 24 | authusekey.c \ |
25 | bsd_strerror.c \ | | 25 | bsd_strerror.c \ |
26 | buftvtots.c \ | | 26 | buftvtots.c \ |
27 | caljulian.c \ | | 27 | caljulian.c \ |
28 | caltontp.c \ | | 28 | caltontp.c \ |
29 | calyearstart.c \ | | 29 | calyearstart.c \ |
30 | clocktime.c \ | | 30 | clocktime.c \ |
31 | clocktypes.c \ | | 31 | clocktypes.c \ |
32 | decodenetnum.c \ | | 32 | decodenetnum.c \ |
33 | dofptoa.c \ | | 33 | dofptoa.c \ |
34 | dolfptoa.c \ | | 34 | dolfptoa.c \ |
35 | emalloc.c \ | | 35 | emalloc.c \ |
36 | findconfig.c \ | | 36 | findconfig.c \ |
37 | getopt.c \ | | 37 | getopt.c \ |
38 | hextoint.c \ | | 38 | hextoint.c \ |
39 | hextolfp.c \ | | 39 | hextolfp.c \ |
40 | humandate.c \ | | 40 | humandate.c \ |
41 | icom.c \ | | 41 | icom.c \ |
42 | iosignal.c \ | | 42 | iosignal.c \ |
43 | is_ip_address.c \ | | 43 | is_ip_address.c \ |
44 | lib_strbuf.c \ | | 44 | lib_strbuf.c \ |
45 | libssl_compat.c \ | | 45 | libssl_compat.c \ |
46 | machines.c \ | | 46 | machines.c \ |
47 | mktime.c \ | | 47 | mktime.c \ |
48 | modetoa.c \ | | 48 | modetoa.c \ |
49 | mstolfp.c \ | | 49 | mstolfp.c \ |
50 | msyslog.c \ | | 50 | msyslog.c \ |
51 | netof.c \ | | 51 | netof.c \ |
52 | ntp_calendar.c \ | | 52 | ntp_calendar.c \ |
53 | ntp_calgps.c \ | | 53 | ntp_calgps.c \ |
54 | ntp_crypto_rnd.c \ | | 54 | ntp_crypto_rnd.c \ |
55 | ntp_intres.c \ | | 55 | ntp_intres.c \ |
56 | ntp_libopts.c \ | | 56 | ntp_libopts.c \ |
57 | ntp_lineedit.c \ | | 57 | ntp_lineedit.c \ |
58 | ntp_random.c \ | | 58 | ntp_random.c \ |
59 | ntp_rfc2553.c \ | | 59 | ntp_rfc2553.c \ |
60 | ntp_worker.c \ | | 60 | ntp_worker.c \ |
61 | numtoa.c \ | | 61 | numtoa.c \ |
62 | numtohost.c \ | | 62 | numtohost.c \ |
63 | octtoint.c \ | | 63 | octtoint.c \ |
64 | prettydate.c \ | | 64 | prettydate.c \ |
65 | recvbuff.c \ | | 65 | recvbuff.c \ |
66 | refnumtoa.c \ | | 66 | refnumtoa.c \ |
67 | snprintf.c \ | | 67 | snprintf.c \ |
68 | socket.c \ | | 68 | socket.c \ |
69 | socktoa.c \ | | 69 | socktoa.c \ |
70 | socktohost.c \ | | 70 | socktohost.c \ |
71 | ssl_init.c \ | | 71 | ssl_init.c \ |
72 | statestr.c \ | | 72 | statestr.c \ |
73 | strdup.c \ | | 73 | strdup.c \ |
74 | syssignal.c \ | | 74 | syssignal.c \ |
75 | systime.c \ | | 75 | systime.c \ |
76 | timespecops.c \ | | 76 | timespecops.c \ |
77 | timetoa.c \ | | 77 | 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 | # 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> |