fix #3275 with solution from https://gnunet.org/bugs/view.php?id=3275#c8029
[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_LIBGNURL
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_ENVIRONMENT=export GNUNET_PREFIX=@prefix@;export PATH=@prefix@/bin:$$PATH;
61 TESTS = $(check_PROGRAMS)
62 endif
63
64 EXTRA_DIST = \
65  test_gnunet_vpn.conf \
66  test_gns_vpn.conf
67
68
69
70 test_gns_vpn_SOURCES = \
71  test_gns_vpn.c
72 test_gns_vpn_LDADD = -lmicrohttpd @LIBGNURL@ \
73  $(top_builddir)/src/namestore/libgnunetnamestore.la \
74  $(top_builddir)/src/gnsrecord/libgnunetgnsrecord.la \
75  $(top_builddir)/src/testing/libgnunettesting.la \
76  $(top_builddir)/src/util/libgnunetutil.la
77 test_gns_vpn_CPPFLAGS = \
78  @LIBGNURL_CPPFLAGS@ $(AM_CPPFLAGS)
79
80 test_gnunet_vpn_4_over_SOURCES = \
81  test_gnunet_vpn.c
82 test_gnunet_vpn_4_over_LDADD = -lmicrohttpd @LIBGNURL@ \
83  $(top_builddir)/src/vpn/libgnunetvpn.la \
84  $(top_builddir)/src/testing/libgnunettesting.la \
85  $(top_builddir)/src/util/libgnunetutil.la
86 test_gnunet_vpn_4_over_CPPFLAGS = \
87  @LIBGNURL_CPPFLAGS@ $(AM_CPPFLAGS)
88
89 test_gnunet_vpn_6_over_SOURCES = \
90  test_gnunet_vpn.c
91 test_gnunet_vpn_6_over_LDADD = -lmicrohttpd @LIBGNURL@ \
92  $(top_builddir)/src/vpn/libgnunetvpn.la \
93  $(top_builddir)/src/testing/libgnunettesting.la \
94  $(top_builddir)/src/util/libgnunetutil.la
95 test_gnunet_vpn_6_over_CPPFLAGS = \
96  @LIBGNURL_CPPFLAGS@ $(AM_CPPFLAGS)
97
98 test_gnunet_vpn_4_to_6_SOURCES = \
99  test_gnunet_vpn.c
100 test_gnunet_vpn_4_to_6_LDADD = -lmicrohttpd @LIBGNURL@ \
101  $(top_builddir)/src/vpn/libgnunetvpn.la \
102  $(top_builddir)/src/testing/libgnunettesting.la \
103  $(top_builddir)/src/util/libgnunetutil.la
104 test_gnunet_vpn_4_to_6_CPPFLAGS = \
105  @LIBGNURL_CPPFLAGS@ $(AM_CPPFLAGS)
106
107 test_gnunet_vpn_6_to_4_SOURCES = \
108  test_gnunet_vpn.c
109 test_gnunet_vpn_6_to_4_LDADD = -lmicrohttpd @LIBGNURL@ \
110  $(top_builddir)/src/vpn/libgnunetvpn.la \
111  $(top_builddir)/src/testing/libgnunettesting.la \
112  $(top_builddir)/src/util/libgnunetutil.la
113 test_gnunet_vpn_6_to_4_CPPFLAGS = \
114  @LIBGNURL_CPPFLAGS@ $(AM_CPPFLAGS)
115
116