]> CyberLeo.Net >> Repos - FreeBSD/releng/10.2.git/blob - contrib/ntp/tests/bug-2803/Makefile.am
- Copy stable/10@285827 to releng/10.2 in preparation for 10.2-RC1
[FreeBSD/releng/10.2.git] / contrib / ntp / tests / bug-2803 / Makefile.am
1 #AUTOMAKE_OPTIONS = foreign 1.9 subdir-objects
2 NULL =
3 BUILT_SOURCES =
4 CLEANFILES =
5
6 std_unity_list =                                                \
7         $(top_srcdir)/sntp/unity/auto/generate_test_runner.rb   \
8         $(NULL)
9
10 run_unity =     cd $(srcdir) && ruby ../../sntp/unity/auto/generate_test_runner.rb
11
12 check_PROGRAMS = bug-2803
13
14 # HMS: we may not need some of these:
15 LDADD =                                 \
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
23 AM_CFLAGS   = $(CFLAGS_NTP)
24
25 # HMS: we may not need some of these:
26 AM_CPPFLAGS  = $(NTP_INCS)
27 AM_CPPFLAGS += -I$(top_srcdir)/sntp/unity
28 AM_CPPFLAGS += -I$(top_srcdir)/include
29 AM_CPPFLAGS += $(CPPFLAGS_NTP)
30
31 AM_LDFLAGS = $(LDFLAGS_NTP)
32
33 bug_2803_SOURCES =                      \
34         bug-2803.c                      \
35         run-bug-2803.c                  \
36         $(NULL)
37
38 $(srcdir)/run-bug-2803.c: $(srcdir)/bug-2803.c $(std_unity_list)
39         $(run_unity) bug-2803.c run-bug-2803.c
40
41 # HMS: we may not need some of these:
42 #noinst_HEADERS =       ntpdtest.h      \
43 #                       $(NULL)
44
45 TESTS =
46
47 if !NTP_CROSSCOMPILE
48 TESTS += $(check_PROGRAMS)
49 endif
50
51 ## check-libntp.mf - automake fragment
52 ## slightly adapted for deeper directory
53
54 BUILT_SOURCES   += check-libntp check-libunity
55 CLEANFILES      += check-libntp check-libunity
56
57 check-libntp: ../../libntp/libntp.a
58         @echo stamp > $@
59
60 ../../libntp/libntp.a:
61         cd ../../libntp && $(MAKE) $(AM_MAKEFLAGS) libntp.a
62
63 check-libunity: ../../sntp/unity/libunity.a
64         @echo stamp > $@
65
66 ../../sntp/unity/libunity.a:
67         cd ../../sntp/unity && $(MAKE) $(AM_MAKEFLAGS) libunity.a
68
69 include $(top_srcdir)/depsver.mf
70 include $(top_srcdir)/includes.mf