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