2006-06-11 18:57:12 +04:00
|
|
|
AUTOMAKE_OPTIONS= ../util/ansi2knr
|
|
|
|
|
|
|
|
bindir= ${exec_prefix}/${BINSUBDIR}
|
|
|
|
|
|
|
|
bin_PROGRAMS= ntpd @MAKE_NTPDSIM@
|
|
|
|
|
|
|
|
noinst_LIBRARIES= libntpd.a
|
|
|
|
|
2007-01-06 19:04:26 +03:00
|
|
|
AM_CPPFLAGS= -I$(top_srcdir)/include -I../include $(LIBOPTS_CFLAGS)
|
2003-12-04 19:05:14 +03:00
|
|
|
# LDADD might need RESLIB and ADJLIB.
|
2006-06-11 18:57:12 +04:00
|
|
|
LDADD= version.o libntpd.a @LIBPARSE@
|
|
|
|
|
2007-01-06 19:04:26 +03:00
|
|
|
BUILT_SOURCES= ntpd-opts.c ntpd-opts.h ntpd.1 ntpd-opts.texi ntpd-opts.menu
|
|
|
|
man_MANS= ntpd.1
|
|
|
|
|
|
|
|
BUILT_SOURCES+= ntpdsim-opts.c ntpdsim-opts.h ntpdsim.1 ntpdsim-opts.texi ntpdsim-opts.menu
|
|
|
|
man_MANS+= ntpdsim.1
|
|
|
|
|
2003-12-04 19:05:14 +03:00
|
|
|
# ntpd may need:
|
|
|
|
# log10 refclock_wwv.o
|
|
|
|
# sqrt ntp_control.o
|
|
|
|
# floor refclock_wwv.o
|
|
|
|
# which are (usually) provided by -lm.
|
2007-01-06 19:04:26 +03:00
|
|
|
ntpd_LDADD = $(LDADD) -lm @LCRYPTO@ $(LIBOPTS_LDADD) ../libntp/libntp.a
|
|
|
|
ntpdsim_LDADD = $(LDADD) ../libntp/libntpsim.a -lm @LCRYPTO@ $(LIBOPTS_LDADD)
|
2003-12-04 19:05:14 +03:00
|
|
|
ntpdsim_CFLAGS = $(CFLAGS) -DSIM
|
|
|
|
check_y2k_LDADD = $(LDADD) ../libntp/libntp.a
|
2000-03-29 16:38:44 +04:00
|
|
|
DISTCLEANFILES = .version version.c
|
2007-01-06 19:04:26 +03:00
|
|
|
EXTRA_DIST = ntpd-opts.def ntpdbase-opts.def ntpdsim-opts.def \
|
|
|
|
refclock_msfees.c \
|
|
|
|
refclock_trak.c \
|
|
|
|
$(BUILT_SOURCES)
|
2000-03-29 16:38:44 +04:00
|
|
|
ETAGS_ARGS = Makefile.am
|
|
|
|
### Y2Kfixes
|
|
|
|
check_PROGRAMS = @MAKE_CHECK_Y2K@
|
2003-12-04 19:05:14 +03:00
|
|
|
EXTRA_PROGRAMS = check_y2k ntpdsim
|
2007-01-06 19:04:26 +03:00
|
|
|
run_ag = cd $(srcdir) && autogen -L ../include
|
|
|
|
std_def_list= $(top_srcdir)/include/debug-opt.def \
|
|
|
|
$(top_srcdir)/include/autogen-version.def \
|
|
|
|
$(top_srcdir)/include/copyright.def \
|
|
|
|
$(top_srcdir)/include/version.def
|
2000-03-29 16:38:44 +04:00
|
|
|
|
|
|
|
check-local: @MAKE_CHECK_Y2K@
|
2003-12-04 19:05:14 +03:00
|
|
|
test -z "@MAKE_CHECK_Y2K@" || ./@MAKE_CHECK_Y2K@
|
2000-03-29 16:38:44 +04:00
|
|
|
|
2003-12-04 19:05:14 +03:00
|
|
|
# SIM: cmd_args.c ntp_config.c ntp_io.c ntpd.c + ntpsim.c (include/ntpsim.h)
|
|
|
|
# ntp_resolver.c is presently unused...
|
2007-01-06 19:04:26 +03:00
|
|
|
ntpd_SOURCES = cmd_args.c ntp_config.c ntp_io.c ntpd.c ntpd-opts.c ntpd-opts.h
|
|
|
|
ntpdsim_SOURCES = $(ntpd_SOURCES) ntpsim.c ntpdsim-opts.c ntpdsim-opts.h
|
2006-06-11 18:57:12 +04:00
|
|
|
libntpd_a_SOURCES = jupiter.h ntp_control.c \
|
2003-12-04 19:05:14 +03:00
|
|
|
ntp_crypto.c ntp_filegen.c \
|
|
|
|
ntp_intres.c ntp_loopfilter.c ntp_monitor.c ntp_peer.c \
|
|
|
|
ntp_proto.c ntp_refclock.c ntp_request.c \
|
|
|
|
ntp_restrict.c ntp_timer.c ntp_util.c \
|
2006-06-11 18:57:12 +04:00
|
|
|
ppsapi_timepps.h \
|
2003-12-04 19:05:14 +03:00
|
|
|
refclock_acts.c refclock_arbiter.c refclock_arc.c refclock_as2201.c \
|
|
|
|
refclock_atom.c refclock_bancomm.c refclock_chronolog.c \
|
|
|
|
refclock_chu.c refclock_conf.c refclock_datum.c refclock_dumbclock.c \
|
|
|
|
refclock_fg.c refclock_gpsvme.c refclock_heath.c refclock_hopfser.c \
|
|
|
|
refclock_hopfpci.c refclock_hpgps.c refclock_irig.c refclock_jjy.c \
|
|
|
|
refclock_jupiter.c refclock_leitch.c refclock_local.c \
|
2007-01-06 19:04:26 +03:00
|
|
|
refclock_mx4200.c refclock_neoclock4x.c \
|
2006-06-11 18:57:12 +04:00
|
|
|
refclock_nmea.c refclock_oncore.c refclock_palisade.c \
|
|
|
|
refclock_palisade.h refclock_parse.c \
|
|
|
|
refclock_pcf.c refclock_pst.c refclock_ripencc.c refclock_shm.c \
|
2007-01-06 19:04:26 +03:00
|
|
|
refclock_tpro.c refclock_true.c refclock_tt560.c \
|
2006-06-11 18:57:12 +04:00
|
|
|
refclock_ulink.c refclock_wwv.c refclock_wwvb.c \
|
|
|
|
refclock_zyfer.c
|
2000-03-29 16:38:44 +04:00
|
|
|
|
2007-01-06 19:04:26 +03:00
|
|
|
$(srcdir)/ntpd-opts.h: $(srcdir)/ntpd-opts.c
|
|
|
|
$(srcdir)/ntpd-opts.c: $(srcdir)/ntpd-opts.def $(srcdir)/ntpdbase-opts.def $(std_def_list)
|
|
|
|
$(run_ag) ntpd-opts.def
|
|
|
|
|
|
|
|
$(srcdir)/ntpd.1: $(srcdir)/ntpd-opts.def $(srcdir)/ntpdbase-opts.def $(std_def_list)
|
|
|
|
$(run_ag) -Tagman1.tpl -bntpd ntpd-opts.def
|
|
|
|
|
|
|
|
$(srcdir)/ntpd-opts.texi $(srcdir)/ntpd-opts.menu: $(srcdir)/ntpd-opts.def $(srcdir)/ntpdbase-opts.def $(std_def_list)
|
|
|
|
$(run_ag) -Taginfo.tpl -DLEVEL=section ntpd-opts.def
|
|
|
|
|
|
|
|
$(srcdir)/ntpdsim-opts.h: $(srcdir)/ntpdsim-opts.c
|
|
|
|
$(srcdir)/ntpdsim-opts.c: $(srcdir)/ntpdsim-opts.def $(srcdir)/ntpdbase-opts.def $(std_def_list)
|
|
|
|
$(run_ag) ntpdsim-opts.def
|
|
|
|
|
|
|
|
$(srcdir)/ntpdsim.1: $(srcdir)/ntpdsim-opts.def $(srcdir)/ntpdbase-opts.def $(std_def_list)
|
|
|
|
$(run_ag) -Tagman1.tpl -bntpdsim ntpdsim-opts.def
|
|
|
|
|
|
|
|
$(srcdir)/ntpdsim-opts.texi $(srcdir)/ntpdsim-opts.menu: $(srcdir)/ntpdsim-opts.def $(srcdir)/ntpdbase-opts.def $(std_def_list)
|
|
|
|
$(run_ag) -Taginfo.tpl -DLEVEL=section ntpdsim-opts.def
|
|
|
|
|
2000-03-29 16:38:44 +04:00
|
|
|
$(PROGRAMS): $(LDADD)
|
|
|
|
|
|
|
|
../libntp/libntp.a:
|
2007-01-06 19:04:26 +03:00
|
|
|
cd ../libntp && $(MAKE) libntp.a
|
|
|
|
|
|
|
|
../libntp/libntpsim.a:
|
|
|
|
cd ../libntp && $(MAKE) libntpsim.a
|
2000-03-29 16:38:44 +04:00
|
|
|
|
|
|
|
../libparse/libparse.a:
|
|
|
|
cd ../libparse && $(MAKE)
|
|
|
|
|
2007-01-06 19:04:26 +03:00
|
|
|
$(top_srcdir)/version :
|
|
|
|
cd $(top_srcdir) && $(MAKE) version
|
|
|
|
|
2003-12-04 19:05:14 +03:00
|
|
|
version.o: $(ntpd_OBJECTS) ../libntp/libntp.a @LIBPARSE@ Makefile $(top_srcdir)/version
|
|
|
|
env CSET=`cat $(top_srcdir)/version` $(top_builddir)/scripts/mkver ntpd
|
2000-03-29 16:38:44 +04:00
|
|
|
$(COMPILE) -c version.c
|
2006-06-11 18:57:12 +04:00
|
|
|
|
|
|
|
include ../bincheck.mf
|