Makefile.am revision 290001
1#AUTOMAKE_OPTIONS = foreign 1.9 subdir-objects
2NULL =
3BUILT_SOURCES =
4CLEANFILES =
5
6std_unity_list = 						\
7	$(top_srcdir)/sntp/unity/auto/generate_test_runner.rb	\
8	$(NULL)
9
10run_unity =	cd $(srcdir) && ruby ../../sntp/unity/auto/generate_test_runner.rb
11
12check_PROGRAMS = bug-2803
13
14# HMS: we may not need some of these:
15LDADD =					\
16	$(top_builddir)/sntp/unity/libunity.a	\
17	$(top_builddir)/libntp/libntp.a	\
18	$(LDADD_LIBNTP)			\
19	$(PTHREAD_LIBS)			\
20	$(LDADD_NTP)			\
21	$(NULL)
22
23AM_CFLAGS   = $(CFLAGS_NTP)
24
25# HMS: we may not need some of these:
26AM_CPPFLAGS  = $(NTP_INCS)
27AM_CPPFLAGS += -I$(top_srcdir)/sntp/unity
28AM_CPPFLAGS += -I$(top_srcdir)/include
29AM_CPPFLAGS += $(CPPFLAGS_NTP)
30AM_CPPFLAGS += -DUNITY_INCLUDE_CONFIG_H
31AM_CPPFLAGS += -I$(top_srcdir)/sntp/unity
32
33AM_LDFLAGS = $(LDFLAGS_NTP)
34
35bug_2803_SOURCES = 			\
36	bug-2803.c			\
37	run-bug-2803.c			\
38	$(NULL)
39
40$(srcdir)/run-bug-2803.c: $(srcdir)/bug-2803.c $(std_unity_list)
41	$(run_unity) bug-2803.c run-bug-2803.c
42
43# HMS: we may not need some of these:
44#noinst_HEADERS =	ntpdtest.h	\
45#			$(NULL)
46
47TESTS =
48
49if !NTP_CROSSCOMPILE
50TESTS += $(check_PROGRAMS)
51endif
52
53## check-libntp.mf - automake fragment
54## slightly adapted for deeper directory
55
56BUILT_SOURCES	+= check-libntp check-libunity
57CLEANFILES	+= check-libntp check-libunity
58
59check-libntp: ../../libntp/libntp.a
60	@echo stamp > $@
61
62../../libntp/libntp.a:
63	cd ../../libntp && $(MAKE) $(AM_MAKEFLAGS) libntp.a
64
65check-libunity: ../../sntp/unity/libunity.a
66	@echo stamp > $@
67
68../../sntp/unity/libunity.a:
69	cd ../../sntp/unity && $(MAKE) $(AM_MAKEFLAGS) libunity.a
70
71include $(top_srcdir)/depsver.mf
72include $(top_srcdir)/includes.mf
73