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