does not compile on BSD and does not work yet, remove froms std build:
[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
35 gnunet_transport_SOURCES = \
36  gnunet-transport.c         
37 gnunet_transport_LDADD = \
38   $(top_builddir)/src/transport/libgnunettransport.la \
39   $(top_builddir)/src/util/libgnunetutil.la \
40   $(GN_LIBINTL)
41
42 gnunet_service_transport_SOURCES = \
43  gnunet-service-transport.c plugin_transport.h \
44  gnunet-service-transport_blacklist.c gnunet-service-transport_blacklist.h
45 gnunet_service_transport_LDADD = \
46   $(top_builddir)/src/peerinfo/libgnunetpeerinfo.la \
47   $(top_builddir)/src/util/libgnunetutil.la \
48   $(GN_LIBINTL)
49
50
51
52 plugin_LTLIBRARIES = \
53   libgnunet_plugin_transport_tcp.la \
54   libgnunet_plugin_transport_udp.la \
55   libgnunet_plugin_transport_template.la 
56 # TODO: add udp, http, nat, etc.
57
58 libgnunet_plugin_transport_tcp_la_SOURCES = \
59   plugin_transport_tcp.c
60 libgnunet_plugin_transport_tcp_la_LIBADD = \
61   $(top_builddir)/src/hello/libgnunethello.la \
62   $(top_builddir)/src/peerinfo/libgnunetpeerinfo.la \
63   $(top_builddir)/src/util/libgnunetutil.la 
64 libgnunet_plugin_transport_tcp_la_LDFLAGS = \
65  $(GN_PLUGIN_LDFLAGS)
66
67 libgnunet_plugin_transport_template_la_SOURCES = \
68   plugin_transport_template.c
69 libgnunet_plugin_transport_template_la_LIBADD = \
70   $(top_builddir)/src/util/libgnunetutil.la 
71 libgnunet_plugin_transport_template_la_LDFLAGS = \
72  $(GN_PLUGIN_LDFLAGS)
73
74 libgnunet_plugin_transport_udp_la_SOURCES = \
75   plugin_transport_udp.c
76 libgnunet_plugin_transport_udp_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_udp_la_LDFLAGS = \
81  $(GN_PLUGIN_LDFLAGS)
82
83 check_PROGRAMS = \
84  test_transport_api_tcp \
85  test_transport_api_udp
86 # TODO: add tests for 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 EXTRA_DIST = \
103   test_transport_api_data.conf \
104   test_transport_api_peer1.conf \
105   test_transport_api_peer2.conf \
106   test_plugin_transport_data.conf