-fix leak
[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/cadet/libgnunetcadet.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
38 if HAVE_LIBGNURL
39 LIB_GNURL=@LIBGNURL@
40 CPP_GNURL=@LIBGNURL_CPPFLAGS@
41 if LINUX
42  VPN_TEST = \
43  test_gnunet_vpn-4_to_6 \
44  test_gnunet_vpn-6_to_4 \
45  test_gnunet_vpn-6_over \
46  test_gnunet_vpn-4_over \
47  test_gns_vpn
48 endif
49 if MINGW
50  VPN_TEST = \
51  test_gnunet_vpn-4_to_6 \
52  test_gnunet_vpn-6_to_4 \
53  test_gnunet_vpn-6_over \
54  test_gnunet_vpn-4_over
55 endif
56 else
57 if HAVE_LIBCURL
58 LIB_GNURL=@LIBCURL@
59 CPP_GNURL=@LIBCURL_CPPFLAGS@
60 if LINUX
61  VPN_TEST = \
62  test_gnunet_vpn-4_to_6 \
63  test_gnunet_vpn-6_to_4 \
64  test_gnunet_vpn-6_over \
65  test_gnunet_vpn-4_over \
66  test_gns_vpn
67 endif
68 if MINGW
69  VPN_TEST = \
70  test_gnunet_vpn-4_to_6 \
71  test_gnunet_vpn-6_to_4 \
72  test_gnunet_vpn-6_over \
73  test_gnunet_vpn-4_over
74 endif
75 endif
76 endif
77
78 endif
79 endif
80
81 check_PROGRAMS = $(VPN_TEST)
82
83 if ENABLE_TEST_RUN
84 AM_TESTS_ENVIRONMENT=export GNUNET_PREFIX=$${GNUNET_PREFIX:-@libdir@};export PATH=$${GNUNET_PREFIX:-@prefix@}/bin:$$PATH;
85 TESTS = $(check_PROGRAMS)
86 endif
87
88 EXTRA_DIST = \
89  test_gnunet_vpn.conf \
90  test_gns_vpn.conf
91
92
93
94 test_gns_vpn_SOURCES = \
95  test_gns_vpn.c
96 test_gns_vpn_LDADD = -lmicrohttpd $(LIB_GNURL) \
97  $(top_builddir)/src/namestore/libgnunetnamestore.la \
98  $(top_builddir)/src/gnsrecord/libgnunetgnsrecord.la \
99  $(top_builddir)/src/testing/libgnunettesting.la \
100  $(top_builddir)/src/util/libgnunetutil.la
101 test_gns_vpn_CPPFLAGS = \
102  $(CPP_GNURL) $(AM_CPPFLAGS)
103
104 test_gnunet_vpn_4_over_SOURCES = \
105  test_gnunet_vpn.c
106 test_gnunet_vpn_4_over_LDADD = -lmicrohttpd $(LIB_GNURL) \
107  $(top_builddir)/src/vpn/libgnunetvpn.la \
108  $(top_builddir)/src/testing/libgnunettesting.la \
109  $(top_builddir)/src/util/libgnunetutil.la
110 test_gnunet_vpn_4_over_CPPFLAGS = \
111  $(LIB_GNURL) $(AM_CPPFLAGS)
112
113 test_gnunet_vpn_6_over_SOURCES = \
114  test_gnunet_vpn.c
115 test_gnunet_vpn_6_over_LDADD = -lmicrohttpd $(LIB_GNURL) \
116  $(top_builddir)/src/vpn/libgnunetvpn.la \
117  $(top_builddir)/src/testing/libgnunettesting.la \
118  $(top_builddir)/src/util/libgnunetutil.la
119 test_gnunet_vpn_6_over_CPPFLAGS = \
120  $(CPP_GNURL) $(AM_CPPFLAGS)
121
122 test_gnunet_vpn_4_to_6_SOURCES = \
123  test_gnunet_vpn.c
124 test_gnunet_vpn_4_to_6_LDADD = -lmicrohttpd $(LIB_GNURL) \
125  $(top_builddir)/src/vpn/libgnunetvpn.la \
126  $(top_builddir)/src/testing/libgnunettesting.la \
127  $(top_builddir)/src/util/libgnunetutil.la
128 test_gnunet_vpn_4_to_6_CPPFLAGS = \
129  $(CPP_GNURL) $(AM_CPPFLAGS)
130
131 test_gnunet_vpn_6_to_4_SOURCES = \
132  test_gnunet_vpn.c
133 test_gnunet_vpn_6_to_4_LDADD = -lmicrohttpd $(LIB_GNURL) \
134  $(top_builddir)/src/vpn/libgnunetvpn.la \
135  $(top_builddir)/src/testing/libgnunettesting.la \
136  $(top_builddir)/src/util/libgnunetutil.la
137 test_gnunet_vpn_6_to_4_CPPFLAGS = \
138  $(CPP_GNURL) $(AM_CPPFLAGS)
139
140