857232a99d235bbb122ba13a2b5c1c345fc7881c
[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 lib_LTLIBRARIES = \
29   libgnunetvpn.la
30
31
32 bin_PROGRAMS = \
33   gnunet-daemon-exit gnunet-daemon-vpn $(VPNBIN) gnunet-service-vpn gnunet-vpn
34
35
36 gnunet_helper_vpn_SOURCES = \
37  gnunet-helper-vpn.c
38
39 gnunet_daemon_vpn_SOURCES = \
40  gnunet-daemon-vpn.c 
41 gnunet_daemon_vpn_LDADD = \
42   $(top_builddir)/src/core/libgnunetcore.la \
43   $(top_builddir)/src/statistics/libgnunetstatistics.la \
44   $(top_builddir)/src/util/libgnunetutil.la \
45   $(top_builddir)/src/mesh/libgnunetmesh.la \
46   $(top_builddir)/src/dns/libgnunetdnsparser.la \
47   $(top_builddir)/src/dns/libgnunetdns.la \
48   $(GN_LIBINTL)
49
50 gnunet_service_vpn_SOURCES = \
51  gnunet-service-vpn.c 
52 gnunet_service_vpn_LDADD = \
53   $(top_builddir)/src/statistics/libgnunetstatistics.la \
54   $(top_builddir)/src/util/libgnunetutil.la \
55   $(top_builddir)/src/mesh/libgnunetmesh.la \
56   $(GN_LIBINTL)
57 gnunet_service_vpn_CFLAGS = \
58   -I$(top_srcdir)/src/exit $(CFLAGS)
59
60 gnunet_daemon_exit_SOURCES = \
61  gnunet-daemon-exit.c 
62 gnunet_daemon_exit_LDADD = \
63   $(top_builddir)/src/core/libgnunetcore.la \
64   $(top_builddir)/src/statistics/libgnunetstatistics.la \
65   $(top_builddir)/src/util/libgnunetutil.la \
66   $(top_builddir)/src/mesh/libgnunetmesh.la \
67   $(GN_LIBINTL)
68
69 gnunet_vpn_SOURCES = \
70  gnunet-vpn.c
71 gnunet_vpn_LDADD = \
72   $(top_builddir)/src/vpn/libgnunetvpn.la \
73   $(top_builddir)/src/util/libgnunetutil.la \
74   $(GN_LIBINTL)
75 gnunet_vpn_DEPENDENCIES = \
76   libgnunetvpn.la
77
78 libgnunetvpn_la_SOURCES = \
79  vpn_api.c vpn.h
80 libgnunetvpn_la_LIBADD = \
81  $(top_builddir)/src/util/libgnunetutil.la $(XLIB)
82 libgnunetvpn_la_LDFLAGS = \
83   $(GN_LIB_LDFLAGS)
84
85
86 if ENABLE_TEST_RUN
87 #TESTS = \
88 # test_transport_api_tcp 
89 endif
90
91 #test_transport_api_tcp_SOURCES = \
92 # test_transport_api.c
93 #test_transport_api_tcp_LDADD = \
94 # $(top_builddir)/src/transport/libgnunettransport.la \
95 # $(top_builddir)/src/util/libgnunetutil.la  
96
97 EXTRA_DIST = \
98   gnunet-vpn-packet.h \
99   test-conf.conf