diff options
author | Claudiu Olteanu <claudiu@140774ce-b5e7-0310-ab8b-a85725594a96> | 2013-07-14 11:05:51 +0000 |
---|---|---|
committer | Claudiu Olteanu <claudiu@140774ce-b5e7-0310-ab8b-a85725594a96> | 2013-07-14 11:05:51 +0000 |
commit | 09be1a7abdd1de923db98e0513ab50aa6c1ac98a (patch) | |
tree | 2ac9d26c53e60fbfd77a64258957833e174c709b /src/transport/Makefile.am | |
parent | 28edd46f0da55f0ba65d57473ef1b674f5f60221 (diff) | |
download | gnunet-09be1a7abdd1de923db98e0513ab50aa6c1ac98a.tar.gz gnunet-09be1a7abdd1de923db98e0513ab50aa6c1ac98a.zip |
Integrating bluetooth plugin
Diffstat (limited to 'src/transport/Makefile.am')
-rw-r--r-- | src/transport/Makefile.am | 33 |
1 files changed, 32 insertions, 1 deletions
diff --git a/src/transport/Makefile.am b/src/transport/Makefile.am index 4ace2bc1e..feff9d918 100644 --- a/src/transport/Makefile.am +++ b/src/transport/Makefile.am | |||
@@ -59,7 +59,6 @@ if LINUX | |||
59 | test_quota_compliance_wlan_asymmetric | 59 | test_quota_compliance_wlan_asymmetric |
60 | endif | 60 | endif |
61 | 61 | ||
62 | |||
63 | if LINUX | 62 | if LINUX |
64 | install-exec-hook: | 63 | install-exec-hook: |
65 | $(top_srcdir)/src/transport/install-wlan-helper.sh $(libexecdir) $(SUDO_BINARY) || true | 64 | $(top_srcdir)/src/transport/install-wlan-helper.sh $(libexecdir) $(SUDO_BINARY) || true |
@@ -67,6 +66,23 @@ else | |||
67 | install-exec-hook: | 66 | install-exec-hook: |
68 | endif | 67 | endif |
69 | 68 | ||
69 | if LINUX | ||
70 | if HAVE_LIBBLUETOOTH | ||
71 | AM_LDFLAGS = -lbluetooth | ||
72 | BT_BIN = gnunet-helper-transport-bluetooth | ||
73 | BT_PLUGIN_LA = libgnunet_plugin_transport_bluetooth.la | ||
74 | endif | ||
75 | endif | ||
76 | |||
77 | if LINUX | ||
78 | if HAVE_LIBBLUETOOTH | ||
79 | install-exec-hook2: | ||
80 | $(top_srcdir)/src/transport/install-bluetooth-helper.sh $(libexecdir) $(SUDO_BINARY) || true | ||
81 | endif | ||
82 | else | ||
83 | install-exec-hook2: | ||
84 | endif | ||
85 | |||
70 | if !MINGW | 86 | if !MINGW |
71 | UNIX_PLUGIN_LA = libgnunet_plugin_transport_unix.la | 87 | UNIX_PLUGIN_LA = libgnunet_plugin_transport_unix.la |
72 | UNIX_PLUGIN_TEST = test_transport_api_unix | 88 | UNIX_PLUGIN_TEST = test_transport_api_unix |
@@ -118,6 +134,7 @@ libgnunettransport_la_LDFLAGS = \ | |||
118 | libexec_PROGRAMS = \ | 134 | libexec_PROGRAMS = \ |
119 | $(WLAN_BIN) \ | 135 | $(WLAN_BIN) \ |
120 | $(WLAN_BIN_DUMMY) \ | 136 | $(WLAN_BIN_DUMMY) \ |
137 | $(BT_BIN) \ | ||
121 | gnunet-service-transport | 138 | gnunet-service-transport |
122 | 139 | ||
123 | bin_PROGRAMS = \ | 140 | bin_PROGRAMS = \ |
@@ -150,6 +167,9 @@ gnunet_transport_wlan_receiver_SOURCES = \ | |||
150 | gnunet_transport_wlan_receiver_LDADD = \ | 167 | gnunet_transport_wlan_receiver_LDADD = \ |
151 | $(top_builddir)/src/util/libgnunetutil.la | 168 | $(top_builddir)/src/util/libgnunetutil.la |
152 | 169 | ||
170 | gnunet_helper_transport_bluetooth_SOURCES = \ | ||
171 | gnunet-helper-transport-bluetooth.c | ||
172 | |||
153 | gnunet_transport_SOURCES = \ | 173 | gnunet_transport_SOURCES = \ |
154 | gnunet-transport.c | 174 | gnunet-transport.c |
155 | gnunet_transport_LDADD = \ | 175 | gnunet_transport_LDADD = \ |
@@ -312,6 +332,17 @@ libgnunet_plugin_transport_https_server_la_LDFLAGS = \ | |||
312 | libgnunet_plugin_transport_https_server_la_CFLAGS = \ | 332 | libgnunet_plugin_transport_https_server_la_CFLAGS = \ |
313 | $(CFLAGS) -DBUILD_HTTPS | 333 | $(CFLAGS) -DBUILD_HTTPS |
314 | 334 | ||
335 | libgnunet_plugin_transport_bluetooth_la_SOURCES = \ | ||
336 | plugin_transport_bluetooth.c plugin_transport_wlan.h | ||
337 | libgnunet_plugin_transport_bluetooth_la_LIBADD = \ | ||
338 | $(top_builddir)/src/hello/libgnunethello.la \ | ||
339 | $(top_builddir)/src/statistics/libgnunetstatistics.la \ | ||
340 | $(top_builddir)/src/peerinfo/libgnunetpeerinfo.la \ | ||
341 | $(top_builddir)/src/fragmentation/libgnunetfragmentation.la \ | ||
342 | $(top_builddir)/src/util/libgnunetutil.la \ | ||
343 | libgnunet_plugin_transport_bluetooth_la_LDFLAGS = \ | ||
344 | $(GN_PLUGIN_LDFLAGS) | ||
345 | |||
315 | if HAVE_TESTING | 346 | if HAVE_TESTING |
316 | check_PROGRAMS = \ | 347 | check_PROGRAMS = \ |
317 | test_transport_testing_startstop \ | 348 | test_transport_testing_startstop \ |