1# $FreeBSD$ 2 3MAN= 4 5.include <src.opts.mk> 6 7.PATH: ${SRCTOP}/contrib/ntp/ntpd \ 8 ${.OBJDIR} 9 10DIRS= ETC_NTP 11ETC_NTP= /etc/ntp 12ETC_NTP_MODE= 0700 13CONFS= ntp.conf 14FILES= leap-seconds 15FILESDIR= ETC_NTP 16FILESMODE= 644 17PROG= ntpd 18 19SRCS= cmd_args.c ntp_config.c ntp_control.c ntp_crypto.c ntp_filegen.c \ 20 ntp_io.c ntp_leapsec.c ntp_loopfilter.c ntp_monitor.c ntp_parser.c \ 21 ntp_peer.c ntp_proto.c ntp_refclock.c ntp_request.c ntp_restrict.c \ 22 ntp_scanner.c ntp_signd.c ntp_timer.c ntp_util.c ntpd-opts.c ntpd.c \ 23 rc_cmdlength.c \ 24 refclock_acts.c refclock_arbiter.c refclock_arc.c refclock_as2201.c \ 25 refclock_atom.c refclock_bancomm.c refclock_chronolog.c \ 26 refclock_chu.c refclock_conf.c refclock_datum.c refclock_dumbclock.c \ 27 refclock_fg.c refclock_gpsdjson.c refclock_gpsvme.c refclock_heath.c \ 28 refclock_hopfpci.c refclock_hopfser.c refclock_hpgps.c \ 29 refclock_irig.c refclock_jjy.c refclock_jupiter.c refclock_leitch.c \ 30 refclock_local.c refclock_nmea.c refclock_neoclock4x.c \ 31 refclock_oncore.c refclock_palisade.c \ 32 refclock_parse.c refclock_pcf.c refclock_pst.c refclock_ripencc.c \ 33 refclock_shm.c refclock_tpro.c refclock_true.c refclock_tsyncpci.c \ 34 refclock_tt560.c refclock_ulink.c refclock_wwv.c refclock_wwvb.c \ 35 refclock_zyfer.c version.c 36 37CFLAGS+= -I${SRCTOP}/contrib/ntp/ntpd \ 38 -I${SRCTOP}/contrib/ntp/include \ 39 -I${SRCTOP}/contrib/ntp/lib/isc/include \ 40 -I${SRCTOP}/contrib/ntp/lib/isc/pthreads/include \ 41 -I${SRCTOP}/contrib/ntp/lib/isc/unix/include \ 42 -I${SRCTOP}/contrib/ntp/sntp/libopts \ 43 -I${.CURDIR:H} \ 44 -I${.CURDIR} 45 46LIBADD= parse ntp m opts pthread 47 48.if ${MK_OPENSSL} != "no" 49LIBADD+= crypto 50.else 51LIBADD+= md 52.endif 53 54CLEANFILES+= .version version.c 55 56version.c: 57 sh -e ${.CURDIR:H}/scripts/mkver ntpd 58 59.include <bsd.prog.mk> 60