1NULL = 2 3BUILT_SOURCES = 4CLEANFILES = 5 6bin_PROGRAMS = $(NTPDATE_DB) 7libexec_PROGRAMS = $(NTPDATE_DL) 8sbin_PROGRAMS = $(NTPDATE_DS) 9 10EXTRA_PROGRAMS = ntpdate 11 12AM_CFLAGS = $(CFLAGS_NTP) 13 14AM_CPPFLAGS = $(NTP_INCS) 15AM_CPPFLAGS += $(CPPFLAGS_NTP) 16 17AM_LDFLAGS = $(LDFLAGS_NTP) 18 19# LDADD might need RESLIB and ADJLIB 20LDADD = version.o ../libntp/libntp.a 21ntpdate_LDADD = $(LDADD) $(LDADD_LIBNTP) $(PTHREAD_LIBS) $(LIBOPTS_LDADD) 22ntpdate_LDADD += $(LIBM) $(LDADD_NTP) 23DISTCLEANFILES= .version version.c stamp-v 24noinst_HEADERS= ntpdate.h 25 26$(PROGRAMS): $(LDADD) 27 28$(top_srcdir)/sntp/scm-rev: 29 cd ../sntp && $(MAKE) $(AM_MAKEFLAGS) check-scm-rev 30 31version.c: $(ntpdate_OBJECTS) ../libntp/libntp.a Makefile $(top_srcdir)/sntp/scm-rev 32 env CSET=`cat $(top_srcdir)/sntp/scm-rev` $(top_builddir)/scripts/build/mkver ntpdate 33 34version.o: version.c 35 env CCACHE_DISABLE=1 $(COMPILE) -c version.c -o version.o 36 37include $(top_srcdir)/bincheck.mf 38include $(top_srcdir)/sntp/check-libntp.mf 39include $(top_srcdir)/depsver.mf 40include $(top_srcdir)/includes.mf 41