1
#AUTOMAKE_OPTIONS = ../util/ansi2knr no-dependencies
2
AUTOMAKE_OPTIONS = ../util/ansi2knr
1
AUTOMAKE_OPTIONS= ../util/ansi2knr
3
bindir= ${exec_prefix}/${BINSUBDIR}
4
5
EXTRA_PROGRAMS= ntpdc-layout
5
6
EXTRA_DATA= check-layout
6
BUILT_SOURCES= maybe-layout
7
INCLUDES= -I$(top_srcdir)/include
7
BUILT_SOURCES= @MAKE_CHECK_LAYOUT@
8
AM_CPPFLAGS= -I$(top_srcdir)/include $(LIBOPTS_CFLAGS)
8
9
# LDADD might need RESLIB and ADJLIB
9
ntpdc_LDADD= version.o ../libntp/libntp.a @READLINE_LIBS@
10
ntpdc_LDADD= version.o @READLINE_LIBS@ $(LIBOPTS_LDADD) ../libntp/libntp.a
10
11
# ntpdc-layout doesn't need any additional libraries at all
11
12
ntpdc_layout_LDADD=
12
13
DISTCLEANFILES= .version version.c
13
14
CLEANFILES= check-layout layout.here nl.c ntpdc-layout
14
15
noinst_HEADERS= ntpdc.h
15
EXTRA_DIST= nl_in.c nl.pl layout.std
16
16
ETAGS_ARGS= Makefile.am
18
ntpdc_SOURCES = ntpdc.c ntpdc_ops.c
21
@case "${PATH_PERL}" in \
22
/*) ${MAKE} check-layout ;; \
17
EXTRA_DIST= nl_in.c nl.pl layout.std \
18
ntpdc-opts.def ntpdc.1 ntpdc-opts.texi ntpdc-opts.menu
19
BUILT_SOURCES+= ntpdc-opts.c ntpdc-opts.h ntpdc.1 ntpdc-opts.texi \
22
run_ag= cd $(srcdir) && autogen -L ../include
23
std_def_list= $(top_srcdir)/include/debug-opt.def \
24
$(top_srcdir)/include/autogen-version.def \
25
$(top_srcdir)/include/copyright.def \
26
$(top_srcdir)/include/homerc.def \
27
$(top_srcdir)/include/version.def
29
$(srcdir)/ntpdc-opts.h: $(srcdir)/ntpdc-opts.c
30
$(srcdir)/ntpdc-opts.c: $(srcdir)/ntpdc-opts.def $(std_def_list)
31
$(run_ag) ntpdc-opts.def
33
$(srcdir)/ntpdc.1: $(srcdir)/ntpdc-opts.def $(std_def_list)
34
$(run_ag) -Tagman1.tpl -bntpdc ntpdc-opts.def
36
$(srcdir)/ntpdc-opts.texi $(srcdir)/ntpdc-opts.menu: $(srcdir)/ntpdc-opts.def $(std_def_list)
37
$(run_ag) -Taginfo.tpl -DLEVEL=section ntpdc-opts.def
39
ntpdc_SOURCES = ntpdc.c ntpdc_ops.c ntpdc-opts.c ntpdc-opts.h
25
41
ntpdc-layout.o: nl.c
35
51
../libntp/libntp.a:
36
52
cd ../libntp && $(MAKE)
54
$(top_srcdir)/version :
55
cd $(top_srcdir) && $(MAKE) version
38
57
version.o: $(ntpdc_OBJECTS) ../libntp/libntp.a Makefile $(top_srcdir)/version
39
58
env CSET=`cat $(top_srcdir)/version` $(top_builddir)/scripts/mkver ntpdc
40
59
$(COMPILE) -c version.c
42
61
# I ran nl_in.c (attached, to be installed into ntpdc) through
43
62
# $(CC) -E nl_in.c | nl.pl > nl.c
45
$(CC) -E $(DEFAULT_INCLUDES) $(INCLUDES) $(CPPFLAGS) $(srcdir)/nl_in.c | ./nl.pl > nl.c
63
nl.c: nl_in.c nl.pl Makefile.am
64
$(CC) -E $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(srcdir)/nl_in.c | ./nl.pl > nl.c
66
include ../bincheck.mf