154552Sroberto# $FreeBSD: releng/9.3/usr.sbin/ntp/libntp/Makefile 310419 2016-12-22 16:19:05Z delphij $
254552Sroberto
3132458Sroberto.PATH: ${.CURDIR}/../../../contrib/ntp/libntp \
4290001Sglebius	${.CURDIR}/../../../contrib/ntp/lib/isc \
5290001Sglebius	${.CURDIR}/../../../contrib/ntp/lib/isc/nls \
6290001Sglebius	${.CURDIR}/../../../contrib/ntp/lib/isc/pthreads \
7290001Sglebius	${.CURDIR}/../../../contrib/ntp/lib/isc/unix \
854552Sroberto
980029SobrienLIB= ntp
10136910SruINTERNALLIB=
1180029Sobrien
12290001SglebiusNTP_SRCS= systime.c	a_md5encrypt.c	adjtime.c	atoint.c \
13290001Sglebius	atolfp.c	atouint.c	audio.c	authkeys.c \
14290001Sglebius	authreadkeys.c	authusekey.c	bsd_strerror.c	buftvtots.c \
15290001Sglebius	caljulian.c	caltontp.c	calyearstart.c	clocktime.c \
16290001Sglebius	clocktypes.c	decodenetnum.c	dofptoa.c	dolfptoa.c \
17290001Sglebius	emalloc.c	findconfig.c	getopt.c	hextoint.c \
18290001Sglebius	hextolfp.c	humandate.c	icom.c		iosignal.c \
19294905Sdelphij	is_ip_address.c \
20310419Sdelphij	lib_strbuf.c	\
21310419Sdelphij	libssl_compat.c \
22310419Sdelphij	machines.c	mktime.c	modetoa.c \
23290001Sglebius	mstolfp.c	msyslog.c	netof.c		ntp_calendar.c \
24290001Sglebius	ntp_crypto_rnd.c		ntp_intres.c	ntp_libopts.c \
25290001Sglebius	ntp_lineedit.c	ntp_random.c	ntp_rfc2553.c	ntp_worker.c \
26132458Sroberto	numtoa.c	numtohost.c	octtoint.c	prettydate.c \
27290001Sglebius	recvbuff.c	refidsmear.c	\
28290001Sglebius	refnumtoa.c	snprintf.c	socket.c \
29290001Sglebius	socktoa.c	socktohost.c	ssl_init.c	statestr.c \
30290001Sglebius	strdup.c	strl_obsd.c	syssignal.c	timetoa.c \
31290001Sglebius	timevalops.c	uglydate.c	vint64ops.c	work_fork.c \
32290001Sglebius	work_thread.c	ymd2yd.c
3354552Sroberto
34290001SglebiusISC_PTHREADS_SRCS= condition.c \
35290001Sglebius	thread.c \
36290001Sglebius	mutex.c
37132458Sroberto
38290001SglebiusISC_UNIX_SRCS= dir.c \
39290001Sglebius	errno2result.c \
40290001Sglebius	file.c \
41290001Sglebius	interfaceiter.c \
42290001Sglebius	net.c \
43290001Sglebius	stdio.c \
44290001Sglebius	stdtime.c \
45290001Sglebius	strerror.c \
46298770Sdelphij	time.c \
47298770Sdelphij	tsmemcmp.c
48132458Sroberto
49290001SglebiusISC_NLS_SRCS= msgcat.c
5055307Sroberto
51290001SglebiusISC_SRCS= assertions.c \
52290001Sglebius	buffer.c \
53290001Sglebius	backtrace-emptytbl.c \
54290001Sglebius	backtrace.c \
55290001Sglebius	error.c \
56290001Sglebius	event.c \
57290001Sglebius	inet_ntop.c \
58290001Sglebius	inet_pton.c \
59290001Sglebius	lib.c \
60290001Sglebius	log.c \
61290001Sglebius	md5.c \
62290001Sglebius	netaddr.c \
63290001Sglebius	netscope.c \
64290001Sglebius	ondestroy.c \
65290001Sglebius	random.c \
66290001Sglebius	result.c \
67290001Sglebius	task.c \
68290001Sglebius	sha1.c \
69290001Sglebius	sockaddr.c \
70290001Sglebius	${ISC_NLS_SRCS} \
71290001Sglebius	${ISC_PTHREADS_SRCS} \
72290001Sglebius	${ISC_UNIX_SRCS}
73290001Sglebius
74290001SglebiusSRCS=	${NTP_SRCS} ${ISC_SRCS} version.c
75290001Sglebius
76290001SglebiusCFLAGS+= -I${.CURDIR}/../../../contrib/ntp/include \
77290001Sglebius	-I${.CURDIR}/../../../contrib/ntp/lib/isc/include \
78290001Sglebius	-I${.CURDIR}/../../../contrib/ntp/lib/isc/unix/include \
79290001Sglebius	-I${.CURDIR}/../../../contrib/ntp/lib/isc/pthreads/include \
80290001Sglebius	-I${.CURDIR}/../../../contrib/ntp/sntp/libopts \
81290001Sglebius	-I${.CURDIR}/../../../lib/libc/${MACHINE_ARCH} \
82290001Sglebius	-I${.CURDIR}/../../../lib/libedit/edit \
83290001Sglebius	-I${.CURDIR}/../ \
84290001Sglebius	-I${.CURDIR}/
85290001Sglebius
86290001SglebiusCFLAGS+= -DHAVE_BSD_NICE -DHAVE_STDINT_H
87290001Sglebius
88290001SglebiusCLEANFILES+= .version version.c
89290001Sglebius
90290001Sglebiusversion.c:
91290001Sglebius	sh -e ${.CURDIR}/../scripts/mkver ntpd
92290001Sglebius
9354552Sroberto.include <bsd.lib.mk>
94