xref: /freebsd/contrib/ntp/libntp/Makefile.am (revision 43a5ec4eb41567cc92586503212743d89686d78f)
1NULL=
2BUILT_SOURCES =
3CLEANFILES =
4noinst_LIBRARIES = libntp.a @MAKE_LIBNTPSIM@
5EXTRA_LIBRARIES = libntpsim.a
6
7libisc_SRCS =								\
8	$(srcdir)/../lib/isc/assertions.c				\
9	$(srcdir)/../lib/isc/buffer.c					\
10	$(srcdir)/../lib/isc/backtrace-emptytbl.c			\
11	$(srcdir)/../lib/isc/backtrace.c				\
12	$(srcdir)/../lib/isc/$(LIBISC_PTHREADS_NOTHREADS)/condition.c	\
13	$(srcdir)/../lib/isc/unix/dir.c					\
14	$(srcdir)/../lib/isc/error.c					\
15	$(srcdir)/../lib/isc/unix/errno2result.c			\
16	$(srcdir)/../lib/isc/event.c					\
17	$(srcdir)/../lib/isc/unix/file.c				\
18	$(srcdir)/../lib/isc/inet_ntop.c				\
19	$(srcdir)/../lib/isc/inet_pton.c				\
20	$(srcdir)/../lib/isc/unix/interfaceiter.c			\
21	$(srcdir)/../lib/isc/lib.c					\
22	$(srcdir)/../lib/isc/log.c					\
23	$(srcdir)/../lib/isc/md5.c					\
24	$(srcdir)/../lib/isc/nls/msgcat.c				\
25	$(srcdir)/../lib/isc/unix/net.c					\
26	$(srcdir)/../lib/isc/netaddr.c					\
27	$(srcdir)/../lib/isc/netscope.c					\
28	$(srcdir)/../lib/isc/ondestroy.c				\
29	$(srcdir)/../lib/isc/random.c					\
30	$(srcdir)/../lib/isc/result.c					\
31	$(srcdir)/../lib/isc/unix/stdio.c				\
32	$(srcdir)/../lib/isc/unix/stdtime.c				\
33	$(srcdir)/../lib/isc/unix/strerror.c				\
34	$(srcdir)/../lib/isc/task.c					\
35	$(srcdir)/../lib/isc/$(LIBISC_PTHREADS_NOTHREADS)/thread.c	\
36	$(srcdir)/../lib/isc/unix/time.c				\
37	$(srcdir)/../lib/isc/sha1.c					\
38	$(srcdir)/../lib/isc/sockaddr.c					\
39	$(srcdir)/../lib/isc/tsmemcmp.c					\
40	$(NULL)
41
42if PTHREADS
43libisc_SRCS += $(srcdir)/../lib/isc/pthreads/mutex.c
44endif
45
46libntp_a_SRCS =						\
47	a_md5encrypt.c					\
48	adjtime.c					\
49	atoint.c					\
50	atolfp.c					\
51	atouint.c					\
52	audio.c						\
53	authkeys.c					\
54	authreadkeys.c					\
55	authusekey.c					\
56	bsd_strerror.c					\
57	buftvtots.c					\
58	caljulian.c					\
59	caltontp.c					\
60	calyearstart.c					\
61	clocktime.c					\
62	clocktypes.c					\
63	decodenetnum.c					\
64	dofptoa.c					\
65	dolfptoa.c					\
66	emalloc.c					\
67	findconfig.c					\
68	getopt.c					\
69	hextoint.c					\
70	hextolfp.c					\
71	humandate.c					\
72	icom.c						\
73	iosignal.c					\
74	is_ip_address.c					\
75	lib_strbuf.c					\
76	libssl_compat.c					\
77	machines.c					\
78	mktime.c					\
79	modetoa.c					\
80	mstolfp.c					\
81	msyslog.c					\
82	netof.c						\
83	ntp_calendar.c					\
84	ntp_calgps.c					\
85	ntp_crypto_rnd.c				\
86	ntp_intres.c					\
87	ntp_libopts.c					\
88	ntp_lineedit.c					\
89	ntp_random.c					\
90	ntp_rfc2553.c					\
91	ntp_worker.c					\
92	numtoa.c					\
93	numtohost.c					\
94	octtoint.c					\
95	prettydate.c					\
96	refidsmear.c					\
97	recvbuff.c					\
98	refnumtoa.c					\
99	snprintf.c					\
100	socket.c					\
101	socktoa.c					\
102	socktohost.c					\
103	ssl_init.c					\
104	statestr.c					\
105	strdup.c					\
106	strl_obsd.c					\
107	syssignal.c					\
108	timespecops.c					\
109	timetoa.c					\
110	timevalops.c					\
111	timexsup.c					\
112	uglydate.c					\
113	vint64ops.c					\
114	work_fork.c					\
115	work_thread.c					\
116	xsbprintf.c					\
117	ymd2yd.c					\
118	$(libisc_SRCS)					\
119	$(NULL)
120
121libntp_a_SOURCES = systime.c $(libntp_a_SRCS)
122libntpsim_a_SOURCES = systime_s.c $(libntp_a_SRCS)
123EXTRA_libntp_a_SOURCES = adjtimex.c
124
125AM_CFLAGS = $(CFLAGS_NTP)
126AM_CFLAGS += $(NTP_HARD_CFLAGS)
127
128AM_CPPFLAGS  = $(NTP_INCS)
129AM_CPPFLAGS += $(LIBOPTS_CFLAGS)
130AM_CPPFLAGS += $(CPPFLAGS_NTP)
131AM_CPPFLAGS += $(NTP_HARD_CPPFLAGS)
132
133AM_LDFLAGS = $(NTP_HARD_LDFLAGS)
134
135EXTRA_DIST = README
136
137include $(top_srcdir)/depsver.mf
138include $(top_srcdir)/includes.mf
139