Patrick Welche <prlw1@cam.ac.uk>
[netbsd-mini2440.git] / external / bsd / ntp / dist / ntpdate / Makefile.am
blobb162637d9fe8258fc90a28adf7300d8b93421c73
1 NULL=
2 AUTOMAKE_OPTIONS=
4 BUILT_SOURCES=
5 CLEANFILES=
6 bindir=         ${exec_prefix}/${BINSUBDIR}
7 #bin_PROGRAMS=  ntpdate ntptimeset
8 bin_PROGRAMS=   ntpdate
9 EXTRA_PROGRAMS= ntptimeset
11 ntptimeset_SOURCES=     ntptimeset.c ntptime_config.c
13 AM_CPPFLAGS= -I$(top_srcdir)/include -I$(top_srcdir)/lib/isc/include \
14         -I$(top_srcdir)/lib/isc/nothreads/include \
15         -I$(top_srcdir)/lib/isc/unix/include
17 # LDADD might need RESLIB and ADJLIB
18 LDADD=          version.o ../libntp/libntp.a
19 ntpdate_LDADD= $(LDADD) @LCRYPTO@
20 DISTCLEANFILES= .version version.c stamp-v
21 noinst_HEADERS= ntpdate.h
22 ETAGS_ARGS=     Makefile.am
24 $(PROGRAMS): $(LDADD)
26 ../libntp/libntp.a:
27         cd ../libntp && $(MAKE)
29 $(top_srcdir)/version :
30         cd $(top_srcdir) && $(MAKE) version
32 version.o: $(ntpdate_OBJECTS) ../libntp/libntp.a Makefile $(top_srcdir)/version
33         env CSET=`cat $(top_srcdir)/version` $(top_builddir)/scripts/mkver ntpdate
34         $(COMPILE) -c version.c
36 include $(top_srcdir)/bincheck.mf
37 include $(top_srcdir)/depsver.mf