xref: /netbsd-src/external/bsd/ntp/dist/tests/sec-2853/Makefile.am (revision 8e33eff89e26cf71871ead62f0d5063e1313c33a)
1#AUTOMAKE_OPTIONS = foreign 1.9 subdir-objects
2NULL =
3BUILT_SOURCES =
4CLEANFILES =
5DISTCLEANFILES =
6
7std_unity_list =	 						\
8	$(abs_top_srcdir)/sntp/unity/auto/generate_test_runner.rb	\
9	$(abs_srcdir)/testconf.yml					\
10	$(NULL)
11
12run_unity =	ruby $(std_unity_list)
13
14EXTRA_DIST =				\
15	testconf.yml			\
16	$(NULL)
17
18check_PROGRAMS = sec-2853
19
20# HMS: we may not need some of these:
21LDADD =					\
22	$(top_builddir)/sntp/unity/libunity.a	\
23	$(top_builddir)/libntp/libntp.a	\
24	$(top_builddir)/ntpd/libntpd.a	\
25	$(LDADD_LIBNTP)			\
26	$(PTHREAD_LIBS)			\
27	$(LDADD_NTP)			\
28	$(LIBM)				\
29	$(NULL)
30
31AM_CFLAGS   = $(CFLAGS_NTP)
32AM_CFLAGS += $(NTP_HARD_CFLAGS)
33
34# HMS: we may not need some of these:
35AM_CPPFLAGS  = $(NTP_INCS)
36AM_CPPFLAGS += -I$(top_srcdir)/sntp/unity
37AM_CPPFLAGS += -I$(top_srcdir)/include
38AM_CPPFLAGS += $(CPPFLAGS_NTP)
39AM_CPPFLAGS += -DUNITY_INCLUDE_CONFIG_H
40AM_CPPFLAGS += -I$(top_srcdir)/sntp/unity
41AM_CPPFLAGS += $(NTP_HARD_CPPFLAGS)
42
43AM_LDFLAGS  = $(LDFLAGS_NTP)
44AM_LDFLAGS += $(NTP_HARD_LDFLAGS)
45
46sec_2853_SOURCES = 			\
47	run-sec-2853.c			\
48	sec-2853.c			\
49	$(NULL)
50
51BUILT_SOURCES += $(srcdir)/run-sec-2853.c
52
53$(srcdir)/run-sec-2853.c: $(srcdir)/sec-2853.c $(std_unity_list)
54	$(run_unity) $< $@
55
56# HMS: we may not need some of these:
57#noinst_HEADERS =	ntpdtest.h	\
58#			$(NULL)
59
60TESTS =
61
62if !NTP_CROSSCOMPILE
63TESTS += $(check_PROGRAMS)
64endif
65
66include $(top_srcdir)/check-libntp.mf
67include $(top_srcdir)/check-libntpd.mf
68include $(top_srcdir)/check-libunity.mf
69include $(top_srcdir)/depsver.mf
70include $(top_srcdir)/includes.mf
71