38b37dd65bc3284474a8cb6a420888ef32fafa02
[oweals/gnunet.git] / src / vpn / 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 plugindir = $(libdir)/gnunet
14
15 dist_pkgcfg_DATA = \
16   vpn.conf
17
18 if LINUX
19 VPNBIN = gnunet-helper-vpn
20 install-exec-hook:
21         $(SUDO_BINARY) chown root:root $(bindir)/gnunet-helper-vpn || true
22         $(SUDO_BINARY) chmod u+s $(bindir)/gnunet-helper-vpn || true
23 else
24 install-exec-hook:
25 endif
26
27
28 bin_PROGRAMS = \
29   gnunet-daemon-exit gnunet-daemon-vpn $(VPNBIN) $(HIJACKBIN)
30
31
32 gnunet_helper_vpn_SOURCES = \
33  gnunet-helper-vpn.c
34
35 gnunet_daemon_vpn_SOURCES = \
36  gnunet-daemon-vpn.c gnunet-daemon-vpn.h 
37 gnunet_daemon_vpn_LDADD = \
38   $(top_builddir)/src/core/libgnunetcore.la \
39   $(top_builddir)/src/statistics/libgnunetstatistics.la \
40   $(top_builddir)/src/util/libgnunetutil.la \
41   $(top_builddir)/src/mesh/libgnunetmesh.la \
42   $(top_builddir)/src/dns/libgnunetdnsparser.la \
43   $(top_builddir)/src/dns/libgnunetdns.la \
44   $(GN_LIBINTL)
45
46 gnunet_daemon_exit_SOURCES = \
47  gnunet-daemon-exit.c 
48 gnunet_daemon_exit_LDADD = \
49   $(top_builddir)/src/core/libgnunetcore.la \
50   $(top_builddir)/src/statistics/libgnunetstatistics.la \
51   $(top_builddir)/src/util/libgnunetutil.la \
52   $(top_builddir)/src/mesh/libgnunetmesh.la \
53   $(GN_LIBINTL)
54
55
56 if ENABLE_TEST_RUN
57 #TESTS = \
58 # test_transport_api_tcp 
59 endif
60
61 #test_transport_api_tcp_SOURCES = \
62 # test_transport_api.c
63 #test_transport_api_tcp_LDADD = \
64 # $(top_builddir)/src/transport/libgnunettransport.la \
65 # $(top_builddir)/src/util/libgnunetutil.la  
66
67 EXTRA_DIST = \
68   gnunet-vpn-packet.h \
69   test-conf.conf