xref: /freebsd/usr.sbin/ntp/libntp/Makefile (revision 72c59f1728c12fbdcd316c172708d8f3a60299be)
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_calgps.c \
25	ntp_crypto_rnd.c		ntp_intres.c	ntp_libopts.c \
26	ntp_lineedit.c	ntp_random.c	ntp_rfc2553.c	ntp_worker.c \
27	numtoa.c	numtohost.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/lib/isc/include \
81	-I${SRCTOP}/contrib/ntp/lib/isc/unix/include \
82	-I${SRCTOP}/contrib/ntp/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