xref: /freebsd/contrib/ntp/ntpdc/Makefile.in (revision e1a528369708afb723290916ad8ea9c79399e933)
1# Makefile.in generated by automake 1.11 from Makefile.am.
2# @configure_input@
3
4# Copyright (C) 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001, 2002,
5# 2003, 2004, 2005, 2006, 2007, 2008, 2009  Free Software Foundation,
6# Inc.
7# This Makefile.in is free software; the Free Software Foundation
8# gives unlimited permission to copy and/or distribute it,
9# with or without modifications, as long as this notice is preserved.
10
11# This program is distributed in the hope that it will be useful,
12# but WITHOUT ANY WARRANTY, to the extent permitted by law; without
13# even the implied warranty of MERCHANTABILITY or FITNESS FOR A
14# PARTICULAR PURPOSE.
15
16@SET_MAKE@
17
18# we traditionally installed software in bindir, while it should have gone
19# in sbindir.  Now that we offer a choice, look in the "other" installation
20# subdir to warn folks if there is another version there.
21
22
23VPATH = @srcdir@
24pkgdatadir = $(datadir)/@PACKAGE@
25pkgincludedir = $(includedir)/@PACKAGE@
26pkglibdir = $(libdir)/@PACKAGE@
27pkglibexecdir = $(libexecdir)/@PACKAGE@
28am__cd = CDPATH="$${ZSH_VERSION+.}$(PATH_SEPARATOR)" && cd
29install_sh_DATA = $(install_sh) -c -m 644
30install_sh_PROGRAM = $(install_sh) -c
31install_sh_SCRIPT = $(install_sh) -c
32INSTALL_HEADER = $(INSTALL_DATA)
33transform = $(program_transform_name)
34NORMAL_INSTALL = :
35PRE_INSTALL = :
36POST_INSTALL = :
37NORMAL_UNINSTALL = :
38PRE_UNINSTALL = :
39POST_UNINSTALL = :
40build_triplet = @build@
41host_triplet = @host@
42ANSI2KNR = ../util/ansi2knr
43bin_PROGRAMS = ntpdc$(EXEEXT)
44EXTRA_PROGRAMS = ntpdc-layout$(EXEEXT)
45DIST_COMMON = README $(noinst_HEADERS) $(srcdir)/../bincheck.mf \
46	$(srcdir)/Makefile.am $(srcdir)/Makefile.in $(srcdir)/nl.pl.in
47subdir = ntpdc
48ACLOCAL_M4 = $(top_srcdir)/aclocal.m4
49am__aclocal_m4_deps = $(top_srcdir)/libopts/m4/libopts.m4 \
50	$(top_srcdir)/m4/define_dir.m4 \
51	$(top_srcdir)/m4/hs_ulong_const.m4 \
52	$(top_srcdir)/m4/os_cflags.m4 $(top_srcdir)/version.m4 \
53	$(top_srcdir)/configure.ac
54am__configure_deps = $(am__aclocal_m4_deps) $(CONFIGURE_DEPENDENCIES) \
55	$(ACLOCAL_M4)
56mkinstalldirs = $(install_sh) -d
57CONFIG_HEADER = $(top_builddir)/config.h
58CONFIG_CLEAN_FILES = nl.pl
59CONFIG_CLEAN_VPATH_FILES =
60am__installdirs = "$(DESTDIR)$(bindir)" "$(DESTDIR)$(man1dir)"
61PROGRAMS = $(bin_PROGRAMS)
62am_ntpdc_OBJECTS = ntpdc$U.$(OBJEXT) ntpdc_ops$U.$(OBJEXT) \
63	ntpdc-opts$U.$(OBJEXT)
64ntpdc_OBJECTS = $(am_ntpdc_OBJECTS)
65am__DEPENDENCIES_1 =
66ntpdc_DEPENDENCIES = version.o $(am__DEPENDENCIES_1) \
67	../libntp/libntp.a
68ntpdc_layout_SOURCES = ntpdc-layout.c
69ntpdc_layout_OBJECTS = ntpdc-layout$U.$(OBJEXT)
70ntpdc_layout_DEPENDENCIES =
71DEFAULT_INCLUDES = -I.@am__isrc@ -I$(top_builddir)
72depcomp = $(SHELL) $(top_srcdir)/depcomp
73am__depfiles_maybe = depfiles
74am__mv = mv -f
75COMPILE = $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) \
76	$(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS)
77LTCOMPILE = $(LIBTOOL) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) \
78	--mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) \
79	$(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS)
80CCLD = $(CC)
81LINK = $(LIBTOOL) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) \
82	--mode=link $(CCLD) $(AM_CFLAGS) $(CFLAGS) $(AM_LDFLAGS) \
83	$(LDFLAGS) -o $@
84SOURCES = $(ntpdc_SOURCES) ntpdc-layout.c
85DIST_SOURCES = $(ntpdc_SOURCES) ntpdc-layout.c
86am__vpath_adj_setup = srcdirstrip=`echo "$(srcdir)" | sed 's|.|.|g'`;
87am__vpath_adj = case $$p in \
88    $(srcdir)/*) f=`echo "$$p" | sed "s|^$$srcdirstrip/||"`;; \
89    *) f=$$p;; \
90  esac;
91am__strip_dir = f=`echo $$p | sed -e 's|^.*/||'`;
92am__install_max = 40
93am__nobase_strip_setup = \
94  srcdirstrip=`echo "$(srcdir)" | sed 's/[].[^$$\\*|]/\\\\&/g'`
95am__nobase_strip = \
96  for p in $$list; do echo "$$p"; done | sed -e "s|$$srcdirstrip/||"
97am__nobase_list = $(am__nobase_strip_setup); \
98  for p in $$list; do echo "$$p $$p"; done | \
99  sed "s| $$srcdirstrip/| |;"' / .*\//!s/ .*/ ./; s,\( .*\)/[^/]*$$,\1,' | \
100  $(AWK) 'BEGIN { files["."] = "" } { files[$$2] = files[$$2] " " $$1; \
101    if (++n[$$2] == $(am__install_max)) \
102      { print $$2, files[$$2]; n[$$2] = 0; files[$$2] = "" } } \
103    END { for (dir in files) print dir, files[dir] }'
104am__base_list = \
105  sed '$$!N;$$!N;$$!N;$$!N;$$!N;$$!N;$$!N;s/\n/ /g' | \
106  sed '$$!N;$$!N;$$!N;$$!N;s/\n/ /g'
107man1dir = $(mandir)/man1
108NROFF = nroff
109MANS = $(man_MANS)
110HEADERS = $(noinst_HEADERS)
111ETAGS = etags
112CTAGS = ctags
113DISTFILES = $(DIST_COMMON) $(DIST_SOURCES) $(TEXINFOS) $(EXTRA_DIST)
114ACLOCAL = @ACLOCAL@
115AMTAR = @AMTAR@
116AR = @AR@
117ARLIB_DIR = @ARLIB_DIR@
118AUTOCONF = @AUTOCONF@
119AUTOHEADER = @AUTOHEADER@
120AUTOMAKE = @AUTOMAKE@
121AWK = @AWK@
122BINSUBDIR = @BINSUBDIR@
123CC = @CC@
124CCDEPMODE = @CCDEPMODE@
125CFLAGS = @CFLAGS@
126CHUTEST = @CHUTEST@
127CLKTEST = @CLKTEST@
128CPP = @CPP@
129CPPFLAGS = @CPPFLAGS@
130CYGPATH_W = @CYGPATH_W@
131DCFD = @DCFD@
132DEFS = @DEFS@
133DEPDIR = @DEPDIR@
134ECHO = @ECHO@
135ECHO_C = @ECHO_C@
136ECHO_N = @ECHO_N@
137ECHO_T = @ECHO_T@
138EF_LIBS = @EF_LIBS@
139EF_PROGS = @EF_PROGS@
140EGREP = @EGREP@
141EXEEXT = @EXEEXT@
142GREP = @GREP@
143HAVE_INLINE = @HAVE_INLINE@
144INSTALL = @INSTALL@
145INSTALL_DATA = @INSTALL_DATA@
146INSTALL_PROGRAM = @INSTALL_PROGRAM@
147INSTALL_SCRIPT = @INSTALL_SCRIPT@
148INSTALL_STRIP_PROGRAM = @INSTALL_STRIP_PROGRAM@
149LCRYPTO = @LCRYPTO@
150LDFLAGS = @LDFLAGS@
151LIBOBJS = @LIBOBJS@
152LIBOPTS_CFLAGS = @LIBOPTS_CFLAGS@
153LIBOPTS_DIR = @LIBOPTS_DIR@
154LIBOPTS_LDADD = @LIBOPTS_LDADD@
155LIBPARSE = @LIBPARSE@
156LIBS = @LIBS@
157LIBTOOL = @LIBTOOL@
158LN_S = @LN_S@
159LSCF = @LSCF@
160LTLIBOBJS = @LTLIBOBJS@
161MAKEINFO = @MAKEINFO@
162MAKE_ADJTIMED = @MAKE_ADJTIMED@
163MAKE_CHECK_LAYOUT = @MAKE_CHECK_LAYOUT@
164MAKE_CHECK_Y2K = @MAKE_CHECK_Y2K@
165MAKE_LIBNTPSIM = @MAKE_LIBNTPSIM@
166MAKE_LIBPARSE = @MAKE_LIBPARSE@
167MAKE_LIBPARSE_KERNEL = @MAKE_LIBPARSE_KERNEL@
168MAKE_NTPDSIM = @MAKE_NTPDSIM@
169MAKE_NTPTIME = @MAKE_NTPTIME@
170MAKE_PARSEKMODULE = @MAKE_PARSEKMODULE@
171MAKE_TICKADJ = @MAKE_TICKADJ@
172MAKE_TIMETRIM = @MAKE_TIMETRIM@
173MKDIR_P = @MKDIR_P@
174OBJEXT = @OBJEXT@
175OPENSSL = @OPENSSL@
176OPENSSL_INC = @OPENSSL_INC@
177OPENSSL_LIB = @OPENSSL_LIB@
178PACKAGE = @PACKAGE@
179PACKAGE_BUGREPORT = @PACKAGE_BUGREPORT@
180PACKAGE_NAME = @PACKAGE_NAME@
181PACKAGE_STRING = @PACKAGE_STRING@
182PACKAGE_TARNAME = @PACKAGE_TARNAME@
183PACKAGE_URL = @PACKAGE_URL@
184PACKAGE_VERSION = @PACKAGE_VERSION@
185PATH_PERL = @PATH_PERL@
186PATH_SEPARATOR = @PATH_SEPARATOR@
187PATH_SH = @PATH_SH@
188PROPDELAY = @PROPDELAY@
189RANLIB = @RANLIB@
190READLINE_LIBS = @READLINE_LIBS@
191SET_MAKE = @SET_MAKE@
192SHELL = @SHELL@
193STRIP = @STRIP@
194TESTDCF = @TESTDCF@
195U = @U@
196VERSION = @VERSION@
197abs_builddir = @abs_builddir@
198abs_srcdir = @abs_srcdir@
199abs_top_builddir = @abs_top_builddir@
200abs_top_srcdir = @abs_top_srcdir@
201ac_ct_CC = @ac_ct_CC@
202am__include = @am__include@
203am__leading_dot = @am__leading_dot@
204am__quote = @am__quote@
205am__tar = @am__tar@
206am__untar = @am__untar@
207bindir = ${exec_prefix}/${BINSUBDIR}
208build = @build@
209build_alias = @build_alias@
210build_cpu = @build_cpu@
211build_os = @build_os@
212build_vendor = @build_vendor@
213builddir = @builddir@
214datadir = @datadir@
215datarootdir = @datarootdir@
216docdir = @docdir@
217dvidir = @dvidir@
218exec_prefix = @exec_prefix@
219host = @host@
220host_alias = @host_alias@
221host_cpu = @host_cpu@
222host_os = @host_os@
223host_vendor = @host_vendor@
224htmldir = @htmldir@
225includedir = @includedir@
226infodir = @infodir@
227install_sh = @install_sh@
228libdir = @libdir@
229libexecdir = @libexecdir@
230localedir = @localedir@
231localstatedir = @localstatedir@
232mandir = @mandir@
233mkdir_p = @mkdir_p@
234oldincludedir = @oldincludedir@
235pdfdir = @pdfdir@
236prefix = @prefix@
237program_transform_name = @program_transform_name@
238psdir = @psdir@
239sbindir = @sbindir@
240sharedstatedir = @sharedstatedir@
241srcdir = @srcdir@
242subdirs = @subdirs@
243sysconfdir = @sysconfdir@
244target_alias = @target_alias@
245top_build_prefix = @top_build_prefix@
246top_builddir = @top_builddir@
247top_srcdir = @top_srcdir@
248AUTOMAKE_OPTIONS = ../util/ansi2knr
249EXTRA_DATA = check-layout
250BUILT_SOURCES = @MAKE_CHECK_LAYOUT@ ntpdc-opts.c ntpdc-opts.h ntpdc.1 \
251	ntpdc-opts.texi ntpdc-opts.menu
252AM_CPPFLAGS = -I$(top_srcdir)/include $(LIBOPTS_CFLAGS)
253# LDADD might need RESLIB and ADJLIB
254ntpdc_LDADD = version.o @READLINE_LIBS@ $(LIBOPTS_LDADD) ../libntp/libntp.a
255# ntpdc-layout doesn't need any additional libraries at all
256ntpdc_layout_LDADD =
257DISTCLEANFILES = .version version.c
258CLEANFILES = check-layout layout.here nl.c ntpdc-layout
259noinst_HEADERS = ntpdc.h
260ETAGS_ARGS = Makefile.am
261EXTRA_DIST = nl_in.c nl.pl layout.std	\
262		ntpdc-opts.def ntpdc.1 ntpdc-opts.texi ntpdc-opts.menu
263
264man_MANS = ntpdc.1
265run_ag = cd $(srcdir) && autogen -L ../include --writable
266std_def_list = $(top_srcdir)/include/debug-opt.def		\
267		$(top_srcdir)/include/autogen-version.def 	\
268		$(top_srcdir)/include/copyright.def 		\
269		$(top_srcdir)/include/homerc.def 		\
270		$(top_srcdir)/include/version.def
271
272ntpdc_SOURCES = ntpdc.c ntpdc_ops.c ntpdc-opts.c ntpdc-opts.h
273all: $(BUILT_SOURCES)
274	$(MAKE) $(AM_MAKEFLAGS) all-am
275
276.SUFFIXES:
277.SUFFIXES: .c .lo .o .obj
278$(srcdir)/Makefile.in:  $(srcdir)/Makefile.am $(srcdir)/../bincheck.mf $(am__configure_deps)
279	@for dep in $?; do \
280	  case '$(am__configure_deps)' in \
281	    *$$dep*) \
282	      ( cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh ) \
283	        && { if test -f $@; then exit 0; else break; fi; }; \
284	      exit 1;; \
285	  esac; \
286	done; \
287	echo ' cd $(top_srcdir) && $(AUTOMAKE) --foreign ntpdc/Makefile'; \
288	$(am__cd) $(top_srcdir) && \
289	  $(AUTOMAKE) --foreign ntpdc/Makefile
290.PRECIOUS: Makefile
291Makefile: $(srcdir)/Makefile.in $(top_builddir)/config.status
292	@case '$?' in \
293	  *config.status*) \
294	    cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh;; \
295	  *) \
296	    echo ' cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__depfiles_maybe)'; \
297	    cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__depfiles_maybe);; \
298	esac;
299
300$(top_builddir)/config.status: $(top_srcdir)/configure $(CONFIG_STATUS_DEPENDENCIES)
301	cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh
302
303$(top_srcdir)/configure:  $(am__configure_deps)
304	cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh
305$(ACLOCAL_M4):  $(am__aclocal_m4_deps)
306	cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh
307$(am__aclocal_m4_deps):
308nl.pl: $(top_builddir)/config.status $(srcdir)/nl.pl.in
309	cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@
310install-binPROGRAMS: $(bin_PROGRAMS)
311	@$(NORMAL_INSTALL)
312	test -z "$(bindir)" || $(MKDIR_P) "$(DESTDIR)$(bindir)"
313	@list='$(bin_PROGRAMS)'; test -n "$(bindir)" || list=; \
314	for p in $$list; do echo "$$p $$p"; done | \
315	sed 's/$(EXEEXT)$$//' | \
316	while read p p1; do if test -f $$p || test -f $$p1; \
317	  then echo "$$p"; echo "$$p"; else :; fi; \
318	done | \
319	sed -e 'p;s,.*/,,;n;h' -e 's|.*|.|' \
320	    -e 'p;x;s,.*/,,;s/$(EXEEXT)$$//;$(transform);s/$$/$(EXEEXT)/' | \
321	sed 'N;N;N;s,\n, ,g' | \
322	$(AWK) 'BEGIN { files["."] = ""; dirs["."] = 1 } \
323	  { d=$$3; if (dirs[d] != 1) { print "d", d; dirs[d] = 1 } \
324	    if ($$2 == $$4) files[d] = files[d] " " $$1; \
325	    else { print "f", $$3 "/" $$4, $$1; } } \
326	  END { for (d in files) print "f", d, files[d] }' | \
327	while read type dir files; do \
328	    if test "$$dir" = .; then dir=; else dir=/$$dir; fi; \
329	    test -z "$$files" || { \
330	    echo " $(INSTALL_PROGRAM_ENV) $(LIBTOOL) $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=install $(INSTALL_PROGRAM) $$files '$(DESTDIR)$(bindir)$$dir'"; \
331	    $(INSTALL_PROGRAM_ENV) $(LIBTOOL) $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=install $(INSTALL_PROGRAM) $$files "$(DESTDIR)$(bindir)$$dir" || exit $$?; \
332	    } \
333	; done
334
335uninstall-binPROGRAMS:
336	@$(NORMAL_UNINSTALL)
337	@list='$(bin_PROGRAMS)'; test -n "$(bindir)" || list=; \
338	files=`for p in $$list; do echo "$$p"; done | \
339	  sed -e 'h;s,^.*/,,;s/$(EXEEXT)$$//;$(transform)' \
340	      -e 's/$$/$(EXEEXT)/' `; \
341	test -n "$$list" || exit 0; \
342	echo " ( cd '$(DESTDIR)$(bindir)' && rm -f" $$files ")"; \
343	cd "$(DESTDIR)$(bindir)" && rm -f $$files
344
345clean-binPROGRAMS:
346	@list='$(bin_PROGRAMS)'; test -n "$$list" || exit 0; \
347	echo " rm -f" $$list; \
348	rm -f $$list || exit $$?; \
349	test -n "$(EXEEXT)" || exit 0; \
350	list=`for p in $$list; do echo "$$p"; done | sed 's/$(EXEEXT)$$//'`; \
351	echo " rm -f" $$list; \
352	rm -f $$list
353ntpdc$(EXEEXT): $(ntpdc_OBJECTS) $(ntpdc_DEPENDENCIES)
354	@rm -f ntpdc$(EXEEXT)
355	$(LINK) $(ntpdc_OBJECTS) $(ntpdc_LDADD) $(LIBS)
356ntpdc-layout$(EXEEXT): $(ntpdc_layout_OBJECTS) $(ntpdc_layout_DEPENDENCIES)
357	@rm -f ntpdc-layout$(EXEEXT)
358	$(LINK) $(ntpdc_layout_OBJECTS) $(ntpdc_layout_LDADD) $(LIBS)
359
360mostlyclean-compile:
361	-rm -f *.$(OBJEXT)
362
363distclean-compile:
364	-rm -f *.tab.c
365../util/ansi2knr:
366	$(am__cd) ../util && $(MAKE) $(AM_MAKEFLAGS) ./ansi2knr
367
368mostlyclean-kr:
369	-test "$U" = "" || rm -f *_.c
370
371@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/ntpdc$U.Po@am__quote@
372@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/ntpdc-layout$U.Po@am__quote@
373@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/ntpdc-opts$U.Po@am__quote@
374@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/ntpdc_ops$U.Po@am__quote@
375
376.c.o:
377@am__fastdepCC_TRUE@	$(COMPILE) -MT $@ -MD -MP -MF $(DEPDIR)/$*.Tpo -c -o $@ $<
378@am__fastdepCC_TRUE@	$(am__mv) $(DEPDIR)/$*.Tpo $(DEPDIR)/$*.Po
379@AMDEP_TRUE@@am__fastdepCC_FALSE@	source='$<' object='$@' libtool=no @AMDEPBACKSLASH@
380@AMDEP_TRUE@@am__fastdepCC_FALSE@	DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
381@am__fastdepCC_FALSE@	$(COMPILE) -c $<
382
383.c.obj:
384@am__fastdepCC_TRUE@	$(COMPILE) -MT $@ -MD -MP -MF $(DEPDIR)/$*.Tpo -c -o $@ `$(CYGPATH_W) '$<'`
385@am__fastdepCC_TRUE@	$(am__mv) $(DEPDIR)/$*.Tpo $(DEPDIR)/$*.Po
386@AMDEP_TRUE@@am__fastdepCC_FALSE@	source='$<' object='$@' libtool=no @AMDEPBACKSLASH@
387@AMDEP_TRUE@@am__fastdepCC_FALSE@	DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
388@am__fastdepCC_FALSE@	$(COMPILE) -c `$(CYGPATH_W) '$<'`
389
390.c.lo:
391@am__fastdepCC_TRUE@	$(LTCOMPILE) -MT $@ -MD -MP -MF $(DEPDIR)/$*.Tpo -c -o $@ $<
392@am__fastdepCC_TRUE@	$(am__mv) $(DEPDIR)/$*.Tpo $(DEPDIR)/$*.Plo
393@AMDEP_TRUE@@am__fastdepCC_FALSE@	source='$<' object='$@' libtool=yes @AMDEPBACKSLASH@
394@AMDEP_TRUE@@am__fastdepCC_FALSE@	DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
395@am__fastdepCC_FALSE@	$(LTCOMPILE) -c -o $@ $<
396ntpdc_.c: ntpdc.c $(ANSI2KNR)
397	$(CPP) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) `if test -f $(srcdir)/ntpdc.c; then echo $(srcdir)/ntpdc.c; else echo ntpdc.c; fi` | sed 's/^# \([0-9]\)/#line \1/' | $(ANSI2KNR) > $@ || rm -f $@
398ntpdc-layout_.c: ntpdc-layout.c $(ANSI2KNR)
399	$(CPP) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) `if test -f $(srcdir)/ntpdc-layout.c; then echo $(srcdir)/ntpdc-layout.c; else echo ntpdc-layout.c; fi` | sed 's/^# \([0-9]\)/#line \1/' | $(ANSI2KNR) > $@ || rm -f $@
400ntpdc-opts_.c: ntpdc-opts.c $(ANSI2KNR)
401	$(CPP) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) `if test -f $(srcdir)/ntpdc-opts.c; then echo $(srcdir)/ntpdc-opts.c; else echo ntpdc-opts.c; fi` | sed 's/^# \([0-9]\)/#line \1/' | $(ANSI2KNR) > $@ || rm -f $@
402ntpdc_ops_.c: ntpdc_ops.c $(ANSI2KNR)
403	$(CPP) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) `if test -f $(srcdir)/ntpdc_ops.c; then echo $(srcdir)/ntpdc_ops.c; else echo ntpdc_ops.c; fi` | sed 's/^# \([0-9]\)/#line \1/' | $(ANSI2KNR) > $@ || rm -f $@
404ntpdc_.$(OBJEXT) ntpdc_.lo ntpdc-layout_.$(OBJEXT) ntpdc-layout_.lo \
405ntpdc-opts_.$(OBJEXT) ntpdc-opts_.lo ntpdc_ops_.$(OBJEXT) \
406ntpdc_ops_.lo : $(ANSI2KNR)
407
408mostlyclean-libtool:
409	-rm -f *.lo
410
411clean-libtool:
412	-rm -rf .libs _libs
413install-man1: $(man_MANS)
414	@$(NORMAL_INSTALL)
415	test -z "$(man1dir)" || $(MKDIR_P) "$(DESTDIR)$(man1dir)"
416	@list=''; test -n "$(man1dir)" || exit 0; \
417	{ for i in $$list; do echo "$$i"; done; \
418	l2='$(man_MANS)'; for i in $$l2; do echo "$$i"; done | \
419	  sed -n '/\.1[a-z]*$$/p'; \
420	} | while read p; do \
421	  if test -f $$p; then d=; else d="$(srcdir)/"; fi; \
422	  echo "$$d$$p"; echo "$$p"; \
423	done | \
424	sed -e 'n;s,.*/,,;p;h;s,.*\.,,;s,^[^1][0-9a-z]*$$,1,;x' \
425	      -e 's,\.[0-9a-z]*$$,,;$(transform);G;s,\n,.,' | \
426	sed 'N;N;s,\n, ,g' | { \
427	list=; while read file base inst; do \
428	  if test "$$base" = "$$inst"; then list="$$list $$file"; else \
429	    echo " $(INSTALL_DATA) '$$file' '$(DESTDIR)$(man1dir)/$$inst'"; \
430	    $(INSTALL_DATA) "$$file" "$(DESTDIR)$(man1dir)/$$inst" || exit $$?; \
431	  fi; \
432	done; \
433	for i in $$list; do echo "$$i"; done | $(am__base_list) | \
434	while read files; do \
435	  test -z "$$files" || { \
436	    echo " $(INSTALL_DATA) $$files '$(DESTDIR)$(man1dir)'"; \
437	    $(INSTALL_DATA) $$files "$(DESTDIR)$(man1dir)" || exit $$?; }; \
438	done; }
439
440uninstall-man1:
441	@$(NORMAL_UNINSTALL)
442	@list=''; test -n "$(man1dir)" || exit 0; \
443	files=`{ for i in $$list; do echo "$$i"; done; \
444	l2='$(man_MANS)'; for i in $$l2; do echo "$$i"; done | \
445	  sed -n '/\.1[a-z]*$$/p'; \
446	} | sed -e 's,.*/,,;h;s,.*\.,,;s,^[^1][0-9a-z]*$$,1,;x' \
447	      -e 's,\.[0-9a-z]*$$,,;$(transform);G;s,\n,.,'`; \
448	test -z "$$files" || { \
449	  echo " ( cd '$(DESTDIR)$(man1dir)' && rm -f" $$files ")"; \
450	  cd "$(DESTDIR)$(man1dir)" && rm -f $$files; }
451
452ID: $(HEADERS) $(SOURCES) $(LISP) $(TAGS_FILES)
453	list='$(SOURCES) $(HEADERS) $(LISP) $(TAGS_FILES)'; \
454	unique=`for i in $$list; do \
455	    if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \
456	  done | \
457	  $(AWK) '{ files[$$0] = 1; nonempty = 1; } \
458	      END { if (nonempty) { for (i in files) print i; }; }'`; \
459	mkid -fID $$unique
460tags: TAGS
461
462TAGS:  $(HEADERS) $(SOURCES)  $(TAGS_DEPENDENCIES) \
463		$(TAGS_FILES) $(LISP)
464	set x; \
465	here=`pwd`; \
466	list='$(SOURCES) $(HEADERS)  $(LISP) $(TAGS_FILES)'; \
467	unique=`for i in $$list; do \
468	    if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \
469	  done | \
470	  $(AWK) '{ files[$$0] = 1; nonempty = 1; } \
471	      END { if (nonempty) { for (i in files) print i; }; }'`; \
472	shift; \
473	if test -z "$(ETAGS_ARGS)$$*$$unique"; then :; else \
474	  test -n "$$unique" || unique=$$empty_fix; \
475	  if test $$# -gt 0; then \
476	    $(ETAGS) $(ETAGSFLAGS) $(AM_ETAGSFLAGS) $(ETAGS_ARGS) \
477	      "$$@" $$unique; \
478	  else \
479	    $(ETAGS) $(ETAGSFLAGS) $(AM_ETAGSFLAGS) $(ETAGS_ARGS) \
480	      $$unique; \
481	  fi; \
482	fi
483ctags: CTAGS
484CTAGS:  $(HEADERS) $(SOURCES)  $(TAGS_DEPENDENCIES) \
485		$(TAGS_FILES) $(LISP)
486	list='$(SOURCES) $(HEADERS)  $(LISP) $(TAGS_FILES)'; \
487	unique=`for i in $$list; do \
488	    if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \
489	  done | \
490	  $(AWK) '{ files[$$0] = 1; nonempty = 1; } \
491	      END { if (nonempty) { for (i in files) print i; }; }'`; \
492	test -z "$(CTAGS_ARGS)$$unique" \
493	  || $(CTAGS) $(CTAGSFLAGS) $(AM_CTAGSFLAGS) $(CTAGS_ARGS) \
494	     $$unique
495
496GTAGS:
497	here=`$(am__cd) $(top_builddir) && pwd` \
498	  && $(am__cd) $(top_srcdir) \
499	  && gtags -i $(GTAGS_ARGS) "$$here"
500
501distclean-tags:
502	-rm -f TAGS ID GTAGS GRTAGS GSYMS GPATH tags
503
504distdir: $(DISTFILES)
505	@list='$(MANS)'; if test -n "$$list"; then \
506	  list=`for p in $$list; do \
507	    if test -f $$p; then d=; else d="$(srcdir)/"; fi; \
508	    if test -f "$$d$$p"; then echo "$$d$$p"; else :; fi; done`; \
509	  if test -n "$$list" && \
510	    grep 'ab help2man is required to generate this page' $$list >/dev/null; then \
511	    echo "error: found man pages containing the \`missing help2man' replacement text:" >&2; \
512	    grep -l 'ab help2man is required to generate this page' $$list | sed 's/^/         /' >&2; \
513	    echo "       to fix them, install help2man, remove and regenerate the man pages;" >&2; \
514	    echo "       typically \`make maintainer-clean' will remove them" >&2; \
515	    exit 1; \
516	  else :; fi; \
517	else :; fi
518	@srcdirstrip=`echo "$(srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \
519	topsrcdirstrip=`echo "$(top_srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \
520	list='$(DISTFILES)'; \
521	  dist_files=`for file in $$list; do echo $$file; done | \
522	  sed -e "s|^$$srcdirstrip/||;t" \
523	      -e "s|^$$topsrcdirstrip/|$(top_builddir)/|;t"`; \
524	case $$dist_files in \
525	  */*) $(MKDIR_P) `echo "$$dist_files" | \
526			   sed '/\//!d;s|^|$(distdir)/|;s,/[^/]*$$,,' | \
527			   sort -u` ;; \
528	esac; \
529	for file in $$dist_files; do \
530	  if test -f $$file || test -d $$file; then d=.; else d=$(srcdir); fi; \
531	  if test -d $$d/$$file; then \
532	    dir=`echo "/$$file" | sed -e 's,/[^/]*$$,,'`; \
533	    if test -d "$(distdir)/$$file"; then \
534	      find "$(distdir)/$$file" -type d ! -perm -700 -exec chmod u+rwx {} \;; \
535	    fi; \
536	    if test -d $(srcdir)/$$file && test $$d != $(srcdir); then \
537	      cp -fpR $(srcdir)/$$file "$(distdir)$$dir" || exit 1; \
538	      find "$(distdir)/$$file" -type d ! -perm -700 -exec chmod u+rwx {} \;; \
539	    fi; \
540	    cp -fpR $$d/$$file "$(distdir)$$dir" || exit 1; \
541	  else \
542	    test -f "$(distdir)/$$file" \
543	    || cp -p $$d/$$file "$(distdir)/$$file" \
544	    || exit 1; \
545	  fi; \
546	done
547check-am: all-am
548check: $(BUILT_SOURCES)
549	$(MAKE) $(AM_MAKEFLAGS) check-am
550all-am: Makefile $(PROGRAMS) $(MANS) $(HEADERS)
551installdirs:
552	for dir in "$(DESTDIR)$(bindir)" "$(DESTDIR)$(man1dir)"; do \
553	  test -z "$$dir" || $(MKDIR_P) "$$dir"; \
554	done
555install: $(BUILT_SOURCES)
556	$(MAKE) $(AM_MAKEFLAGS) install-am
557install-exec: install-exec-am
558install-data: install-data-am
559uninstall: uninstall-am
560
561install-am: all-am
562	@$(MAKE) $(AM_MAKEFLAGS) install-exec-am install-data-am
563
564installcheck: installcheck-am
565install-strip:
566	$(MAKE) $(AM_MAKEFLAGS) INSTALL_PROGRAM="$(INSTALL_STRIP_PROGRAM)" \
567	  install_sh_PROGRAM="$(INSTALL_STRIP_PROGRAM)" INSTALL_STRIP_FLAG=-s \
568	  `test -z '$(STRIP)' || \
569	    echo "INSTALL_PROGRAM_ENV=STRIPPROG='$(STRIP)'"` install
570mostlyclean-generic:
571
572clean-generic:
573	-test -z "$(CLEANFILES)" || rm -f $(CLEANFILES)
574
575distclean-generic:
576	-test -z "$(CONFIG_CLEAN_FILES)" || rm -f $(CONFIG_CLEAN_FILES)
577	-test . = "$(srcdir)" || test -z "$(CONFIG_CLEAN_VPATH_FILES)" || rm -f $(CONFIG_CLEAN_VPATH_FILES)
578	-test -z "$(DISTCLEANFILES)" || rm -f $(DISTCLEANFILES)
579
580maintainer-clean-generic:
581	@echo "This command is intended for maintainers to use"
582	@echo "it deletes files that may require special tools to rebuild."
583	-test -z "$(BUILT_SOURCES)" || rm -f $(BUILT_SOURCES)
584clean: clean-am
585
586clean-am: clean-binPROGRAMS clean-generic clean-libtool mostlyclean-am
587
588distclean: distclean-am
589	-rm -rf ./$(DEPDIR)
590	-rm -f Makefile
591distclean-am: clean-am distclean-compile distclean-generic \
592	distclean-tags
593
594dvi: dvi-am
595
596dvi-am:
597
598html: html-am
599
600html-am:
601
602info: info-am
603
604info-am:
605
606install-data-am: install-man
607
608install-dvi: install-dvi-am
609
610install-dvi-am:
611
612install-exec-am: install-binPROGRAMS
613	@$(NORMAL_INSTALL)
614	$(MAKE) $(AM_MAKEFLAGS) install-exec-hook
615install-html: install-html-am
616
617install-html-am:
618
619install-info: install-info-am
620
621install-info-am:
622
623install-man: install-man1
624
625install-pdf: install-pdf-am
626
627install-pdf-am:
628
629install-ps: install-ps-am
630
631install-ps-am:
632
633installcheck-am:
634
635maintainer-clean: maintainer-clean-am
636	-rm -rf ./$(DEPDIR)
637	-rm -f Makefile
638maintainer-clean-am: distclean-am maintainer-clean-generic
639
640mostlyclean: mostlyclean-am
641
642mostlyclean-am: mostlyclean-compile mostlyclean-generic mostlyclean-kr \
643	mostlyclean-libtool
644
645pdf: pdf-am
646
647pdf-am:
648
649ps: ps-am
650
651ps-am:
652
653uninstall-am: uninstall-binPROGRAMS uninstall-man
654
655uninstall-man: uninstall-man1
656
657.MAKE: ../util/ansi2knr all check install install-am install-exec-am \
658	install-strip
659
660.PHONY: CTAGS GTAGS all all-am check check-am clean clean-binPROGRAMS \
661	clean-generic clean-libtool ctags distclean distclean-compile \
662	distclean-generic distclean-libtool distclean-tags distdir dvi \
663	dvi-am html html-am info info-am install install-am \
664	install-binPROGRAMS install-data install-data-am install-dvi \
665	install-dvi-am install-exec install-exec-am install-exec-hook \
666	install-html install-html-am install-info install-info-am \
667	install-man install-man1 install-pdf install-pdf-am install-ps \
668	install-ps-am install-strip installcheck installcheck-am \
669	installdirs maintainer-clean maintainer-clean-generic \
670	mostlyclean mostlyclean-compile mostlyclean-generic \
671	mostlyclean-kr mostlyclean-libtool pdf pdf-am ps ps-am tags \
672	uninstall uninstall-am uninstall-binPROGRAMS uninstall-man \
673	uninstall-man1
674
675
676$(srcdir)/ntpdc-opts.h: $(srcdir)/ntpdc-opts.c
677$(srcdir)/ntpdc-opts.c: $(srcdir)/ntpdc-opts.def $(std_def_list)
678	$(run_ag) ntpdc-opts.def
679
680$(srcdir)/ntpdc.1: $(srcdir)/ntpdc-opts.def $(std_def_list)
681	$(run_ag) -Tagman1.tpl -bntpdc ntpdc-opts.def
682
683$(srcdir)/ntpdc-opts.texi $(srcdir)/ntpdc-opts.menu: $(srcdir)/ntpdc-opts.def $(std_def_list)
684	$(run_ag) -Taginfo.tpl -DLEVEL=section ntpdc-opts.def
685
686ntpdc-layout.o: nl.c
687
688layout.here: ntpdc-layout
689	./ntpdc-layout > $@
690
691check-layout: ntpdc-layout layout.std layout.here
692	cmp $(srcdir)/layout.std layout.here && echo stamp > $@
693
694$(PROGRAMS): $(LDADD)
695
696../libntp/libntp.a:
697	cd ../libntp && $(MAKE)
698
699$(top_srcdir)/version :
700	cd $(top_srcdir) && $(MAKE) version
701
702version.o: $(ntpdc_OBJECTS) ../libntp/libntp.a Makefile $(top_srcdir)/version
703	env CSET=`cat $(top_srcdir)/version` $(top_builddir)/scripts/mkver ntpdc
704	$(COMPILE) -c version.c
705
706# I ran nl_in.c (attached, to be installed into ntpdc) through
707# $(CC) -E nl_in.c | nl.pl > nl.c
708nl.c: nl_in.c nl.pl Makefile.am
709	$(CC) -E $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(srcdir)/nl_in.c | ./nl.pl > nl.c
710
711install-exec-hook:
712	@case ${BINSUBDIR} in					\
713	 bin) ODIR=${exec_prefix}/sbin ;;			\
714	 sbin) ODIR=${exec_prefix}/bin ;;			\
715	esac;							\
716	test -z "${bin_PROGRAMS}${bin_SCRIPTS}"			\
717	|| for i in ${bin_PROGRAMS} ${bin_SCRIPTS} " "; do		\
718	   test ! -f $$ODIR/$$i || echo "*** $$i is also in $$ODIR!";	\
719	done
720
721#
722
723# Tell versions [3.59,3.63) of GNU make to not export all variables.
724# Otherwise a system limit (for SysV at least) may be exceeded.
725.NOEXPORT:
726