380db4446003e55f1932941247badcf2668678c5
[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) gnunet-service-vpn
30
31
32 gnunet_helper_vpn_SOURCES = \
33  gnunet-helper-vpn.c
34
35 gnunet_daemon_vpn_SOURCES = \
36  gnunet-daemon-vpn.c 
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_service_vpn_SOURCES = \
47  gnunet-service-vpn.c 
48 gnunet_service_vpn_LDADD = \
49   $(top_builddir)/src/statistics/libgnunetstatistics.la \
50   $(top_builddir)/src/util/libgnunetutil.la \
51   $(top_builddir)/src/mesh/libgnunetmesh.la \
52   $(GN_LIBINTL)
53
54 gnunet_daemon_exit_SOURCES = \
55  gnunet-daemon-exit.c 
56 gnunet_daemon_exit_LDADD = \
57   $(top_builddir)/src/core/libgnunetcore.la \
58   $(top_builddir)/src/statistics/libgnunetstatistics.la \
59   $(top_builddir)/src/util/libgnunetutil.la \
60   $(top_builddir)/src/mesh/libgnunetmesh.la \
61   $(GN_LIBINTL)
62
63
64 if ENABLE_TEST_RUN
65 #TESTS = \
66 # test_transport_api_tcp 
67 endif
68
69 #test_transport_api_tcp_SOURCES = \
70 # test_transport_api.c
71 #test_transport_api_tcp_LDADD = \
72 # $(top_builddir)/src/transport/libgnunettransport.la \
73 # $(top_builddir)/src/util/libgnunetutil.la  
74
75 EXTRA_DIST = \
76   gnunet-vpn-packet.h \
77   test-conf.conf