RECLAIM/OIDC: code cleanup
[oweals/gnunet.git] / src / pt / Makefile.am
1 # This Makefile.am is in the public domain
2 AM_CPPFLAGS = -I$(top_srcdir)/src/include
3
4 if MINGW
5   WINFLAGS = -Wl,--no-undefined -Wl,--export-all-symbols
6 endif
7
8 if USE_COVERAGE
9   AM_CFLAGS = --coverage -O0
10 endif
11
12 pkgcfgdir= $(pkgdatadir)/config.d/
13
14 libexecdir= $(pkglibdir)/libexec/
15
16 plugindir = $(libdir)/gnunet
17
18 dist_pkgcfg_DATA = \
19   pt.conf
20
21 libexec_PROGRAMS = \
22   gnunet-daemon-pt
23
24 gnunet_daemon_pt_SOURCES = \
25  gnunet-daemon-pt.c
26 gnunet_daemon_pt_LDADD = \
27   $(top_builddir)/src/vpn/libgnunetvpn.la \
28   $(top_builddir)/src/cadet/libgnunetcadet.la \
29   $(top_builddir)/src/dht/libgnunetdht.la \
30   $(top_builddir)/src/dns/libgnunetdns.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;unset XDG_DATA_HOME;unset XDG_CONFIG_HOME;
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/identity/libgnunetidentity.la \
99  $(top_builddir)/src/gnsrecord/libgnunetgnsrecord.la \
100  $(top_builddir)/src/testing/libgnunettesting.la \
101  $(top_builddir)/src/util/libgnunetutil.la
102 test_gns_vpn_CPPFLAGS = \
103  $(CPP_GNURL) $(AM_CPPFLAGS)
104
105 test_gnunet_vpn_4_over_SOURCES = \
106  test_gnunet_vpn.c
107 test_gnunet_vpn_4_over_LDADD = -lmicrohttpd $(LIB_GNURL) \
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_4_over_CPPFLAGS = \
112  $(LIB_GNURL) $(AM_CPPFLAGS)
113
114 test_gnunet_vpn_6_over_SOURCES = \
115  test_gnunet_vpn.c
116 test_gnunet_vpn_6_over_LDADD = -lmicrohttpd $(LIB_GNURL) \
117  $(top_builddir)/src/vpn/libgnunetvpn.la \
118  $(top_builddir)/src/testing/libgnunettesting.la \
119  $(top_builddir)/src/util/libgnunetutil.la
120 test_gnunet_vpn_6_over_CPPFLAGS = \
121  $(CPP_GNURL) $(AM_CPPFLAGS)
122
123 test_gnunet_vpn_4_to_6_SOURCES = \
124  test_gnunet_vpn.c
125 test_gnunet_vpn_4_to_6_LDADD = -lmicrohttpd $(LIB_GNURL) \
126  $(top_builddir)/src/vpn/libgnunetvpn.la \
127  $(top_builddir)/src/testing/libgnunettesting.la \
128  $(top_builddir)/src/util/libgnunetutil.la
129 test_gnunet_vpn_4_to_6_CPPFLAGS = \
130  $(CPP_GNURL) $(AM_CPPFLAGS)
131
132 test_gnunet_vpn_6_to_4_SOURCES = \
133  test_gnunet_vpn.c
134 test_gnunet_vpn_6_to_4_LDADD = -lmicrohttpd $(LIB_GNURL) \
135  $(top_builddir)/src/vpn/libgnunetvpn.la \
136  $(top_builddir)/src/testing/libgnunettesting.la \
137  $(top_builddir)/src/util/libgnunetutil.la
138 test_gnunet_vpn_6_to_4_CPPFLAGS = \
139  $(CPP_GNURL) $(AM_CPPFLAGS)