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