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