xref: /freebsd/usr.sbin/ntp/ntpd/Makefile (revision 40a8ac8f62b535d30349faf28cf47106b7041b83)
1# $FreeBSD$
2
3MAN=
4
5.include <src.opts.mk>
6
7.PATH: ${.CURDIR}/../../../contrib/ntp/ntpd
8
9PROG=	ntpd
10SRCS=	cmd_args.c	ntp_config.c \
11	ntp_control.c	ntp_crypto.c	ntp_filegen.c \
12	ntp_intres.c	ntp_io.c	ntp_loopfilter.c \
13	ntp_monitor.c	ntp_peer.c	ntp_proto.c \
14	ntp_refclock.c	ntp_request.c \
15	ntp_restrict.c	ntp_timer.c	ntp_util.c \
16	ntpd.c	refclock_acts.c	refclock_arbiter.c \
17	refclock_arc.c	refclock_as2201.c	refclock_atom.c \
18	refclock_bancomm.c	refclock_chronolog.c	refclock_chu.c \
19	refclock_conf.c	refclock_datum.c	refclock_dumbclock.c \
20	refclock_fg.c	refclock_gpsvme.c	refclock_heath.c \
21	refclock_hopfpci.c	refclock_hopfser.c	refclock_hpgps.c \
22	refclock_irig.c	refclock_jupiter.c	refclock_leitch.c \
23	refclock_local.c	refclock_msfees.c	refclock_mx4200.c \
24	refclock_neoclock4x.c refclock_nmea.c	refclock_oncore.c \
25	refclock_palisade.c refclock_parse.c	refclock_pcf.c \
26	refclock_pst.c refclock_ripencc.c \
27	refclock_shm.c	refclock_tpro.c refclock_trak.c	refclock_true.c \
28	refclock_ulink.c refclock_wwv.c	\
29	refclock_wwvb.c ntpd-opts.c \
30	version.c
31
32CFLAGS+= -I${.CURDIR}/../../../contrib/ntp/include -I${.CURDIR}/../ \
33	-I${.CURDIR}/../../../contrib/ntp/libopts -I${.CURDIR}
34
35DPADD=	${LIBPARSE} ${LIBNTP} ${LIBM} ${LIBMD} ${LIBRT} ${LIBOPTS}
36LDADD=	${LIBPARSE} ${LIBNTP} -lm -lmd -lrt ${LIBOPTS}
37
38.if ${MK_OPENSSL} != "no"
39DPADD+=	${LIBCRYPTO}
40LDADD+=	-lcrypto
41.endif
42
43CLEANFILES+= .version version.c
44
45version.c:
46	sh -e ${.CURDIR}/../scripts/mkver ntpd
47
48.include <bsd.prog.mk>
49