xref: /freebsd/usr.sbin/ntp/libntp/Makefile (revision f39bffc62c1395bde25d152c7f68fdf7cbaab414)
1# $FreeBSD$
2
3.PATH: ${SRCTOP}/contrib/ntp/libntp \
4	${SRCTOP}/contrib/ntp/lib/isc \
5	${SRCTOP}/contrib/ntp/lib/isc/nls \
6	${SRCTOP}/contrib/ntp/lib/isc/pthreads \
7	${SRCTOP}/contrib/ntp/lib/isc/unix \
8
9LIB= ntp
10INTERNALLIB=
11
12NTP_SRCS= systime.c	a_md5encrypt.c	adjtime.c	atoint.c \
13	atolfp.c	atouint.c	audio.c	authkeys.c \
14	authreadkeys.c	authusekey.c	bsd_strerror.c	buftvtots.c \
15	caljulian.c	caltontp.c	calyearstart.c	clocktime.c \
16	clocktypes.c	decodenetnum.c	dofptoa.c	dolfptoa.c \
17	emalloc.c	findconfig.c	getopt.c	hextoint.c \
18	hextolfp.c	humandate.c	icom.c		iosignal.c \
19	is_ip_address.c \
20	lib_strbuf.c	\
21	libssl_compat.c \
22	machines.c	mktime.c	modetoa.c \
23	mstolfp.c	msyslog.c	netof.c		ntp_calendar.c \
24	ntp_crypto_rnd.c		ntp_intres.c	ntp_libopts.c \
25	ntp_lineedit.c	ntp_random.c	ntp_rfc2553.c	ntp_worker.c \
26	numtoa.c	numtohost.c	octtoint.c	prettydate.c \
27	recvbuff.c	refidsmear.c	\
28	refnumtoa.c	snprintf.c	socket.c \
29	socktoa.c	socktohost.c	ssl_init.c	statestr.c \
30	strdup.c	strl_obsd.c	syssignal.c	timetoa.c \
31	timevalops.c	uglydate.c	vint64ops.c	work_fork.c \
32	work_thread.c	ymd2yd.c
33
34ISC_PTHREADS_SRCS= condition.c \
35	thread.c \
36	mutex.c
37
38ISC_UNIX_SRCS= dir.c \
39	errno2result.c \
40	file.c \
41	interfaceiter.c \
42	net.c \
43	stdio.c \
44	stdtime.c \
45	strerror.c \
46	time.c \
47	tsmemcmp.c
48
49ISC_NLS_SRCS= msgcat.c
50
51ISC_SRCS= assertions.c \
52	buffer.c \
53	backtrace-emptytbl.c \
54	backtrace.c \
55	error.c \
56	event.c \
57	inet_ntop.c \
58	inet_pton.c \
59	lib.c \
60	log.c \
61	md5.c \
62	netaddr.c \
63	netscope.c \
64	ondestroy.c \
65	random.c \
66	result.c \
67	task.c \
68	sha1.c \
69	sockaddr.c \
70	${ISC_NLS_SRCS} \
71	${ISC_PTHREADS_SRCS} \
72	${ISC_UNIX_SRCS}
73
74SRCS=	${NTP_SRCS} ${ISC_SRCS} version.c
75
76CFLAGS+= -I${SRCTOP}/contrib/ntp/include \
77	-I${SRCTOP}/contrib/ntp/lib/isc/include \
78	-I${SRCTOP}/contrib/ntp/lib/isc/unix/include \
79	-I${SRCTOP}/contrib/ntp/lib/isc/pthreads/include \
80	-I${SRCTOP}/contrib/ntp/sntp/libopts \
81	-I${SRCTOP}/lib/libc/${MACHINE_ARCH} \
82	-I${SRCTOP}/lib/libedit/edit \
83	-I${.CURDIR:H} \
84	-I${.CURDIR}/
85
86CFLAGS+= -DHAVE_BSD_NICE -DHAVE_STDINT_H
87
88CLEANFILES+= .version version.c
89
90version.c:
91	sh -e ${.CURDIR:H}/scripts/mkver ntpd
92
93.include <bsd.lib.mk>
94