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