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