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