44 lines
1.3 KiB
Makefile
44 lines
1.3 KiB
Makefile
AUTOMAKE_OPTIONS= ../util/ansi2knr
|
|
|
|
bindir= ${exec_prefix}/${BINSUBDIR}
|
|
bin_PROGRAMS= ntpdc
|
|
EXTRA_PROGRAMS= ntpdc-layout
|
|
EXTRA_DATA= check-layout
|
|
BUILT_SOURCES= @MAKE_CHECK_LAYOUT@
|
|
AM_CPPFLAGS= -I$(top_srcdir)/include
|
|
# LDADD might need RESLIB and ADJLIB
|
|
ntpdc_LDADD= version.o ../libntp/libntp.a @READLINE_LIBS@
|
|
# ntpdc-layout doesn't need any additional libraries at all
|
|
ntpdc_layout_LDADD=
|
|
DISTCLEANFILES= .version version.c
|
|
CLEANFILES= check-layout layout.here nl.c ntpdc-layout
|
|
noinst_HEADERS= ntpdc.h
|
|
EXTRA_DIST= nl_in.c nl.pl layout.std
|
|
ETAGS_ARGS= Makefile.am
|
|
|
|
ntpdc_SOURCES = ntpdc.c ntpdc_ops.c
|
|
|
|
ntpdc-layout.o: nl.c
|
|
|
|
layout.here: ntpdc-layout
|
|
./ntpdc-layout > $@
|
|
|
|
check-layout: ntpdc-layout layout.std layout.here
|
|
cmp $(srcdir)/layout.std layout.here && echo stamp > $@
|
|
|
|
$(PROGRAMS): $(LDADD)
|
|
|
|
../libntp/libntp.a:
|
|
cd ../libntp && $(MAKE)
|
|
|
|
version.o: $(ntpdc_OBJECTS) ../libntp/libntp.a Makefile $(top_srcdir)/version
|
|
env CSET=`cat $(top_srcdir)/version` $(top_builddir)/scripts/mkver ntpdc
|
|
$(COMPILE) -c version.c
|
|
|
|
# I ran nl_in.c (attached, to be installed into ntpdc) through
|
|
# $(CC) -E nl_in.c | nl.pl > nl.c
|
|
nl.c: nl_in.c nl.pl Makefile.am
|
|
$(CC) -E $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(srcdir)/nl_in.c | ./nl.pl > nl.c
|
|
|
|
include ../bincheck.mf
|