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