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