1999-12-13 14:09:56 +00:00
|
|
|
# $FreeBSD$
|
|
|
|
|
2014-04-13 05:21:56 +00:00
|
|
|
MAN=
|
2006-03-17 18:54:44 +00:00
|
|
|
|
2014-05-06 04:22:01 +00:00
|
|
|
.include <src.opts.mk>
|
2006-03-17 18:54:44 +00:00
|
|
|
|
2017-03-01 04:54:06 +00:00
|
|
|
.PATH: ${SRCTOP}/contrib/ntp/ntpd \
|
2015-03-30 13:30:15 +00:00
|
|
|
${.OBJDIR}
|
1999-12-13 14:09:56 +00:00
|
|
|
|
2018-11-14 16:19:15 +00:00
|
|
|
DIRS= ETC_NTP
|
|
|
|
ETC_NTP= /etc/ntp
|
2018-11-14 18:38:27 +00:00
|
|
|
ETC_NTP_MODE= 0700
|
2018-08-11 17:42:42 +00:00
|
|
|
CONFS= ntp.conf
|
|
|
|
FILES= leap-seconds
|
2018-11-14 16:19:15 +00:00
|
|
|
FILESDIR= ETC_NTP
|
2018-08-11 17:42:42 +00:00
|
|
|
FILESMODE= 644
|
2001-08-29 15:03:54 +00:00
|
|
|
PROG= ntpd
|
2015-03-30 13:30:15 +00:00
|
|
|
|
|
|
|
SRCS= cmd_args.c ntp_config.c ntp_control.c ntp_crypto.c ntp_filegen.c \
|
|
|
|
ntp_io.c ntp_leapsec.c ntp_loopfilter.c ntp_monitor.c ntp_parser.c \
|
|
|
|
ntp_peer.c ntp_proto.c ntp_refclock.c ntp_request.c ntp_restrict.c \
|
|
|
|
ntp_scanner.c ntp_signd.c ntp_timer.c ntp_util.c ntpd-opts.c ntpd.c \
|
2015-07-05 15:42:16 +00:00
|
|
|
rc_cmdlength.c \
|
2015-03-30 13:30:15 +00:00
|
|
|
refclock_acts.c refclock_arbiter.c refclock_arc.c refclock_as2201.c \
|
|
|
|
refclock_atom.c refclock_bancomm.c refclock_chronolog.c \
|
|
|
|
refclock_chu.c refclock_conf.c refclock_datum.c refclock_dumbclock.c \
|
|
|
|
refclock_fg.c refclock_gpsdjson.c refclock_gpsvme.c refclock_heath.c \
|
|
|
|
refclock_hopfpci.c refclock_hopfser.c refclock_hpgps.c \
|
|
|
|
refclock_irig.c refclock_jjy.c refclock_jupiter.c refclock_leitch.c \
|
|
|
|
refclock_local.c refclock_nmea.c refclock_neoclock4x.c \
|
|
|
|
refclock_oncore.c refclock_palisade.c \
|
|
|
|
refclock_parse.c refclock_pcf.c refclock_pst.c refclock_ripencc.c \
|
|
|
|
refclock_shm.c refclock_tpro.c refclock_true.c refclock_tsyncpci.c \
|
|
|
|
refclock_tt560.c refclock_ulink.c refclock_wwv.c refclock_wwvb.c \
|
|
|
|
refclock_zyfer.c version.c
|
|
|
|
|
2017-03-01 04:54:06 +00:00
|
|
|
CFLAGS+= -I${SRCTOP}/contrib/ntp/ntpd \
|
|
|
|
-I${SRCTOP}/contrib/ntp/include \
|
|
|
|
-I${SRCTOP}/contrib/ntp/lib/isc/include \
|
|
|
|
-I${SRCTOP}/contrib/ntp/lib/isc/pthreads/include \
|
|
|
|
-I${SRCTOP}/contrib/ntp/lib/isc/unix/include \
|
|
|
|
-I${SRCTOP}/contrib/ntp/sntp/libopts \
|
|
|
|
-I${.CURDIR:H} \
|
2015-03-30 13:30:15 +00:00
|
|
|
-I${.CURDIR}
|
|
|
|
|
2015-05-25 20:27:46 +00:00
|
|
|
LIBADD= parse ntp m opts pthread
|
2004-07-22 09:10:52 +00:00
|
|
|
|
2014-06-06 04:09:07 +00:00
|
|
|
.if ${MK_OPENSSL} != "no"
|
2014-11-25 16:57:27 +00:00
|
|
|
LIBADD+= crypto
|
2015-05-25 20:27:46 +00:00
|
|
|
.else
|
|
|
|
LIBADD+= md
|
2004-07-22 09:10:52 +00:00
|
|
|
.endif
|
2000-01-01 23:58:01 +00:00
|
|
|
|
|
|
|
CLEANFILES+= .version version.c
|
|
|
|
|
2017-03-01 04:54:06 +00:00
|
|
|
version.c:
|
|
|
|
sh -e ${.CURDIR:H}/scripts/mkver ntpd
|
1999-12-13 14:09:56 +00:00
|
|
|
|
|
|
|
.include <bsd.prog.mk>
|