1
# Makefile.in generated by automake 1.11 from Makefile.am.
1
# Makefile.in generated by automake 1.11.1 from Makefile.am.
4
4
# Copyright (C) 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001, 2002,
40
41
build_triplet = @build@
41
42
host_triplet = @host@
42
bin_PROGRAMS = ntpd$(EXEEXT) @MAKE_NTPDSIM@
43
@NTP_BINSUBDIR_IS_BIN_TRUE@bin_PROGRAMS = ntpd$(EXEEXT) @MAKE_NTPDSIM@
44
@NTP_BINSUBDIR_IS_BIN_FALSE@sbin_PROGRAMS = ntpd$(EXEEXT) \
45
@NTP_BINSUBDIR_IS_BIN_FALSE@ @MAKE_NTPDSIM@ $(am__empty)
43
46
EXTRA_PROGRAMS = check_y2k$(EXEEXT) ntpdsim$(EXEEXT) \
44
47
keyword-gen$(EXEEXT)
45
48
DIST_COMMON = $(srcdir)/Makefile.am $(srcdir)/Makefile.in \
95
98
refclock_wwvb.$(OBJEXT) refclock_zyfer.$(OBJEXT) \
97
100
libntpd_a_OBJECTS = $(am_libntpd_a_OBJECTS)
98
am__installdirs = "$(DESTDIR)$(bindir)" "$(DESTDIR)$(man1dir)"
99
PROGRAMS = $(bin_PROGRAMS)
101
am__installdirs = "$(DESTDIR)$(bindir)" "$(DESTDIR)$(sbindir)" \
102
"$(DESTDIR)$(man1dir)"
103
PROGRAMS = $(bin_PROGRAMS) $(sbin_PROGRAMS)
100
104
check_y2k_SOURCES = check_y2k.c
101
105
check_y2k_OBJECTS = check_y2k.$(OBJEXT)
102
106
am__DEPENDENCIES_1 = version.o libntpd.a
340
344
@NTP_CROSSCOMPILE_FALSE@@SAVECONFIG_ENABLED_TRUE@CHECK_SAVECONFIG = check-saveconfig
341
345
@NTP_CROSSCOMPILE_TRUE@@SAVECONFIG_ENABLED_TRUE@CHECK_SAVECONFIG =
342
346
@SAVECONFIG_ENABLED_FALSE@CHECK_SAVECONFIG =
343
@NTP_CROSSCOMPILE_FALSE@NTP_KEYWORD_OUT = ntp_keyword.out
344
@NTP_CROSSCOMPILE_TRUE@NTP_KEYWORD_OUT = ntp_keyword.dummy
345
347
@VPATH_HACK_FALSE@VPHACK =
357
359
@VPATH_HACK_TRUE@VPHACK = vphack
358
360
@VPATH_HACK_FALSE@VPHACK_AFTER =
359
361
@VPATH_HACK_TRUE@VPHACK_AFTER = vphack_after
363
# BUILT_SOURCES which should also be in EXTRA_DIST
360
369
BUILT_SOURCES = $(VPHACK) ntp_parser.c ntp_parser.h $(VPHACK_AFTER) \
361
ntp_keyword.h ntpd-opts.c ntpd-opts.h ntpd.1 ntpd-opts.texi \
362
ntpd-opts.menu .deps-ver
370
$(B_S_DIST) $(NULL) .deps-ver
371
man_MANS = $(srcdir)/ntpd.1
365
373
# ntpdsim.1 is a remnant along with all the ntpdsim-opts.* files, the
366
374
# simulator currently uses ntpd-opts.[ch]. This also means there is no
371
379
# sqrt ntp_control.o
372
380
# floor refclock_wwv.o
373
381
# which are (usually) provided by -lm.
374
keyword_gen_LDADD = ../libntp/libntp.a
375
ntpd_LDADD = $(LDADD) -lm @LCRYPTO@ @LSCF@ $(LIBOPTS_LDADD) ../libntp/libntp.a
376
ntpdsim_LDADD = $(LDADD) -lm @LCRYPTO@ @LSCF@ $(LIBOPTS_LDADD) ../libntp/libntpsim.a
382
ntpd_LDADD = $(LDADD) $(LIBOPTS_LDADD) ../libntp/libntp.a -lm @LCRYPTO@ @LSCF@
383
ntpdsim_LDADD = $(LDADD) $(LIBOPTS_LDADD) ../libntp/libntpsim.a -lm @LCRYPTO@ @LSCF@
377
384
ntpdsim_CFLAGS = $(CFLAGS) -DSIM
378
385
check_y2k_LDADD = $(LDADD) ../libntp/libntp.a
379
DISTCLEANFILES = keyword-gen .version version.c
380
CLEANFILES = check-saveconfig compsave.conf ntp_keyword.out \
381
ntp_keyword.dummy .deps-ver
386
keyword_gen_LDADD = ../libntp/libntp.a # we don't want $(LDADD) here
393
CLEANFILES = check-saveconfig compsave.conf k-g-u-submake $(NULL) \
385
402
ntpdbase-opts.def \
387
403
refclock_msfees.c \
388
404
refclock_trak.c \
392
408
ETAGS_ARGS = Makefile.am
394
410
check_PROGRAMS = @MAKE_CHECK_Y2K@
395
run_ag = cd $(srcdir) && \
396
env PATH="$(abs_builddir):$(PATH)" \
411
noinst_DATA = $(srcdir)/ntpd-opts.texi $(srcdir)/ntpd-opts.menu
412
run_ag = cd $(srcdir) && env PATH="$(abs_builddir):$(PATH)" \
397
413
autogen -L ../include --writable
399
415
std_def_list = $(top_srcdir)/include/autogen-version.def \
572
589
list=`for p in $$list; do echo "$$p"; done | sed 's/$(EXEEXT)$$//'`; \
573
590
echo " rm -f" $$list; \
592
install-sbinPROGRAMS: $(sbin_PROGRAMS)
594
test -z "$(sbindir)" || $(MKDIR_P) "$(DESTDIR)$(sbindir)"
595
@list='$(sbin_PROGRAMS)'; test -n "$(sbindir)" || list=; \
596
for p in $$list; do echo "$$p $$p"; done | \
597
sed 's/$(EXEEXT)$$//' | \
598
while read p p1; do if test -f $$p || test -f $$p1; \
599
then echo "$$p"; echo "$$p"; else :; fi; \
601
sed -e 'p;s,.*/,,;n;h' -e 's|.*|.|' \
602
-e 'p;x;s,.*/,,;s/$(EXEEXT)$$//;$(transform);s/$$/$(EXEEXT)/' | \
603
sed 'N;N;N;s,\n, ,g' | \
604
$(AWK) 'BEGIN { files["."] = ""; dirs["."] = 1 } \
605
{ d=$$3; if (dirs[d] != 1) { print "d", d; dirs[d] = 1 } \
606
if ($$2 == $$4) files[d] = files[d] " " $$1; \
607
else { print "f", $$3 "/" $$4, $$1; } } \
608
END { for (d in files) print "f", d, files[d] }' | \
609
while read type dir files; do \
610
if test "$$dir" = .; then dir=; else dir=/$$dir; fi; \
611
test -z "$$files" || { \
612
echo " $(INSTALL_PROGRAM_ENV) $(LIBTOOL) $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=install $(INSTALL_PROGRAM) $$files '$(DESTDIR)$(sbindir)$$dir'"; \
613
$(INSTALL_PROGRAM_ENV) $(LIBTOOL) $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=install $(INSTALL_PROGRAM) $$files "$(DESTDIR)$(sbindir)$$dir" || exit $$?; \
617
uninstall-sbinPROGRAMS:
619
@list='$(sbin_PROGRAMS)'; test -n "$(sbindir)" || list=; \
620
files=`for p in $$list; do echo "$$p"; done | \
621
sed -e 'h;s,^.*/,,;s/$(EXEEXT)$$//;$(transform)' \
622
-e 's/$$/$(EXEEXT)/' `; \
623
test -n "$$list" || exit 0; \
624
echo " ( cd '$(DESTDIR)$(sbindir)' && rm -f" $$files ")"; \
625
cd "$(DESTDIR)$(sbindir)" && rm -f $$files
628
@list='$(sbin_PROGRAMS)'; test -n "$$list" || exit 0; \
629
echo " rm -f" $$list; \
630
rm -f $$list || exit $$?; \
631
test -n "$(EXEEXT)" || exit 0; \
632
list=`for p in $$list; do echo "$$p"; done | sed 's/$(EXEEXT)$$//'`; \
633
echo " rm -f" $$list; \
575
635
check_y2k$(EXEEXT): $(check_y2k_OBJECTS) $(check_y2k_DEPENDENCIES)
576
636
@rm -f check_y2k$(EXEEXT)
577
637
$(LINK) $(check_y2k_OBJECTS) $(check_y2k_LDADD) $(LIBS)
962
1022
$(MAKE) $(AM_MAKEFLAGS) check-local
963
1023
check: $(BUILT_SOURCES)
964
1024
$(MAKE) $(AM_MAKEFLAGS) check-am
965
all-am: Makefile $(LIBRARIES) $(PROGRAMS) $(MANS)
1025
all-am: Makefile $(LIBRARIES) $(PROGRAMS) $(MANS) $(DATA)
967
for dir in "$(DESTDIR)$(bindir)" "$(DESTDIR)$(man1dir)"; do \
1027
for dir in "$(DESTDIR)$(bindir)" "$(DESTDIR)$(sbindir)" "$(DESTDIR)$(man1dir)"; do \
968
1028
test -z "$$dir" || $(MKDIR_P) "$$dir"; \
970
1030
install: $(BUILT_SOURCES)
1078
1140
.PHONY: CTAGS GTAGS all all-am check check-am check-local clean \
1079
1141
clean-binPROGRAMS clean-checkPROGRAMS clean-generic \
1080
clean-libtool clean-noinstLIBRARIES ctags distclean \
1081
distclean-compile distclean-generic distclean-libtool \
1082
distclean-tags distdir dvi dvi-am html html-am info info-am \
1083
install install-am install-binPROGRAMS install-data \
1084
install-data-am install-dvi install-dvi-am install-exec \
1085
install-exec-am install-exec-hook install-html install-html-am \
1086
install-info install-info-am install-man install-man1 \
1087
install-pdf install-pdf-am install-ps install-ps-am \
1088
install-strip installcheck installcheck-am installdirs \
1089
maintainer-clean maintainer-clean-generic mostlyclean \
1090
mostlyclean-compile mostlyclean-generic mostlyclean-libtool \
1091
pdf pdf-am ps ps-am tags uninstall uninstall-am \
1092
uninstall-binPROGRAMS uninstall-man uninstall-man1
1142
clean-libtool clean-noinstLIBRARIES clean-sbinPROGRAMS ctags \
1143
distclean distclean-compile distclean-generic \
1144
distclean-libtool distclean-tags distdir dvi dvi-am html \
1145
html-am info info-am install install-am install-binPROGRAMS \
1146
install-data install-data-am install-dvi install-dvi-am \
1147
install-exec install-exec-am install-exec-hook install-html \
1148
install-html-am install-info install-info-am install-man \
1149
install-man1 install-pdf install-pdf-am install-ps \
1150
install-ps-am install-sbinPROGRAMS install-strip installcheck \
1151
installcheck-am installdirs maintainer-clean \
1152
maintainer-clean-generic mostlyclean mostlyclean-compile \
1153
mostlyclean-generic mostlyclean-libtool pdf pdf-am ps ps-am \
1154
tags uninstall uninstall-am uninstall-binPROGRAMS \
1155
uninstall-man uninstall-man1 uninstall-sbinPROGRAMS
1112
1175
check-local: @MAKE_CHECK_Y2K@ $(CHECK_SAVECONFIG)
1113
1176
test -z "@MAKE_CHECK_Y2K@" || ./@MAKE_CHECK_Y2K@
1115
ntp_keyword.out: keyword-gen
1116
./keyword-gen $(srcdir)/ntp_parser.h > $@
1117
grep -v diff_ignore_line < $(srcdir)/ntp_keyword.h > cmp1
1118
grep -v diff_ignore_line < $@ > cmp2
1119
cmp cmp1 cmp2 > /dev/null || cp $@ $(srcdir)/ntp_keyword.h
1125
$(srcdir)/ntp_keyword.h: $(NTP_KEYWORD_OUT)
1178
k-g-u-submake: keyword-gen
1179
./keyword-gen $(srcdir)/ntp_parser.h > k-g.out
1180
@grep -v diff_ignore_line < k-g.out > cmp1
1181
@grep -v diff_ignore_line < $(srcdir)/ntp_keyword.h > cmp2
1182
@cmp cmp1 cmp2 > /dev/null || \
1183
{ mv -f k-g.out $(srcdir)/ntp_keyword.h && \
1184
echo 'Generated changed ntp_keyword.h.' ;}
1185
@[ ! -f k-g.out ] || \
1186
{ rm k-g.out && echo 'ntp_keyword.h is up to date.' ;}
1188
@echo 'keyword-gen and ntp_keyword.h are up to date.' > $@
1190
$(srcdir)/keyword-gen-utd: $(srcdir)/keyword-gen.c $(srcdir)/ntp_parser.h
1191
$(MAKE) k-g-u-submake # avoid explicit dependency
1192
grep diff_ignore_line $(srcdir)/ntp_keyword.h > k-g-u
1195
$(srcdir)/ntp_keyword.h: $(srcdir)/keyword-gen-utd
1126
1196
@: do-nothing action to avoid default SCCS get
1127
@: .h updated if needed by ntp_keyword.out rule
1197
@: .h updated if needed by k-g-u-submake rule
1129
1199
$(srcdir)/ntpd-opts.h: $(srcdir)/ntpd-opts.c
1130
1200
@: do-nothing action to avoid default SCCS get, .h built with .c
1135
1205
$(srcdir)/ntpd.1: $(srcdir)/ntpd-opts.def $(srcdir)/ntpdbase-opts.def $(std_def_list)
1136
1206
$(run_ag) -Tagman1.tpl -bntpd ntpd-opts.def
1138
$(srcdir)/ntpd-opts.texi $(srcdir)/ntpd-opts.menu: $(srcdir)/ntpd-opts.def $(srcdir)/ntpdbase-opts.def $(std_def_list)
1139
$(MAKE) ntpd # aginfo.tpl runs the binary to extract --help usage text
1208
$(srcdir)/ntpd-opts.menu: $(srcdir)/ntpd-opts.texi
1209
@: do-nothing action to avoid default SCCS get, .menu built with .texi
1211
$(srcdir)/ntpd-opts.texi: $(srcdir)/ntpd-opts.def $(srcdir)/ntpdbase-opts.def $(std_def_list)
1140
1212
$(run_ag) -Taginfo.tpl -DLEVEL=section ntpd-opts.def
1142
1214
$(PROGRAMS): $(LDADD)
1147
1219
check-saveconfig: $(srcdir)/complete.conf compsave.conf
1148
1220
cmp $(srcdir)/complete.conf compsave.conf && echo stamp > $@
1222
../libopts/libopts.la:
1223
cd ../libopts && $(MAKE) libopts.la
1150
1225
../libntp/libntp.a:
1151
1226
cd ../libntp && $(MAKE) libntp.a
1153
1228
../libparse/libparse.a:
1154
cd ../libparse && $(MAKE)
1229
cd ../libparse && $(MAKE) libparse.a
1156
$(top_srcdir)/version :
1231
$(top_srcdir)/version:
1157
1232
cd $(top_srcdir) && $(MAKE) version
1159
1234
version.o: $(ntpd_OBJECTS) ../libntp/libntp.a @LIBPARSE@ Makefile $(top_srcdir)/version
1161
1236
$(COMPILE) -c version.c
1163
1238
install-exec-hook:
1164
@case ${BINSUBDIR} in \
1165
bin) ODIR=${exec_prefix}/sbin ;; \
1166
sbin) ODIR=${exec_prefix}/bin ;; \
1168
test -z "${bin_PROGRAMS}${bin_SCRIPTS}" \
1239
@case ${BINSUBDIR} in \
1240
bin) ODIR=${sbindir} ;; \
1241
sbin) ODIR=${bindir} ;; \
1243
test -z "${bin_PROGRAMS}${bin_SCRIPTS}" \
1169
1244
|| for i in ${bin_PROGRAMS} ${bin_SCRIPTS} " "; do \
1170
1245
test ! -f $$ODIR/$$i || echo "*** $$i is also in $$ODIR!"; \