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