blacklisting 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
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
34 gnunet_transport_SOURCES = \
35  gnunet-transport.c         
36 gnunet_transport_LDADD = \
37   $(top_builddir)/src/transport/libgnunettransport.la \
38   $(top_builddir)/src/util/libgnunetutil.la \
39   $(GN_LIBINTL)
40
41 gnunet_service_transport_SOURCES = \
42  gnunet-service-transport.c plugin_transport.h
43 gnunet_service_transport_LDADD = \
44   $(top_builddir)/src/peerinfo/libgnunetpeerinfo.la \
45   $(top_builddir)/src/util/libgnunetutil.la \
46   $(GN_LIBINTL)
47
48
49
50 plugin_LTLIBRARIES = \
51   libgnunet_plugin_transport_tcp.la \
52   libgnunet_plugin_transport_udp.la \
53   libgnunet_plugin_transport_template.la 
54 # TODO: add udp, http, nat, etc.
55
56 libgnunet_plugin_transport_tcp_la_SOURCES = \
57   plugin_transport_tcp.c
58 libgnunet_plugin_transport_tcp_la_LIBADD = \
59   $(top_builddir)/src/hello/libgnunethello.la \
60   $(top_builddir)/src/peerinfo/libgnunetpeerinfo.la \
61   $(top_builddir)/src/util/libgnunetutil.la 
62 libgnunet_plugin_transport_tcp_la_LDFLAGS = \
63  $(GN_PLUGIN_LDFLAGS)
64
65 libgnunet_plugin_transport_template_la_SOURCES = \
66   plugin_transport_template.c
67 libgnunet_plugin_transport_template_la_LIBADD = \
68   $(top_builddir)/src/util/libgnunetutil.la 
69 libgnunet_plugin_transport_template_la_LDFLAGS = \
70  $(GN_PLUGIN_LDFLAGS)
71
72 libgnunet_plugin_transport_udp_la_SOURCES = \
73   plugin_transport_udp.c
74 libgnunet_plugin_transport_udp_la_LIBADD = \
75   $(top_builddir)/src/hello/libgnunethello.la \
76   $(top_builddir)/src/peerinfo/libgnunetpeerinfo.la \
77   $(top_builddir)/src/util/libgnunetutil.la 
78 libgnunet_plugin_transport_udp_la_LDFLAGS = \
79  $(GN_PLUGIN_LDFLAGS)
80
81 check_PROGRAMS = \
82  test_transport_api_tcp \
83  test_transport_api_udp \
84  test_plugin_transport \
85  test_plugin_transport_udp
86 # TODO: add tests for tcp, udp, http, nat, etc.
87
88 TESTS = $(check_PROGRAMS)
89
90 test_transport_api_tcp_SOURCES = \
91  test_transport_api.c
92 test_transport_api_tcp_LDADD = \
93  $(top_builddir)/src/transport/libgnunettransport.la \
94  $(top_builddir)/src/util/libgnunetutil.la  
95
96 test_transport_api_udp_SOURCES = \
97  test_transport_api.c
98 test_transport_api_udp_LDADD = \
99  $(top_builddir)/src/transport/libgnunettransport.la \
100  $(top_builddir)/src/util/libgnunetutil.la  
101
102 test_plugin_transport_SOURCES = \
103  test_plugin_transport.c
104 test_plugin_transport_LDADD = \
105  $(top_builddir)/src/transport/libgnunettransport.la \
106  $(top_builddir)/src/util/libgnunetutil.la  
107
108 test_plugin_transport_udp_SOURCES = \
109  test_plugin_transport_udp.c
110 test_plugin_transport_udp_LDADD = \
111  $(top_builddir)/src/transport/libgnunettransport.la \
112  $(top_builddir)/src/util/libgnunetutil.la  
113
114 EXTRA_DIST = \
115   test_transport_api_data.conf \
116   test_transport_api_peer1.conf \
117   test_transport_api_peer2.conf \
118   test_plugin_transport_data.conf