1182007Sroberto# Makefile.am, by Harlan Stenn, from: 2132451Sroberto# Makefile for sntp 3132451Sroberto# N.M. Maclaren, October 2000. 4132451Sroberto 5132451SrobertoAUTOMAKE_OPTIONS = foreign 6182007SrobertoACLOCAL_AMFLAGS= -I libopts/m4 7132451Sroberto 8182007SrobertoAM_CPPFLAGS= $(LIBOPTS_CFLAGS) 9182007SrobertoLDADD= $(LIBOPTS_LDADD) 10132451Sroberto 11182007SrobertoNULL= 12132451Sroberto 13182007Srobertobindir= ${exec_prefix}/${BINSUBDIR} 14182007Srobertobin_PROGRAMS= sntp 15182007Sroberto#run_ag= cd $(srcdir) && autogen --writable -L $(top_srcdir)/include 16182007Srobertorun_ag= cd $(srcdir) && autogen --writable 17182007Sroberto 18182007SrobertoSUBDIRS= 19182007Srobertoif NEED_LIBOPTS 20182007SrobertoSUBDIRS+= libopts 21182007Srobertoendif 22182007SrobertoSUBDIRS+= . 23182007Sroberto 24132451Srobertosntp_SOURCES = \ 25132451Sroberto header.h \ 26132451Sroberto internet.c \ 27132451Sroberto internet.h \ 28132451Sroberto kludges.h \ 29132451Sroberto main.c \ 30182007Sroberto sntp-opts.c \ 31182007Sroberto sntp-opts.h \ 32132451Sroberto socket.c \ 33132451Sroberto timing.c \ 34132451Sroberto unix.c \ 35182007Sroberto $(NULL) 36132451Sroberto 37182007Srobertodist_man_MANS= sntp.1 38182007Sroberto 39182007SrobertoEXTRA_DIST= bincheck.mf \ 40182007Sroberto COPYRIGHT \ 41182007Sroberto sntp-opts.def sntp.1 sntp-opts.texi sntp-opts.menu \ 42182007Sroberto autogen-version.def version.def 43182007SrobertoBUILT_SOURCES= check-autogen-version.def check-version.def \ 44182007Sroberto sntp-opts.c sntp-opts.h sntp.1 sntp-opts.texi sntp-opts.menu 45182007Srobertoman_MANS= sntp.1 46182007Sroberto 47182007Sroberto 48182007SrobertoFRC: 49182007Srobertocheck-autogen-version.def: FRC 50182007Sroberto @cd $(srcdir) \ 51182007Sroberto && test -r ../include/autogen-version.def \ 52182007Sroberto && ( if cmp -s ../include/autogen-version.def autogen-version.def; \ 53182007Sroberto then : ; \ 54182007Sroberto else cp ../include/autogen-version.def autogen-version.def; \ 55182007Sroberto echo "Installing new sntp/autogen-version.def file"; \ 56182007Sroberto fi ) 57182007Sroberto 58182007Srobertocheck-version.def: FRC 59182007Sroberto @cd $(srcdir) \ 60182007Sroberto && test -r ../include/version.def \ 61182007Sroberto && ( if cmp -s ../include/version.def version.def; \ 62182007Sroberto then : ; \ 63182007Sroberto else cp ../include/version.def version.def; \ 64182007Sroberto echo "Installing new sntp/version.def file"; \ 65182007Sroberto fi ) 66182007Sroberto 67182007Sroberto$(srcdir)/sntp-opts.h: $(srcdir)/sntp-opts.c 68182007Sroberto$(srcdir)/sntp-opts.c: $(srcdir)/sntp-opts.def $(srcdir)/version.def 69182007Sroberto $(run_ag) sntp-opts.def 70182007Sroberto 71182007Sroberto$(srcdir)/sntp.1: $(srcdir)/sntp-opts.def $(srcdir)/version.def 72182007Sroberto $(run_ag) -Tagman1.tpl -bsntp sntp-opts.def 73182007Sroberto 74182007Sroberto$(srcdir)/sntp-opts.texi $(srcdir)/sntp-opts.menu: $(srcdir)/sntp-opts.def $(srcdir)/version.def 75182007Sroberto $(run_ag) -Taginfo.tpl -DLEVEL=section sntp-opts.def 76182007Sroberto 77182007Srobertoinclude bincheck.mf 78