Deleted Added
full compact
Makefile.am (106163) Makefile.am (132451)
1#AUTOMAKE_OPTIONS = ../util/ansi2knr no-dependencies
2AUTOMAKE_OPTIONS = ../util/ansi2knr
1#AUTOMAKE_OPTIONS = ../util/ansi2knr no-dependencies
2AUTOMAKE_OPTIONS = ../util/ansi2knr
3bin_PROGRAMS = ntpdc
4INCLUDES = -I$(top_srcdir)/include
3bin_PROGRAMS= ntpdc
4EXTRA_PROGRAMS= ntpdc-layout
5EXTRA_DATA= check-layout
6BUILT_SOURCES= maybe-layout
7INCLUDES= -I$(top_srcdir)/include
5# LDADD might need RESLIB and ADJLIB
8# LDADD might need RESLIB and ADJLIB
6LDADD = version.o ../libntp/libntp.a @LIBRSAREF@
7DISTCLEANFILES = .version version.c
8noinst_HEADERS = ntpdc.h
9#EXTRA_DIST = ntpdc.mak
10ETAGS_ARGS = Makefile.am
9ntpdc_LDADD= version.o ../libntp/libntp.a @READLINE_LIBS@
10# ntpdc-layout doesn't need any additional libraries at all
11ntpdc_layout_LDADD=
12DISTCLEANFILES= .version version.c
13CLEANFILES= check-layout layout.here nl.c ntpdc-layout
14noinst_HEADERS= ntpdc.h
15EXTRA_DIST= nl_in.c nl.pl layout.std
16ETAGS_ARGS= Makefile.am
11
12ntpdc_SOURCES = ntpdc.c ntpdc_ops.c
13
17
18ntpdc_SOURCES = ntpdc.c ntpdc_ops.c
19
20maybe-layout:
21 @case "${PATH_PERL}" in \
22 /*) ${MAKE} check-layout ;; \
23 esac
24
25ntpdc-layout.o: nl.c
26
27layout.here: ntpdc-layout
28 ./ntpdc-layout > $@
29
30check-layout: ntpdc-layout layout.std layout.here
31 cmp $(srcdir)/layout.std layout.here && echo stamp > $@
32
14$(PROGRAMS): $(LDADD)
15
16../libntp/libntp.a:
17 cd ../libntp && $(MAKE)
18
33$(PROGRAMS): $(LDADD)
34
35../libntp/libntp.a:
36 cd ../libntp && $(MAKE)
37
19version.o: $(ntpdc_OBJECTS) ../libntp/libntp.a @LIBRSAREF@ Makefile
38version.o: $(ntpdc_OBJECTS) ../libntp/libntp.a Makefile $(top_srcdir)/version
20 env CSET=`cat $(top_srcdir)/version` $(top_builddir)/scripts/mkver ntpdc
21 $(COMPILE) -c version.c
39 env CSET=`cat $(top_srcdir)/version` $(top_builddir)/scripts/mkver ntpdc
40 $(COMPILE) -c version.c
41
42# I ran nl_in.c (attached, to be installed into ntpdc) through
43# $(CC) -E nl_in.c | nl.pl > nl.c
44nl.c: nl_in.c nl.pl
45 $(CC) -E $(DEFAULT_INCLUDES) $(INCLUDES) $(CPPFLAGS) $(srcdir)/nl_in.c | ./nl.pl > nl.c