1# $NetBSD: Makefile,v 1.12 2014/06/14 20:49:36 mrg Exp $ 2 3LIBISPRIVATE=yes 4 5LIB=ntp 6 7.include <bsd.own.mk> 8 9.include "${.CURDIR}/../Makefile.inc" 10 11DIST= ${IDIST}/libntp 12 13.PATH.c: ${DIST} 14 15SRCS= \ 16a_md5encrypt.c \ 17adjtime.c \ 18atoint.c \ 19atolfp.c \ 20atouint.c \ 21audio.c \ 22authkeys.c \ 23authreadkeys.c \ 24authusekey.c \ 25bsd_strerror.c \ 26buftvtots.c \ 27caljulian.c \ 28caltontp.c \ 29calyearstart.c \ 30clocktime.c \ 31clocktypes.c \ 32decodenetnum.c \ 33dofptoa.c \ 34dolfptoa.c \ 35emalloc.c \ 36findconfig.c \ 37getopt.c \ 38hextoint.c \ 39hextolfp.c \ 40humandate.c \ 41icom.c \ 42iosignal.c \ 43lib_strbuf.c \ 44machines.c \ 45mktime.c \ 46modetoa.c \ 47mstolfp.c \ 48msyslog.c \ 49netof.c \ 50ntp_calendar.c \ 51ntp_intres.c \ 52ntp_libopts.c \ 53ntp_lineedit.c \ 54ntp_random.c \ 55ntp_rfc2553.c \ 56ntp_worker.c \ 57numtoa.c \ 58numtohost.c \ 59octtoint.c \ 60prettydate.c \ 61recvbuff.c \ 62refnumtoa.c \ 63snprintf.c \ 64socket.c \ 65socktoa.c \ 66socktohost.c \ 67ssl_init.c \ 68statestr.c \ 69strdup.c \ 70syssignal.c \ 71systime.c \ 72timetoa.c \ 73uglydate.c \ 74work_fork.c \ 75work_thread.c \ 76ymd2yd.c 77 78CPPFLAGS+= -I${IDIST}/sntp/libopts 79 80COPTS.msyslog.c+= -Wno-error=format-nonliteral 81 82# For MKREPRO, avoid using __DATE__ and __TIME__. 83# Instead, use the date and time from ${IMPORTDATE_FILE}. 84# 85# The file should contain one line, like this: 86# Fri Dec 27 19:28:17 EST 2013 (import) 87# 88.if ${MKREPRO} == "yes" 89IMPORTDATE_FILE := ${.PARSEDIR}/../../importdate 90MKREPRO_DATE != ${TOOL_AWK} '{printf "%3s %2d %4d", $$2, $$3, $$6}' \ 91 <${IMPORTDATE_FILE} # "Mmm DD YYYY" 92MKREPRO_TIME != ${TOOL_AWK} '{print $$4}' \ 93 <${IMPORTDATE_FILE} # "HH:MM:SS" 94CPPFLAGS.ntp_calendar.c += -DMKREPRO_DATE=\"${MKREPRO_DATE:Q}\" 95CPPFLAGS.ntp_calendar.c += -DMKREPRO_TIME=\"${MKREPRO_TIME:Q}\" 96.endif 97 98.include <bsd.lib.mk> 99