freebsd-dev/contrib/ntp/ntpdc/Makefile.am

46 lines
1.3 KiB
Makefile
Raw Normal View History

1999-12-09 13:01:21 +00:00
#AUTOMAKE_OPTIONS = ../util/ansi2knr no-dependencies
AUTOMAKE_OPTIONS = ../util/ansi2knr
2004-07-20 15:01:56 +00:00
bin_PROGRAMS= ntpdc
EXTRA_PROGRAMS= ntpdc-layout
EXTRA_DATA= check-layout
BUILT_SOURCES= maybe-layout
INCLUDES= -I$(top_srcdir)/include
1999-12-09 13:01:21 +00:00
# LDADD might need RESLIB and ADJLIB
2004-07-20 15:01:56 +00:00
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
1999-12-09 13:01:21 +00:00
ntpdc_SOURCES = ntpdc.c ntpdc_ops.c
2004-07-20 15:01:56 +00:00
maybe-layout:
@case "${PATH_PERL}" in \
/*) ${MAKE} check-layout ;; \
esac
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 > $@
1999-12-09 13:01:21 +00:00
$(PROGRAMS): $(LDADD)
../libntp/libntp.a:
cd ../libntp && $(MAKE)
2004-07-20 15:01:56 +00:00
version.o: $(ntpdc_OBJECTS) ../libntp/libntp.a Makefile $(top_srcdir)/version
2002-10-29 19:58:12 +00:00
env CSET=`cat $(top_srcdir)/version` $(top_builddir)/scripts/mkver ntpdc
1999-12-09 13:01:21 +00:00
$(COMPILE) -c version.c
2004-07-20 15:01:56 +00:00
# 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
$(CC) -E $(DEFAULT_INCLUDES) $(INCLUDES) $(CPPFLAGS) $(srcdir)/nl_in.c | ./nl.pl > nl.c