address resolution API implementation
[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 endif
19
20
21 lib_LTLIBRARIES = \
22   libgnunettransport.la
23
24 libgnunettransport_la_SOURCES = \
25   transport_api.c transport.h \
26   transport_api_blacklist.c \
27   transport_api_address_lookup.c 
28 libgnunettransport_la_LIBADD = \
29   $(top_builddir)/src/arm/libgnunetarm.la \
30   $(top_builddir)/src/hello/libgnunethello.la \
31   $(top_builddir)/src/util/libgnunetutil.la \
32   $(GN_LIBINTL) 
33 libgnunettransport_la_LDFLAGS = \
34   $(GN_LIB_LDFLAGS) $(WINFLAGS) \
35   -version-info 0:0:0
36
37
38 bin_PROGRAMS = \
39  gnunet-transport \
40  gnunet-service-transport $(NATBIN)
41
42
43 gnunet_nat_server_SOURCES = \
44  gnunet-nat-server.c         
45
46 gnunet_nat_client_SOURCES = \
47  gnunet-nat-client.c         
48
49
50 gnunet_transport_SOURCES = \
51  gnunet-transport.c         
52 gnunet_transport_LDADD = \
53   $(top_builddir)/src/transport/libgnunettransport.la \
54   $(top_builddir)/src/util/libgnunetutil.la \
55   $(GN_LIBINTL)
56
57 gnunet_service_transport_SOURCES = \
58  gnunet-service-transport.c plugin_transport.h \
59  gnunet-service-transport_blacklist.c gnunet-service-transport_blacklist.h
60 gnunet_service_transport_LDADD = \
61   $(top_builddir)/src/peerinfo/libgnunetpeerinfo.la \
62   $(top_builddir)/src/statistics/libgnunetstatistics.la \
63   $(top_builddir)/src/util/libgnunetutil.la \
64   $(GN_LIBINTL)
65
66
67 plugin_LTLIBRARIES = \
68   libgnunet_plugin_transport_tcp.la \
69   libgnunet_plugin_transport_udp.la \
70     libgnunet_plugin_transport_udp_nat.la \
71   libgnunet_plugin_transport_template.la 
72 # TODO: add http, nat, etc.
73
74 libgnunet_plugin_transport_tcp_la_SOURCES = \
75   plugin_transport_tcp.c
76 libgnunet_plugin_transport_tcp_la_LIBADD = \
77   $(top_builddir)/src/hello/libgnunethello.la \
78   $(top_builddir)/src/peerinfo/libgnunetpeerinfo.la \
79   $(top_builddir)/src/util/libgnunetutil.la 
80 libgnunet_plugin_transport_tcp_la_LDFLAGS = \
81  $(GN_PLUGIN_LDFLAGS)
82
83 libgnunet_plugin_transport_template_la_SOURCES = \
84   plugin_transport_template.c
85 libgnunet_plugin_transport_template_la_LIBADD = \
86   $(top_builddir)/src/util/libgnunetutil.la 
87 libgnunet_plugin_transport_template_la_LDFLAGS = \
88  $(GN_PLUGIN_LDFLAGS)
89
90 libgnunet_plugin_transport_udp_la_SOURCES = \
91   plugin_transport_udp.c
92 libgnunet_plugin_transport_udp_la_LIBADD = \
93   $(top_builddir)/src/hello/libgnunethello.la \
94   $(top_builddir)/src/peerinfo/libgnunetpeerinfo.la \
95   $(top_builddir)/src/util/libgnunetutil.la 
96 libgnunet_plugin_transport_udp_la_LDFLAGS = \
97  $(GN_PLUGIN_LDFLAGS)
98
99 libgnunet_plugin_transport_udp_nat_la_SOURCES = \
100   plugin_transport_udp_nat.c
101 libgnunet_plugin_transport_udp_nat_la_LIBADD = \
102   $(top_builddir)/src/hello/libgnunethello.la \
103   $(top_builddir)/src/peerinfo/libgnunetpeerinfo.la \
104   $(top_builddir)/src/util/libgnunetutil.la 
105 libgnunet_plugin_transport_udp_nat_la_LDFLAGS = \
106  $(GN_PLUGIN_LDFLAGS)
107
108 check_PROGRAMS = \
109  test_transport_api_tcp \
110  test_transport_api_udp \
111  test_transport_api_udp_nat
112 # TODO: add tests for http, nat, etc.
113
114 TESTS = $(check_PROGRAMS)
115
116 test_transport_api_tcp_SOURCES = \
117  test_transport_api.c
118 test_transport_api_tcp_LDADD = \
119  $(top_builddir)/src/transport/libgnunettransport.la \
120  $(top_builddir)/src/util/libgnunetutil.la  
121
122 test_transport_api_udp_SOURCES = \
123  test_transport_api.c
124 test_transport_api_udp_LDADD = \
125  $(top_builddir)/src/transport/libgnunettransport.la \
126  $(top_builddir)/src/util/libgnunetutil.la  
127
128 test_transport_api_udp_nat_SOURCES = \
129  test_transport_api.c
130 test_transport_api_udp_nat_LDADD = \
131  $(top_builddir)/src/transport/libgnunettransport.la \
132  $(top_builddir)/src/util/libgnunetutil.la  
133
134 EXTRA_DIST = \
135   test_transport_api_data.conf \
136   test_transport_api_peer1.conf \
137   test_transport_api_peer2.conf \
138   test_plugin_transport_data.conf