| @@ -1,14 +1,14 @@ | | | @@ -1,14 +1,14 @@ |
1 | # $NetBSD: Makefile,v 1.25.6.1 2023/08/11 13:42:57 martin Exp $ | | 1 | # $NetBSD: Makefile,v 1.25.6.2 2024/04/19 09:01:35 martin 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 | |
| @@ -76,35 +76,28 @@ systime.c \ | | | @@ -76,35 +76,28 @@ 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 ${IMPORTDATE_FILE}. | | 89 | # Instead, use the date and time from ${MKREPRO_TIMESTAMP} |
90 | # | | | |
91 | # The file should contain one line, like this: | | | |
92 | # Fri Dec 27 19:28:17 EST 2013 (import) | | | |
93 | # | | | |
94 | .if ${MKREPRO:Uno} == "yes" | | 90 | .if ${MKREPRO:Uno} == "yes" |
95 | IMPORTDATE_FILE := ${.PARSEDIR}/../../importdate | | 91 | MKREPRO_DATE != ${TOOL_DATE} -u -r "${MKREPRO_TIMESTAMP}" "+%b %d %Y" |
96 | MKREPRO_DATE != ${TOOL_AWK} '{printf "%3s %2d %4d", $$2, $$3, $$6}' \ | | 92 | MKREPRO_TIME != ${TOOL_DATE} -u -r "${MKREPRO_TIMESTAMP}" "+%T" |
97 | <${IMPORTDATE_FILE} # "Mmm DD YYYY" | | | |
98 | MKREPRO_TIME != ${TOOL_AWK} '{print $$4}' \ | | | |
99 | <${IMPORTDATE_FILE} # "HH:MM:SS" | | | |
100 | CPPFLAGS.ntp_calendar.c += -DMKREPRO_DATE=\"${MKREPRO_DATE:Q}\" | | 93 | CPPFLAGS.ntp_calendar.c += -DMKREPRO_DATE=\"${MKREPRO_DATE:Q}\" |
101 | CPPFLAGS.ntp_calendar.c += -DMKREPRO_TIME=\"${MKREPRO_TIME:Q}\" | | 94 | CPPFLAGS.ntp_calendar.c += -DMKREPRO_TIME=\"${MKREPRO_TIME:Q}\" |
102 | .endif | | 95 | .endif |
103 | | | 96 | |
104 | COPTS.timetoa.c+= ${GCC_NO_FORMAT_TRUNCATION} | | 97 | COPTS.timetoa.c+= ${GCC_NO_FORMAT_TRUNCATION} |
105 | COPTS.socktoa.c+= ${${ACTIVE_CC} == "gcc" && ${HAVE_GCC:U0} >= 10:? -Wno-restrict :} | | 98 | COPTS.socktoa.c+= ${${ACTIVE_CC} == "gcc" && ${HAVE_GCC:U0} >= 10:? -Wno-restrict :} |
106 | COPTS.socktohost.c+= ${${ACTIVE_CC} == "gcc" && ${HAVE_GCC:U0} >= 10:? -Wno-restrict :} | | 99 | COPTS.socktohost.c+= ${${ACTIVE_CC} == "gcc" && ${HAVE_GCC:U0} >= 10:? -Wno-restrict :} |
107 | | | 100 | |
108 | COPTS.a_md5encrypt.c+= -Wno-error=deprecated-declarations | | 101 | COPTS.a_md5encrypt.c+= -Wno-error=deprecated-declarations |
109 | | | 102 | |
110 | .include <bsd.lib.mk> | | 103 | .include <bsd.lib.mk> |