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