small whitespace change
[oweals/gnunet.git] / src / transport / Makefile.am
1 INCLUDES = -I$(top_srcdir)/src/include
2
3 plugindir = $(libdir)/gnunet
4
5 if MINGW
6   WINFLAGS = -Wl,--no-undefined -Wl,--export-all-symbols
7 endif
8
9 if USE_COVERAGE
10   AM_CFLAGS = --coverage -O0
11 endif
12
13 if LINUX
14 NATBIN = gnunet-nat-server gnunet-nat-client
15 install-exec-hook:
16         chown root $(bindir)/gnunet-nat-server $(bindir)/gnunet-nat-client || true
17         chmod u+s $(bindir)/gnunet-nat-server $(bindir)/gnunet-nat-client || true
18 else
19 install-exec-hook:
20 endif
21
22
23 lib_LTLIBRARIES = \
24   libgnunettransport.la
25
26 libgnunettransport_la_SOURCES = \
27   transport_api.c transport.h \
28   transport_api_blacklist.c \
29   transport_api_address_lookup.c 
30 libgnunettransport_la_LIBADD = \
31   $(top_builddir)/src/arm/libgnunetarm.la \
32   $(top_builddir)/src/hello/libgnunethello.la \
33   $(top_builddir)/src/util/libgnunetutil.la \
34   $(GN_LIBINTL) 
35 libgnunettransport_la_LDFLAGS = \
36   $(GN_LIB_LDFLAGS) $(WINFLAGS) \
37   -version-info 0:0:0
38
39
40 bin_PROGRAMS = \
41  gnunet-transport \
42  gnunet-service-transport $(NATBIN)
43
44
45 gnunet_nat_server_SOURCES = \
46  gnunet-nat-server.c         
47
48 gnunet_nat_client_SOURCES = \
49  gnunet-nat-client.c         
50
51
52 gnunet_transport_SOURCES = \
53  gnunet-transport.c         
54 gnunet_transport_LDADD = \
55   $(top_builddir)/src/transport/libgnunettransport.la \
56   $(top_builddir)/src/util/libgnunetutil.la \
57   $(GN_LIBINTL)
58
59 gnunet_service_transport_SOURCES = \
60  gnunet-service-transport.c plugin_transport.h \
61  gnunet-service-transport_blacklist.c gnunet-service-transport_blacklist.h
62 gnunet_service_transport_LDADD = \
63   $(top_builddir)/src/peerinfo/libgnunetpeerinfo.la \
64   $(top_builddir)/src/statistics/libgnunetstatistics.la \
65   $(top_builddir)/src/util/libgnunetutil.la \
66   $(GN_LIBINTL)
67
68
69 plugin_LTLIBRARIES = \
70   libgnunet_plugin_transport_tcp.la \
71   libgnunet_plugin_transport_udp.la \
72   libgnunet_plugin_transport_udp_nat.la \
73   libgnunet_plugin_transport_template.la 
74 # TODO: add http, nat, etc.
75
76 libgnunet_plugin_transport_tcp_la_SOURCES = \
77   plugin_transport_tcp.c
78 libgnunet_plugin_transport_tcp_la_LIBADD = \
79   $(top_builddir)/src/hello/libgnunethello.la \
80   $(top_builddir)/src/statistics/libgnunetstatistics.la \
81   $(top_builddir)/src/peerinfo/libgnunetpeerinfo.la \
82   $(top_builddir)/src/util/libgnunetutil.la 
83 libgnunet_plugin_transport_tcp_la_LDFLAGS = \
84  $(GN_PLUGIN_LDFLAGS)
85
86 libgnunet_plugin_transport_template_la_SOURCES = \
87   plugin_transport_template.c
88 libgnunet_plugin_transport_template_la_LIBADD = \
89   $(top_builddir)/src/util/libgnunetutil.la 
90 libgnunet_plugin_transport_template_la_LDFLAGS = \
91  $(GN_PLUGIN_LDFLAGS)
92
93 libgnunet_plugin_transport_udp_la_SOURCES = \
94   plugin_transport_udp.c
95 libgnunet_plugin_transport_udp_la_LIBADD = \
96   $(top_builddir)/src/hello/libgnunethello.la \
97   $(top_builddir)/src/statistics/libgnunetstatistics.la \
98   $(top_builddir)/src/peerinfo/libgnunetpeerinfo.la \
99   $(top_builddir)/src/util/libgnunetutil.la 
100 libgnunet_plugin_transport_udp_la_LDFLAGS = \
101  $(GN_PLUGIN_LDFLAGS)
102
103 libgnunet_plugin_transport_udp_nat_la_SOURCES = \
104   plugin_transport_udp_nat.c
105 libgnunet_plugin_transport_udp_nat_la_LIBADD = \
106   $(top_builddir)/src/hello/libgnunethello.la \
107   $(top_builddir)/src/statistics/libgnunetstatistics.la \
108   $(top_builddir)/src/peerinfo/libgnunetpeerinfo.la \
109   $(top_builddir)/src/util/libgnunetutil.la 
110 libgnunet_plugin_transport_udp_nat_la_LDFLAGS = \
111  $(GN_PLUGIN_LDFLAGS)
112
113  
114 check_PROGRAMS = \
115  test_transport_api_tcp \
116  test_transport_api_udp \
117  test_transport_api_udp_nat
118 # TODO: add tests for http, nat, etc.
119
120 TESTS = $(check_PROGRAMS)
121
122 test_transport_api_tcp_SOURCES = \
123  test_transport_api.c
124 test_transport_api_tcp_LDADD = \
125  $(top_builddir)/src/transport/libgnunettransport.la \
126  $(top_builddir)/src/util/libgnunetutil.la  
127
128 test_transport_api_udp_SOURCES = \
129  test_transport_api.c
130 test_transport_api_udp_LDADD = \
131  $(top_builddir)/src/transport/libgnunettransport.la \
132  $(top_builddir)/src/util/libgnunetutil.la  
133
134 test_transport_api_udp_nat_SOURCES = \
135  test_transport_api.c
136 test_transport_api_udp_nat_LDADD = \
137  $(top_builddir)/src/transport/libgnunettransport.la \
138  $(top_builddir)/src/util/libgnunetutil.la  
139
140 EXTRA_DIST = \
141   test_transport_api_data.conf \
142   test_transport_api_peer1.conf \
143   test_transport_api_peer2.conf \
144   test_plugin_transport_data.conf