Makefile.am (285169) | Makefile.am (289764) |
---|---|
1## Makefile.am for JMK's SNTP, by Harlan Stenn 2 3ACLOCAL_AMFLAGS = -I m4 -I libevent/m4 -I libopts/m4 4 5NULL = 6 7AM_CFLAGS = $(CFLAGS_NTP) 8 --- 24 unchanged lines hidden (view full) --- 33 $(NULL) 34 35EXTRA_PROGRAMS = sntp 36 37bin_PROGRAMS = @SNTP_DB@ 38libexec_PROGRAMS = @SNTP_DL@ 39sbin_PROGRAMS = @SNTP_DS@ 40 | 1## Makefile.am for JMK's SNTP, by Harlan Stenn 2 3ACLOCAL_AMFLAGS = -I m4 -I libevent/m4 -I libopts/m4 4 5NULL = 6 7AM_CFLAGS = $(CFLAGS_NTP) 8 --- 24 unchanged lines hidden (view full) --- 33 $(NULL) 34 35EXTRA_PROGRAMS = sntp 36 37bin_PROGRAMS = @SNTP_DB@ 38libexec_PROGRAMS = @SNTP_DL@ 39sbin_PROGRAMS = @SNTP_DS@ 40 |
41## 42## DIST_SUBDIRS is typically automatically derived by automake including 43## all possible SUBDIRS values, as even items which are not built are 44## typically distributed. 45## 46## To allow us to avoid configuring the libevent tearoff entirely when 47## it is not needed, we define DIST_SUBDIRS manually excluding libevent 48## when not building it, and in that case arrange for its distribution 49## with EXTRA_DIST copying the entire directory and libevent-dist-hook 50## cleaning unwanted VCS remnants. 51## 52## When we are building libevent, it is distributed conventionally, by 53## recursive make dist in sntp including libevent. 54## 55 | |
56SUBDIRS = include scripts unity | 41SUBDIRS = include scripts unity |
57DIST_SUBDIRS = include scripts unity | 42DIST_FAIL = |
58 59if BUILD_LIBEVENT 60SUBDIRS += libevent | 43 44if BUILD_LIBEVENT 45SUBDIRS += libevent |
61DIST_SUBDIRS += libevent | 46else 47DIST_FAIL += "--enable-local-libevent" |
62endif 63 64if NEED_LIBOPTS 65SUBDIRS += libopts 66endif 67 68if BUILD_SNTP 69noinst_LIBRARIES = libsntp.a 70SUBDIRS += tests 71endif 72 | 48endif 49 50if NEED_LIBOPTS 51SUBDIRS += libopts 52endif 53 54if BUILD_SNTP 55noinst_LIBRARIES = libsntp.a 56SUBDIRS += tests 57endif 58 |
73DIST_SUBDIRS += libopts tests 74 | |
75libsntp_a_SOURCES = \ 76 crypto.c \ 77 kod_management.c \ 78 log.c \ 79 main.c \ 80 networking.c \ 81 sntp-opts.c \ 82 utilities.c \ --- 6 unchanged lines hidden (view full) --- 89noinst_HEADERS = \ 90 crypto.h \ 91 data_formats.h \ 92 kod_management.h \ 93 log.h \ 94 main.h \ 95 networking.h \ 96 sntp-opts.h \ | 59libsntp_a_SOURCES = \ 60 crypto.c \ 61 kod_management.c \ 62 log.c \ 63 main.c \ 64 networking.c \ 65 sntp-opts.c \ 66 utilities.c \ --- 6 unchanged lines hidden (view full) --- 73noinst_HEADERS = \ 74 crypto.h \ 75 data_formats.h \ 76 kod_management.h \ 77 log.h \ 78 main.h \ 79 networking.h \ 80 sntp-opts.h \ |
97 tests_main.h \ | |
98 utilities.h \ 99 $(NULL) 100 101DISTCLEANFILES = \ 102 .version \ 103 version.c \ 104 config.log \ 105 $(man_MANS) \ --- 174 unchanged lines hidden (view full) --- 280 $(top_srcdir)/../scripts/build/check--help $@ 281 282$(srcdir)/sntp.html: $(srcdir)/invoke-sntp.menu $(srcdir)/invoke-sntp.texi $(srcdir)/sntp.texi $(srcdir)/include/version.texi 283 cd $(srcdir) && ( makeinfo --force --html --no-split -o sntp.html sntp.texi || true ) 284 285libtool: $(LIBTOOL_DEPS) 286 ./config.status --recheck 287 | 81 utilities.h \ 82 $(NULL) 83 84DISTCLEANFILES = \ 85 .version \ 86 version.c \ 87 config.log \ 88 $(man_MANS) \ --- 174 unchanged lines hidden (view full) --- 263 $(top_srcdir)/../scripts/build/check--help $@ 264 265$(srcdir)/sntp.html: $(srcdir)/invoke-sntp.menu $(srcdir)/invoke-sntp.texi $(srcdir)/sntp.texi $(srcdir)/include/version.texi 266 cd $(srcdir) && ( makeinfo --force --html --no-split -o sntp.html sntp.texi || true ) 267 268libtool: $(LIBTOOL_DEPS) 269 ./config.status --recheck 270 |
288libevent-dist-hook: 289 if test -n "$(NTP_FORCE_LIBEVENT_DIST)" ; then rm -rf $(distdir)/libevent/autom4te.cache $(distdir)/libevent/config.h.in~ ; find $(distdir)/libevent -type d -name SCCS -print | xargs rm -rf ; fi | 271# HMS: libevent/ is a target if it's in EXTRA_DIST via NTP_FORCE_LIBEVENT_DIST. 272# Note that libevent/ is already in DIST_SUBDIRS (implicit in Makefile.am 273# but explicit in Makefile.in). This check doesn't help with distclean. 274libevent: distdir-pre-check |
290 | 275 |
291dist-hook: libevent-dist-hook 292 @: do-nothing action to avoid default SCCS get | 276# HMS: Stops the build for gmake or pmake 277distdir-pre-check: 278 case "$(DIST_FAIL)" in \ 279 '') ;; \ 280 *) $(error re-run configure adding $(DIST_FAIL) if you want to make a distribution.); \ 281 echo "re-run configure adding $(DIST_FAIL) if you want to make a distribution."; \ 282 exit 1 ;; \ 283 esac |
293 294include $(top_srcdir)/bincheck.mf 295include $(top_srcdir)/check-libntp.mf 296include $(top_srcdir)/check-libopts.mf 297include $(top_srcdir)/depsver.mf 298include $(top_srcdir)/includes.mf | 284 285include $(top_srcdir)/bincheck.mf 286include $(top_srcdir)/check-libntp.mf 287include $(top_srcdir)/check-libopts.mf 288include $(top_srcdir)/depsver.mf 289include $(top_srcdir)/includes.mf |