xref: /freebsd/usr.sbin/ntp/ntpd/Makefile (revision 6580f5c38dd5b01aeeaed16b370f1a12423437f0)
1
2MAN=
3
4.include <src.opts.mk>
5
6.PATH:	${SRCTOP}/contrib/ntp/ntpd \
7	${.OBJDIR}
8
9PACKAGE=	ntp
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 \
20	ntp_clockdev.c \
21	ntp_config.c ntp_control.c ntp_crypto.c ntp_filegen.c \
22	ntp_io.c ntp_leapsec.c ntp_loopfilter.c ntp_monitor.c ntp_parser.c \
23	ntp_peer.c ntp_proto.c ntp_refclock.c ntp_request.c ntp_restrict.c \
24	ntp_ppsdev.c \
25	ntp_scanner.c ntp_signd.c ntp_timer.c ntp_util.c ntpd-opts.c ntpd.c \
26	rc_cmdlength.c \
27	refclock_acts.c refclock_arbiter.c refclock_arc.c refclock_as2201.c \
28	refclock_atom.c refclock_bancomm.c refclock_chronolog.c \
29	refclock_chu.c refclock_conf.c refclock_datum.c refclock_dumbclock.c \
30	refclock_fg.c refclock_gpsdjson.c refclock_gpsvme.c refclock_heath.c \
31	refclock_hopfpci.c refclock_hopfser.c refclock_hpgps.c \
32	refclock_irig.c refclock_jjy.c refclock_jupiter.c refclock_leitch.c \
33	refclock_local.c refclock_nmea.c refclock_neoclock4x.c \
34	refclock_oncore.c refclock_palisade.c \
35	refclock_parse.c refclock_pcf.c refclock_pst.c refclock_ripencc.c \
36	refclock_shm.c refclock_tpro.c refclock_true.c refclock_tsyncpci.c \
37	refclock_tt560.c refclock_ulink.c refclock_wwv.c refclock_wwvb.c \
38	refclock_zyfer.c version.c
39
40CFLAGS+= -I${SRCTOP}/contrib/ntp/ntpd \
41	-I${SRCTOP}/contrib/ntp/include \
42	-I${SRCTOP}/contrib/ntp/libntp/lib/isc/include \
43	-I${SRCTOP}/contrib/ntp/libntp/lib/isc/pthreads/include \
44	-I${SRCTOP}/contrib/ntp/libntp/lib/isc/unix/include \
45	-I${SRCTOP}/contrib/ntp/sntp/libopts \
46	-I${.CURDIR:H} \
47	-I${.CURDIR}
48
49LIBADD=	parse ntp m opts pthread
50
51.if ${MK_OPENSSL} != "no"
52LIBADD+=	crypto
53.else
54LIBADD+=	md
55.endif
56
57CLEANFILES+= .version version.c
58
59version.c:
60	sh -e ${.CURDIR:H}/scripts/mkver ntpd
61
62.include <bsd.prog.mk>
63