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