-duplication
[oweals/gnunet.git] / src / pt / Makefile.am
1 INCLUDES = -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/dns/libgnunetdns.la \
29   $(top_builddir)/src/dns/libgnunetdnsparser.la \
30   $(top_builddir)/src/statistics/libgnunetstatistics.la \
31   $(top_builddir)/src/util/libgnunetutil.la \
32   $(GN_LIBINTL)
33
34 if HAVE_MHD
35 if HAVE_LIBCURL
36 if LINUX
37  VPN_TEST = \
38  test_gnunet_vpn-4_to_6 \
39  test_gnunet_vpn-6_to_4 \
40  test_gnunet_vpn-6_over \
41  test_gnunet_vpn-4_over \
42  test_gns_vpn
43 endif
44 if MINGW
45  VPN_TEST = \
46  test_gnunet_vpn-4_to_6 \
47  test_gnunet_vpn-6_to_4 \
48  test_gnunet_vpn-6_over \
49  test_gnunet_vpn-4_over 
50 endif
51 endif
52 endif
53
54 check_PROGRAMS = $(VPN_TEST)
55
56 if ENABLE_TEST_RUN
57 TESTS = $(check_PROGRAMS)
58 endif
59
60 EXTRA_DIST = \
61  test_gnunet_vpn.conf \
62  test_gns_vpn.conf
63
64
65
66 test_gns_vpn_SOURCES = \
67  test_gns_vpn.c
68 test_gns_vpn_LDADD = -lmicrohttpd @LIBCURL@ \
69  $(top_builddir)/src/namestore/libgnunetnamestore.la \
70  $(top_builddir)/src/testing/libgnunettesting.la \
71  $(top_builddir)/src/util/libgnunetutil.la
72 test_gns_vpn_CPPFLAGS = \
73  @LIBCURL_CPPFLAGS@
74
75 test_gnunet_vpn_4_over_SOURCES = \
76  test_gnunet_vpn.c
77 test_gnunet_vpn_4_over_LDADD = -lmicrohttpd @LIBCURL@ \
78  $(top_builddir)/src/vpn/libgnunetvpn.la \
79  $(top_builddir)/src/testing/libgnunettesting.la \
80  $(top_builddir)/src/util/libgnunetutil.la 
81 test_gnunet_vpn_4_over_CPPFLAGS = \
82  @LIBCURL_CPPFLAGS@
83
84 test_gnunet_vpn_6_over_SOURCES = \
85  test_gnunet_vpn.c
86 test_gnunet_vpn_6_over_LDADD = -lmicrohttpd @LIBCURL@ \
87  $(top_builddir)/src/vpn/libgnunetvpn.la \
88  $(top_builddir)/src/testing/libgnunettesting.la \
89  $(top_builddir)/src/util/libgnunetutil.la 
90 test_gnunet_vpn_6_over_CPPFLAGS = \
91  @LIBCURL_CPPFLAGS@
92
93 test_gnunet_vpn_4_to_6_SOURCES = \
94  test_gnunet_vpn.c
95 test_gnunet_vpn_4_to_6_LDADD = -lmicrohttpd @LIBCURL@ \
96  $(top_builddir)/src/vpn/libgnunetvpn.la \
97  $(top_builddir)/src/testing/libgnunettesting.la \
98  $(top_builddir)/src/util/libgnunetutil.la 
99 test_gnunet_vpn_4_to_6_CPPFLAGS = \
100  @LIBCURL_CPPFLAGS@
101
102 test_gnunet_vpn_6_to_4_SOURCES = \
103  test_gnunet_vpn.c
104 test_gnunet_vpn_6_to_4_LDADD = -lmicrohttpd @LIBCURL@ \
105  $(top_builddir)/src/vpn/libgnunetvpn.la \
106  $(top_builddir)/src/testing/libgnunettesting.la \
107  $(top_builddir)/src/util/libgnunetutil.la 
108 test_gnunet_vpn_6_to_4_CPPFLAGS = \
109  @LIBCURL_CPPFLAGS@
110