Makefile revision 298695
1249967Sneel# $FreeBSD: head/usr.sbin/ntp/libntp/Makefile 298695 2016-04-27 07:46:38Z delphij $
2249967Sneel
3249967Sneel.PATH: ${.CURDIR}/../../../contrib/ntp/libntp \
4249967Sneel	${.CURDIR}/../../../contrib/ntp/lib/isc \
5249967Sneel	${.CURDIR}/../../../contrib/ntp/lib/isc/nls \
6249967Sneel	${.CURDIR}/../../../contrib/ntp/lib/isc/pthreads \
7249967Sneel	${.CURDIR}/../../../contrib/ntp/lib/isc/unix \
8249967Sneel
9249967SneelLIB= ntp
10249967SneelINTERNALLIB=
11249967Sneel
12249967SneelNTP_SRCS= systime.c	a_md5encrypt.c	adjtime.c	atoint.c \
13249967Sneel	atolfp.c	atouint.c	audio.c	authkeys.c \
14249967Sneel	authreadkeys.c	authusekey.c	bsd_strerror.c	buftvtots.c \
15249967Sneel	caljulian.c	caltontp.c	calyearstart.c	clocktime.c \
16249967Sneel	clocktypes.c	decodenetnum.c	dofptoa.c	dolfptoa.c \
17249967Sneel	emalloc.c	findconfig.c	getopt.c	hextoint.c \
18249967Sneel	hextolfp.c	humandate.c	icom.c		iosignal.c \
19249967Sneel	is_ip_address.c \
20249967Sneel	lib_strbuf.c	machines.c	mktime.c	modetoa.c \
21249967Sneel	mstolfp.c	msyslog.c	netof.c		ntp_calendar.c \
22249967Sneel	ntp_crypto_rnd.c		ntp_intres.c	ntp_libopts.c \
23249967Sneel	ntp_lineedit.c	ntp_random.c	ntp_rfc2553.c	ntp_worker.c \
24249967Sneel	numtoa.c	numtohost.c	octtoint.c	prettydate.c \
25249967Sneel	recvbuff.c	refidsmear.c	\
26249967Sneel	refnumtoa.c	snprintf.c	socket.c \
27249967Sneel	socktoa.c	socktohost.c	ssl_init.c	statestr.c \
28249967Sneel	strdup.c	strl_obsd.c	syssignal.c	timetoa.c \
29249967Sneel	timevalops.c	uglydate.c	vint64ops.c	work_fork.c \
30249967Sneel	work_thread.c	ymd2yd.c
31249967Sneel
32285015SneelISC_PTHREADS_SRCS= condition.c \
33285015Sneel	thread.c \
34249967Sneel	mutex.c
35272195Sneel
36249967SneelISC_UNIX_SRCS= dir.c \
37272195Sneel	errno2result.c \
38272195Sneel	file.c \
39272195Sneel	interfaceiter.c \
40272195Sneel	net.c \
41249967Sneel	stdio.c \
42249967Sneel	stdtime.c \
43249967Sneel	strerror.c \
44249967Sneel	time.c \
45249967Sneel	tsmemcmp.c
46249967Sneel
47249967SneelISC_NLS_SRCS= msgcat.c
48249967Sneel
49249967SneelISC_SRCS= assertions.c \
50249967Sneel	buffer.c \
51249967Sneel	backtrace-emptytbl.c \
52249967Sneel	backtrace.c \
53249967Sneel	error.c \
54285015Sneel	event.c \
55249967Sneel	inet_ntop.c \
56249967Sneel	inet_pton.c \
57	lib.c \
58	log.c \
59	md5.c \
60	netaddr.c \
61	netscope.c \
62	ondestroy.c \
63	random.c \
64	result.c \
65	task.c \
66	sha1.c \
67	sockaddr.c \
68	${ISC_NLS_SRCS} \
69	${ISC_PTHREADS_SRCS} \
70	${ISC_UNIX_SRCS}
71
72SRCS=	${NTP_SRCS} ${ISC_SRCS} version.c
73
74CFLAGS+= -I${.CURDIR}/../../../contrib/ntp/include \
75	-I${.CURDIR}/../../../contrib/ntp/lib/isc/include \
76	-I${.CURDIR}/../../../contrib/ntp/lib/isc/unix/include \
77	-I${.CURDIR}/../../../contrib/ntp/lib/isc/pthreads/include \
78	-I${.CURDIR}/../../../contrib/ntp/sntp/libopts \
79	-I${.CURDIR}/../../../lib/libc/${MACHINE_ARCH} \
80	-I${.CURDIR}/../../../lib/libedit/edit \
81	-I${.CURDIR}/../ \
82	-I${.CURDIR}/
83
84CFLAGS+= -DHAVE_BSD_NICE -DHAVE_STDINT_H
85
86CLEANFILES+= .version version.c
87
88version.c:
89	sh -e ${.CURDIR}/../scripts/mkver ntpd
90
91.include <bsd.lib.mk>
92