-fix R-PI FTBFS
[oweals/gnunet.git] / src / pt / Makefile.am
1 AM_CPPFLAGS = -I$(top_srcdir)/src/include
2
3 if MINGW
4   WINFLAGS = -Wl,--no-undefined -Wl,--export-all-symbols
5 endif
6
7 if USE_COVERAGE
8   AM_CFLAGS = --coverage -O0
9 endif
10
11 pkgcfgdir= $(pkgdatadir)/config.d/
12
13 libexecdir= $(pkglibdir)/libexec/
14
15 plugindir = $(libdir)/gnunet
16
17 dist_pkgcfg_DATA = \
18   pt.conf
19
20 libexec_PROGRAMS = \
21   gnunet-daemon-pt 
22
23 gnunet_daemon_pt_SOURCES = \
24  gnunet-daemon-pt.c 
25 gnunet_daemon_pt_LDADD = \
26   $(top_builddir)/src/vpn/libgnunetvpn.la \
27   $(top_builddir)/src/mesh/libgnunetmesh.la \
28   $(top_builddir)/src/dht/libgnunetdht.la \
29   $(top_builddir)/src/dns/libgnunetdns.la \
30   $(top_builddir)/src/dns/libgnunetdnsparser.la \
31   $(top_builddir)/src/statistics/libgnunetstatistics.la \
32   $(top_builddir)/src/util/libgnunetutil.la \
33   $(GN_LIBINTL)
34
35 if HAVE_TESTING
36 if HAVE_MHD
37 if HAVE_LIBCURL
38 if LINUX
39  VPN_TEST = \
40  test_gnunet_vpn-4_to_6 \
41  test_gnunet_vpn-6_to_4 \
42  test_gnunet_vpn-6_over \
43  test_gnunet_vpn-4_over \
44  test_gns_vpn
45 endif
46 if MINGW
47  VPN_TEST = \
48  test_gnunet_vpn-4_to_6 \
49  test_gnunet_vpn-6_to_4 \
50  test_gnunet_vpn-6_over \
51  test_gnunet_vpn-4_over 
52 endif
53 endif
54 endif
55 endif
56
57 check_PROGRAMS = $(VPN_TEST)
58
59 if ENABLE_TEST_RUN
60 TESTS = $(check_PROGRAMS)
61 endif
62
63 EXTRA_DIST = \
64  test_gnunet_vpn.conf \
65  test_gns_vpn.conf
66
67
68
69 test_gns_vpn_SOURCES = \
70  test_gns_vpn.c
71 test_gns_vpn_LDADD = -lmicrohttpd @LIBCURL@ \
72  $(top_builddir)/src/namestore/libgnunetnamestore.la \
73  $(top_builddir)/src/testing/libgnunettesting.la \
74  $(top_builddir)/src/util/libgnunetutil.la
75 test_gns_vpn_CPPFLAGS = \
76  @LIBCURL_CPPFLAGS@ $(AM_CPPFLAGS)
77
78 test_gnunet_vpn_4_over_SOURCES = \
79  test_gnunet_vpn.c
80 test_gnunet_vpn_4_over_LDADD = -lmicrohttpd @LIBCURL@ \
81  $(top_builddir)/src/vpn/libgnunetvpn.la \
82  $(top_builddir)/src/testing/libgnunettesting.la \
83  $(top_builddir)/src/util/libgnunetutil.la 
84 test_gnunet_vpn_4_over_CPPFLAGS = \
85  @LIBCURL_CPPFLAGS@ $(AM_CPPFLAGS)
86
87 test_gnunet_vpn_6_over_SOURCES = \
88  test_gnunet_vpn.c
89 test_gnunet_vpn_6_over_LDADD = -lmicrohttpd @LIBCURL@ \
90  $(top_builddir)/src/vpn/libgnunetvpn.la \
91  $(top_builddir)/src/testing/libgnunettesting.la \
92  $(top_builddir)/src/util/libgnunetutil.la 
93 test_gnunet_vpn_6_over_CPPFLAGS = \
94  @LIBCURL_CPPFLAGS@ $(AM_CPPFLAGS)
95
96 test_gnunet_vpn_4_to_6_SOURCES = \
97  test_gnunet_vpn.c
98 test_gnunet_vpn_4_to_6_LDADD = -lmicrohttpd @LIBCURL@ \
99  $(top_builddir)/src/vpn/libgnunetvpn.la \
100  $(top_builddir)/src/testing/libgnunettesting.la \
101  $(top_builddir)/src/util/libgnunetutil.la 
102 test_gnunet_vpn_4_to_6_CPPFLAGS = \
103  @LIBCURL_CPPFLAGS@ $(AM_CPPFLAGS)
104
105 test_gnunet_vpn_6_to_4_SOURCES = \
106  test_gnunet_vpn.c
107 test_gnunet_vpn_6_to_4_LDADD = -lmicrohttpd @LIBCURL@ \
108  $(top_builddir)/src/vpn/libgnunetvpn.la \
109  $(top_builddir)/src/testing/libgnunettesting.la \
110  $(top_builddir)/src/util/libgnunetutil.la 
111 test_gnunet_vpn_6_to_4_CPPFLAGS = \
112  @LIBCURL_CPPFLAGS@ $(AM_CPPFLAGS)
113
114