xref: /freebsd/usr.sbin/ntp/ntpd/Makefile (revision 1e413cf93298b5b97441a21d9a50fdcd0ee9945e)
1# $FreeBSD$
2
3NO_MAN=
4
5.include <bsd.own.mk>
6
7.PATH: ${.CURDIR}/../../../contrib/ntp/ntpd
8
9PROG=	ntpd
10SRCS=	cmd_args.c	map_vme.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_ptbacts.c	refclock_ripencc.c \
27	refclock_shm.c	refclock_tpro.c refclock_trak.c	refclock_true.c \
28	refclock_ulink.c refclock_usno.c	refclock_wwv.c	\
29	refclock_wwvb.c \
30	version.c
31
32CFLAGS+= -I${.CURDIR}/../../../contrib/ntp/include -I${.CURDIR}/../
33
34DPADD=	${LIBPARSE} ${LIBNTP} ${LIBM} ${LIBMD}
35LDADD=	${LIBPARSE} ${LIBNTP} -lm -lmd
36
37.if ${MK_OPENSSL} != "no" && !defined(RELEASE_CRUNCH)
38DPADD+=	${LIBCRYPTO}
39LDADD+=	-lcrypto
40.endif
41
42CLEANFILES+= .version version.c
43
44version.c:
45	sh -e ${.CURDIR}/../scripts/mkver ntpd
46
47.include <bsd.prog.mk>
48