diff options
Diffstat (limited to 'tests/bug-2803/Makefile.am')
-rw-r--r-- | tests/bug-2803/Makefile.am | 70 |
1 files changed, 70 insertions, 0 deletions
diff --git a/tests/bug-2803/Makefile.am b/tests/bug-2803/Makefile.am new file mode 100644 index 0000000000000..eaf825feaab0a --- /dev/null +++ b/tests/bug-2803/Makefile.am @@ -0,0 +1,70 @@ +#AUTOMAKE_OPTIONS = foreign 1.9 subdir-objects +NULL = +BUILT_SOURCES = +CLEANFILES = + +std_unity_list = \ + $(top_srcdir)/sntp/unity/auto/generate_test_runner.rb \ + $(NULL) + +run_unity = cd $(srcdir) && ruby ../../sntp/unity/auto/generate_test_runner.rb + +check_PROGRAMS = bug-2803 + +# HMS: we may not need some of these: +LDADD = \ + $(top_builddir)/sntp/unity/libunity.a \ + $(top_builddir)/libntp/libntp.a \ + $(LDADD_LIBNTP) \ + $(PTHREAD_LIBS) \ + $(LDADD_NTP) \ + $(NULL) + +AM_CFLAGS = $(CFLAGS_NTP) + +# HMS: we may not need some of these: +AM_CPPFLAGS = $(NTP_INCS) +AM_CPPFLAGS += -I$(top_srcdir)/sntp/unity +AM_CPPFLAGS += -I$(top_srcdir)/include +AM_CPPFLAGS += $(CPPFLAGS_NTP) + +AM_LDFLAGS = $(LDFLAGS_NTP) + +bug_2803_SOURCES = \ + bug-2803.c \ + run-bug-2803.c \ + $(NULL) + +$(srcdir)/run-bug-2803.c: $(srcdir)/bug-2803.c $(std_unity_list) + $(run_unity) bug-2803.c run-bug-2803.c + +# HMS: we may not need some of these: +#noinst_HEADERS = ntpdtest.h \ +# $(NULL) + +TESTS = + +if !NTP_CROSSCOMPILE +TESTS += $(check_PROGRAMS) +endif + +## check-libntp.mf - automake fragment +## slightly adapted for deeper directory + +BUILT_SOURCES += check-libntp check-libunity +CLEANFILES += check-libntp check-libunity + +check-libntp: ../../libntp/libntp.a + @echo stamp > $@ + +../../libntp/libntp.a: + cd ../../libntp && $(MAKE) $(AM_MAKEFLAGS) libntp.a + +check-libunity: ../../sntp/unity/libunity.a + @echo stamp > $@ + +../../sntp/unity/libunity.a: + cd ../../sntp/unity && $(MAKE) $(AM_MAKEFLAGS) libunity.a + +include $(top_srcdir)/depsver.mf +include $(top_srcdir)/includes.mf |