xref: /freebsd/usr.sbin/ntp/libntp/Makefile (revision 9f23cbd6cae82fd77edfad7173432fa8dccd0a95)
1# $FreeBSD$
2
3.PATH: ${SRCTOP}/contrib/ntp/libntp \
4	${SRCTOP}/contrib/ntp/libntp/lib/isc \
5	${SRCTOP}/contrib/ntp/libntp/lib/isc/nls \
6	${SRCTOP}/contrib/ntp/libntp/lib/isc/pthreads \
7	${SRCTOP}/contrib/ntp/libntp/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_calgps.c \
25	ntp_crypto_rnd.c		ntp_intres.c	ntp_libopts.c \
26	ntp_lineedit.c	ntp_random.c	ntp_rfc2553.c	ntp_realpath.c \
27	ntp_worker.c \
28	numtoa.c	numtohost.c	octtoint.c	prettydate.c \
29	recvbuff.c	refidsmear.c	\
30	refnumtoa.c	snprintf.c	socket.c \
31	socktoa.c	socktohost.c	ssl_init.c	statestr.c \
32	strdup.c	strl_obsd.c	syssignal.c	timespecops.c \
33	timetoa.c \
34	timevalops.c	timexsup.c	\
35	uglydate.c	vint64ops.c	work_fork.c \
36	work_thread.c	xsbprintf.c	ymd2yd.c
37
38ISC_PTHREADS_SRCS= condition.c \
39	thread.c \
40	mutex.c
41
42ISC_UNIX_SRCS= dir.c \
43	errno2result.c \
44	file.c \
45	interfaceiter.c \
46	net.c \
47	stdio.c \
48	stdtime.c \
49	strerror.c \
50	time.c \
51	tsmemcmp.c
52
53ISC_NLS_SRCS= msgcat.c
54
55ISC_SRCS= assertions.c \
56	buffer.c \
57	backtrace-emptytbl.c \
58	backtrace.c \
59	error.c \
60	event.c \
61	inet_ntop.c \
62	inet_pton.c \
63	lib.c \
64	log.c \
65	md5.c \
66	netaddr.c \
67	netscope.c \
68	ondestroy.c \
69	random.c \
70	result.c \
71	task.c \
72	sha1.c \
73	sockaddr.c \
74	${ISC_NLS_SRCS} \
75	${ISC_PTHREADS_SRCS} \
76	${ISC_UNIX_SRCS}
77
78SRCS=	${NTP_SRCS} ${ISC_SRCS} version.c
79
80CFLAGS+= -I${SRCTOP}/contrib/ntp/include \
81	-I${SRCTOP}/contrib/ntp/libntp/lib/isc/include \
82	-I${SRCTOP}/contrib/ntp/libntp/lib/isc/unix/include \
83	-I${SRCTOP}/contrib/ntp/libntp/lib/isc/pthreads/include \
84	-I${SRCTOP}/contrib/ntp/sntp/libopts \
85	-I${SRCTOP}/lib/libc/${MACHINE_ARCH} \
86	-I${SYSROOT:U${DESTDIR}}/${INCLUDEDIR}/edit \
87	-I${.CURDIR:H} \
88	-I${.CURDIR}/
89
90CFLAGS+= -DHAVE_BSD_NICE -DHAVE_STDINT_H -DHAVE_CLOSEFROM
91
92CLEANFILES+= .version version.c
93
94version.c:
95	sh -e ${.CURDIR:H}/scripts/mkver ntpd
96
97.include <bsd.lib.mk>
98