xref: /freebsd/contrib/ntp/ntpd/Makefile.am (revision 6990ffd8a95caaba6858ad44ff1b3157d1efba8f)
1#AUTOMAKE_OPTIONS = ../util/ansi2knr no-dependencies
2AUTOMAKE_OPTIONS = ../util/ansi2knr
3bin_PROGRAMS = ntpd
4INCLUDES = -I$(top_srcdir)/include -I$(top_srcdir)/librsaref
5# LDADD might need RESLIB and ADJLIB
6LDADD =	version.o @LIBPARSE@ ../libntp/libntp.a @LIBRSAREF@
7# ntpd may need:
8# log10                               refclock_wwv.o
9# sqrt                                ntp_control.o
10# floor                               refclock_wwv.o
11# which are (usually) provided by -lm.
12ntpd_LDADD = $(LDADD) -lm
13DISTCLEANFILES = .version version.c
14#EXTRA_DIST = ntpd.mak
15ETAGS_ARGS = Makefile.am
16###							Y2Kfixes
17check_PROGRAMS = @MAKE_CHECK_Y2K@
18EXTRA_PROGRAMS = check_y2k
19
20check-local: @MAKE_CHECK_Y2K@
21	test -z "@MAKE_CHECK_Y2K@" || ./@MAKE_CHECK_Y2K@
22
23ntpd_SOURCES = cmd_args.c jupiter.h map_vme.c ntp_config.c ntp_control.c \
24	ntp_crypto.c ntp_filegen.c \
25	ntp_intres.c ntp_io.c ntp_loopfilter.c ntp_monitor.c ntp_peer.c \
26	ntp_proto.c ntp_refclock.c ntp_request.c ntp_resolver.c \
27	ntp_restrict.c ntp_timer.c \
28	ntp_util.c ntpd.c refclock_acts.c refclock_arbiter.c refclock_arc.c \
29	refclock_as2201.c refclock_atom.c refclock_bancomm.c \
30	refclock_chronolog.c refclock_chu.c refclock_conf.c refclock_datum.c \
31	refclock_dumbclock.c refclock_fg.c refclock_gpsvme.c refclock_heath.c \
32	refclock_hopfser.c refclock_hopfpci.c \
33	refclock_hpgps.c refclock_irig.c refclock_jupiter.c refclock_leitch.c \
34	refclock_local.c refclock_msfees.c refclock_mx4200.c refclock_nmea.c \
35	refclock_oncore.c refclock_palisade.c refclock_palisade.h \
36	refclock_parse.c refclock_pcf.c refclock_pst.c refclock_ptbacts.c \
37	refclock_shm.c refclock_tpro.c refclock_trak.c refclock_true.c \
38	refclock_ulink.c refclock_usno.c refclock_wwv.c refclock_wwvb.c
39
40$(PROGRAMS): $(LDADD)
41
42../libntp/libntp.a:
43	cd ../libntp && $(MAKE)
44
45../libparse/libparse.a:
46	cd ../libparse && $(MAKE)
47
48version.o: $(ntpd_OBJECTS) ../libntp/libntp.a @LIBPARSE@ @LIBRSAREF@ Makefile
49	$(top_builddir)/scripts/mkver ntpd
50	$(COMPILE) -c version.c
51