2002-03-09 05:10:06 +08:00
|
|
|
|
2009-08-17 05:52:28 +08:00
|
|
|
AM_MAKEFLAGS = --no-print-directory
|
|
|
|
|
2009-08-23 15:40:59 +08:00
|
|
|
lib_LTLIBRARIES =
|
|
|
|
|
2011-07-21 05:47:49 +08:00
|
|
|
noinst_LIBRARIES =
|
|
|
|
|
2009-08-23 15:40:59 +08:00
|
|
|
noinst_LTLIBRARIES =
|
|
|
|
|
|
|
|
bin_PROGRAMS =
|
|
|
|
|
|
|
|
noinst_PROGRAMS =
|
|
|
|
|
|
|
|
dist_man_MANS =
|
|
|
|
|
|
|
|
dist_noinst_MANS =
|
|
|
|
|
|
|
|
CLEANFILES =
|
|
|
|
|
|
|
|
EXTRA_DIST =
|
|
|
|
|
2012-12-12 04:46:00 +08:00
|
|
|
libexecdir = @libexecdir@/bluetooth
|
|
|
|
|
|
|
|
libexec_PROGRAMS =
|
|
|
|
|
2009-08-23 15:40:59 +08:00
|
|
|
includedir = @includedir@/bluetooth
|
|
|
|
|
|
|
|
include_HEADERS =
|
|
|
|
|
2012-05-09 20:06:17 +08:00
|
|
|
AM_CFLAGS = $(WARNING_CFLAGS) $(MISC_CFLAGS)
|
|
|
|
AM_LDFLAGS = $(MISC_LDFLAGS)
|
|
|
|
|
2011-07-02 11:35:10 +08:00
|
|
|
if DATAFILES
|
2012-12-11 22:32:04 +08:00
|
|
|
dbusdir = @DBUS_CONFDIR@/dbus-1/system.d
|
2009-08-25 03:42:37 +08:00
|
|
|
dbus_DATA = src/bluetooth.conf
|
2012-12-11 22:32:04 +08:00
|
|
|
|
2009-08-23 15:40:59 +08:00
|
|
|
confdir = $(sysconfdir)/bluetooth
|
|
|
|
conf_DATA =
|
|
|
|
|
2009-08-25 03:42:37 +08:00
|
|
|
statedir = $(localstatedir)/lib/bluetooth
|
|
|
|
state_DATA =
|
2012-12-11 21:52:23 +08:00
|
|
|
endif
|
2011-07-02 11:35:12 +08:00
|
|
|
|
|
|
|
if SYSTEMD
|
2012-12-11 21:52:23 +08:00
|
|
|
systemdsystemunitdir = @SYSTEMD_SYSTEMUNITDIR@
|
|
|
|
systemdsystemunit_DATA = src/bluetooth.service
|
2012-12-12 00:55:24 +08:00
|
|
|
|
|
|
|
dbussystembusdir = @DBUS_SYSTEMBUSDIR@
|
|
|
|
dbussystembus_DATA = src/org.bluez.service
|
2009-08-25 03:42:37 +08:00
|
|
|
endif
|
|
|
|
|
2012-12-19 04:44:47 +08:00
|
|
|
EXTRA_DIST += src/bluetooth.service.in src/org.bluez.service
|
2012-12-09 18:19:53 +08:00
|
|
|
|
2011-08-22 21:00:21 +08:00
|
|
|
plugindir = $(libdir)/bluetooth/plugins
|
|
|
|
|
2011-08-15 05:39:14 +08:00
|
|
|
if MAINTAINER_MODE
|
2011-08-22 21:00:21 +08:00
|
|
|
build_plugindir = $(abs_top_srcdir)/plugins/.libs
|
2011-08-15 05:39:14 +08:00
|
|
|
else
|
2011-08-22 21:00:21 +08:00
|
|
|
build_plugindir = $(plugindir)
|
2011-08-15 05:39:14 +08:00
|
|
|
endif
|
|
|
|
|
2009-08-23 15:40:59 +08:00
|
|
|
|
|
|
|
plugin_LTLIBRARIES =
|
|
|
|
|
2013-01-10 12:32:12 +08:00
|
|
|
lib_sources = lib/bluetooth.c lib/hci.c lib/sdp.c
|
|
|
|
lib_headers = lib/bluetooth.h lib/hci.h lib/hci_lib.h \
|
|
|
|
lib/sco.h lib/l2cap.h lib/sdp.h lib/sdp_lib.h \
|
|
|
|
lib/rfcomm.h lib/bnep.h lib/cmtp.h lib/hidp.h
|
|
|
|
|
|
|
|
extra_headers = lib/mgmt.h lib/uuid.h lib/a2mp.h lib/amp.h
|
|
|
|
extra_sources = lib/uuid.c
|
2009-08-23 15:40:59 +08:00
|
|
|
|
|
|
|
local_headers = $(foreach file,$(lib_headers), lib/bluetooth/$(notdir $(file)))
|
|
|
|
|
2011-11-13 07:25:35 +08:00
|
|
|
BUILT_SOURCES = $(local_headers) src/builtin.h
|
2011-07-09 23:10:53 +08:00
|
|
|
|
2012-12-11 05:34:47 +08:00
|
|
|
if LIBRARY
|
2009-08-23 15:40:59 +08:00
|
|
|
include_HEADERS += $(lib_headers)
|
|
|
|
|
|
|
|
lib_LTLIBRARIES += lib/libbluetooth.la
|
|
|
|
|
2013-01-10 12:32:12 +08:00
|
|
|
lib_libbluetooth_la_SOURCES = $(lib_headers) $(lib_sources)
|
2014-06-21 02:26:51 +08:00
|
|
|
lib_libbluetooth_la_LDFLAGS = $(AM_LDFLAGS) -version-info 20:10:17
|
2009-08-23 15:40:59 +08:00
|
|
|
lib_libbluetooth_la_DEPENDENCIES = $(local_headers)
|
2012-12-11 05:34:47 +08:00
|
|
|
endif
|
2009-08-23 15:40:59 +08:00
|
|
|
|
2013-07-03 20:29:19 +08:00
|
|
|
noinst_LTLIBRARIES += lib/libbluetooth-internal.la
|
2011-08-29 07:07:43 +08:00
|
|
|
|
2013-07-03 20:29:19 +08:00
|
|
|
lib_libbluetooth_internal_la_SOURCES = $(lib_headers) $(lib_sources) \
|
2013-01-10 12:32:12 +08:00
|
|
|
$(extra_headers) $(extra_sources)
|
2011-08-29 07:07:43 +08:00
|
|
|
|
2013-07-18 22:37:19 +08:00
|
|
|
noinst_LTLIBRARIES += gdbus/libgdbus-internal.la
|
|
|
|
|
|
|
|
gdbus_libgdbus_internal_la_SOURCES = gdbus/gdbus.h \
|
|
|
|
gdbus/mainloop.c gdbus/watch.c \
|
|
|
|
gdbus/object.c gdbus/client.c gdbus/polkit.c
|
|
|
|
|
2012-04-04 00:01:31 +08:00
|
|
|
attrib_sources = attrib/att.h attrib/att-database.h attrib/att.c \
|
|
|
|
attrib/gatt.h attrib/gatt.c \
|
2012-12-13 20:08:04 +08:00
|
|
|
attrib/gattrib.h attrib/gattrib.c \
|
2014-05-29 21:49:37 +08:00
|
|
|
attrib/gatt-service.h attrib/gatt-service.c \
|
|
|
|
src/shared/crypto.h src/shared/crypto.c
|
2009-08-23 15:40:59 +08:00
|
|
|
|
2010-09-13 16:17:31 +08:00
|
|
|
btio_sources = btio/btio.h btio/btio.c
|
|
|
|
|
2012-12-01 22:08:06 +08:00
|
|
|
gobex_sources = gobex/gobex.h gobex/gobex.c \
|
|
|
|
gobex/gobex-defs.h gobex/gobex-defs.c \
|
|
|
|
gobex/gobex-packet.c gobex/gobex-packet.h \
|
|
|
|
gobex/gobex-header.c gobex/gobex-header.h \
|
|
|
|
gobex/gobex-transfer.c gobex/gobex-debug.h \
|
|
|
|
gobex/gobex-apparam.c gobex/gobex-apparam.h
|
|
|
|
|
2009-08-23 15:40:59 +08:00
|
|
|
builtin_modules =
|
|
|
|
builtin_sources =
|
|
|
|
builtin_nodist =
|
2010-07-26 18:19:56 +08:00
|
|
|
|
2012-12-09 17:05:17 +08:00
|
|
|
include Makefile.plugins
|
2009-08-23 15:40:59 +08:00
|
|
|
|
2011-08-11 21:10:15 +08:00
|
|
|
if MAINTAINER_MODE
|
|
|
|
plugin_LTLIBRARIES += plugins/external-dummy.la
|
|
|
|
plugins_external_dummy_la_SOURCES = plugins/external-dummy.c
|
2012-05-09 20:06:17 +08:00
|
|
|
plugins_external_dummy_la_LDFLAGS = $(AM_LDFLAGS) -module -avoid-version \
|
|
|
|
-no-undefined
|
2011-11-13 12:48:44 +08:00
|
|
|
plugins_external_dummy_la_CFLAGS = $(AM_CFLAGS) -fvisibility=hidden
|
2011-08-11 21:10:15 +08:00
|
|
|
endif
|
|
|
|
|
2012-12-09 18:19:53 +08:00
|
|
|
libexec_PROGRAMS += src/bluetoothd
|
2009-08-23 15:40:59 +08:00
|
|
|
|
2013-07-03 20:29:20 +08:00
|
|
|
src_bluetoothd_SOURCES = $(builtin_sources) \
|
2010-09-13 16:17:31 +08:00
|
|
|
$(attrib_sources) $(btio_sources) \
|
2012-12-09 17:00:40 +08:00
|
|
|
src/bluetooth.ver \
|
2010-05-21 20:26:15 +08:00
|
|
|
src/main.c src/log.h src/log.c \
|
2012-12-10 06:58:51 +08:00
|
|
|
src/systemd.h src/systemd.c \
|
2010-10-27 04:06:44 +08:00
|
|
|
src/rfkill.c src/hcid.h src/sdpd.h \
|
2009-08-23 15:40:59 +08:00
|
|
|
src/sdpd-server.c src/sdpd-request.c \
|
|
|
|
src/sdpd-service.c src/sdpd-database.c \
|
2010-07-08 04:44:41 +08:00
|
|
|
src/attrib-server.h src/attrib-server.c \
|
2010-09-13 16:17:31 +08:00
|
|
|
src/sdp-xml.h src/sdp-xml.c \
|
2011-10-18 16:15:23 +08:00
|
|
|
src/sdp-client.h src/sdp-client.c \
|
2012-04-17 00:22:24 +08:00
|
|
|
src/textfile.h src/textfile.c \
|
2014-01-21 20:12:00 +08:00
|
|
|
src/uuid-helper.h src/uuid-helper.c \
|
2012-12-09 07:42:26 +08:00
|
|
|
src/uinput.h \
|
2009-08-23 15:40:59 +08:00
|
|
|
src/plugin.h src/plugin.c \
|
|
|
|
src/storage.h src/storage.c \
|
|
|
|
src/agent.h src/agent.c \
|
|
|
|
src/error.h src/error.c \
|
|
|
|
src/adapter.h src/adapter.c \
|
2012-09-10 20:32:22 +08:00
|
|
|
src/profile.h src/profile.c \
|
2013-04-26 14:17:07 +08:00
|
|
|
src/service.h src/service.c \
|
2014-02-20 02:51:25 +08:00
|
|
|
src/gatt-dbus.h src/gatt-dbus.c \
|
2014-02-20 02:51:24 +08:00
|
|
|
src/gatt.h src/gatt.c \
|
2011-07-07 05:22:53 +08:00
|
|
|
src/device.h src/device.c src/attio.h \
|
2009-08-23 15:40:59 +08:00
|
|
|
src/dbus-common.c src/dbus-common.h \
|
2013-01-08 19:22:45 +08:00
|
|
|
src/eir.h src/eir.c \
|
2014-01-09 11:39:09 +08:00
|
|
|
src/shared/io.h src/shared/io-glib.c \
|
2014-03-20 13:29:23 +08:00
|
|
|
src/shared/timeout.h src/shared/timeout-glib.c \
|
2014-01-09 07:01:04 +08:00
|
|
|
src/shared/queue.h src/shared/queue.c \
|
2013-01-03 22:57:28 +08:00
|
|
|
src/shared/util.h src/shared/util.c \
|
2014-06-19 04:25:40 +08:00
|
|
|
src/shared/mgmt.h src/shared/mgmt.c \
|
|
|
|
src/shared/att-types.h src/shared/att.h src/shared/att.c
|
2013-07-03 20:29:20 +08:00
|
|
|
src_bluetoothd_LDADD = lib/libbluetooth-internal.la gdbus/libgdbus-internal.la \
|
|
|
|
@GLIB_LIBS@ @DBUS_LIBS@ -ldl -lrt
|
2012-05-09 20:06:17 +08:00
|
|
|
src_bluetoothd_LDFLAGS = $(AM_LDFLAGS) -Wl,--export-dynamic \
|
2010-10-06 20:11:53 +08:00
|
|
|
-Wl,--version-script=$(srcdir)/src/bluetooth.ver
|
|
|
|
|
2013-07-03 20:29:19 +08:00
|
|
|
src_bluetoothd_DEPENDENCIES = lib/libbluetooth-internal.la \
|
2013-08-19 21:49:51 +08:00
|
|
|
gdbus/libgdbus-internal.la src/bluetooth.service
|
2009-08-23 15:40:59 +08:00
|
|
|
|
2011-11-13 12:48:44 +08:00
|
|
|
src_bluetoothd_CFLAGS = $(AM_CFLAGS) -DBLUETOOTH_PLUGIN_BUILTIN \
|
|
|
|
-DPLUGINDIR=\""$(build_plugindir)"\"
|
|
|
|
src_bluetoothd_SHORTNAME = bluetoothd
|
|
|
|
|
2009-08-23 15:40:59 +08:00
|
|
|
builtin_files = src/builtin.h $(builtin_nodist)
|
|
|
|
|
|
|
|
nodist_src_bluetoothd_SOURCES = $(builtin_files)
|
|
|
|
|
2012-12-10 07:05:50 +08:00
|
|
|
CLEANFILES += $(builtin_files) src/bluetooth.service
|
2009-08-23 15:40:59 +08:00
|
|
|
|
|
|
|
man_MANS = src/bluetoothd.8
|
|
|
|
|
2012-12-19 04:44:47 +08:00
|
|
|
EXTRA_DIST += src/genbuiltin src/bluetooth.conf \
|
2012-07-10 22:03:03 +08:00
|
|
|
src/main.conf profiles/network/network.conf \
|
2013-07-26 02:25:46 +08:00
|
|
|
profiles/input/input.conf profiles/proximity/proximity.conf
|
2009-08-23 15:40:59 +08:00
|
|
|
|
2012-12-12 05:28:15 +08:00
|
|
|
test_scripts =
|
2014-02-12 02:32:32 +08:00
|
|
|
unit_tests =
|
2012-12-12 05:28:15 +08:00
|
|
|
|
2009-08-23 15:40:59 +08:00
|
|
|
include Makefile.tools
|
2012-12-05 06:38:48 +08:00
|
|
|
include Makefile.obexd
|
2013-10-29 00:37:06 +08:00
|
|
|
include android/Makefile.am
|
2009-08-23 15:40:59 +08:00
|
|
|
|
2012-12-19 22:03:45 +08:00
|
|
|
if HID2HCI
|
2011-04-29 06:32:25 +08:00
|
|
|
rulesdir = @UDEV_DIR@/rules.d
|
2009-08-23 15:40:59 +08:00
|
|
|
|
2012-12-19 22:03:45 +08:00
|
|
|
rules_DATA = tools/97-hid2hci.rules
|
2009-08-23 15:40:59 +08:00
|
|
|
|
2012-12-19 22:03:45 +08:00
|
|
|
CLEANFILES += $(rules_DATA)
|
2009-08-23 15:40:59 +08:00
|
|
|
endif
|
|
|
|
|
2012-12-11 05:56:05 +08:00
|
|
|
EXTRA_DIST += tools/hid2hci.rules
|
2009-08-23 15:40:59 +08:00
|
|
|
|
2012-12-12 05:28:15 +08:00
|
|
|
if TEST
|
|
|
|
testdir = $(pkglibdir)/test
|
|
|
|
test_SCRIPTS = $(test_scripts)
|
|
|
|
endif
|
|
|
|
|
|
|
|
EXTRA_DIST += $(test_scripts)
|
|
|
|
|
2014-01-12 13:15:41 +08:00
|
|
|
EXTRA_DIST += doc/assigned-numbers.txt doc/supported-features.txt \
|
|
|
|
doc/test-coverage.txt doc/settings-storage.txt
|
2012-12-21 16:41:43 +08:00
|
|
|
|
|
|
|
EXTRA_DIST += doc/mgmt-api.txt \
|
|
|
|
doc/adapter-api.txt doc/device-api.txt \
|
|
|
|
doc/agent-api.txt doc/profile-api.txt \
|
|
|
|
doc/network-api.txt doc/media-api.txt \
|
|
|
|
doc/health-api.txt doc/sap-api.txt
|
|
|
|
|
|
|
|
EXTRA_DIST += doc/alert-api.txt \
|
2012-12-20 07:18:30 +08:00
|
|
|
doc/proximity-api.txt doc/heartrate-api.txt \
|
2012-12-21 16:38:43 +08:00
|
|
|
doc/thermometer-api.txt doc/cyclingspeed-api.txt
|
2009-08-23 15:40:59 +08:00
|
|
|
|
2012-12-22 00:59:04 +08:00
|
|
|
EXTRA_DIST += doc/obex-api.txt doc/obex-agent-api.txt
|
|
|
|
|
2012-12-22 04:15:31 +08:00
|
|
|
EXTRA_DIST += tools/magic.btsnoop
|
|
|
|
|
2012-05-29 14:19:30 +08:00
|
|
|
AM_CFLAGS += @DBUS_CFLAGS@ @GLIB_CFLAGS@
|
2009-08-23 15:40:59 +08:00
|
|
|
|
2014-01-26 12:11:46 +08:00
|
|
|
AM_CPPFLAGS = -I$(builddir)/lib -I$(srcdir)/gdbus
|
2009-08-23 15:40:59 +08:00
|
|
|
|
2012-11-13 05:03:41 +08:00
|
|
|
|
2014-05-15 14:15:32 +08:00
|
|
|
unit_tests += unit/test-eir unit/test-uuid unit/test-textfile unit/test-crc \
|
|
|
|
unit/test-crypto
|
2011-10-18 19:33:32 +08:00
|
|
|
|
2014-01-21 20:12:00 +08:00
|
|
|
unit_test_eir_SOURCES = unit/test-eir.c src/eir.c src/uuid-helper.c
|
2013-07-03 20:29:19 +08:00
|
|
|
unit_test_eir_LDADD = lib/libbluetooth-internal.la @GLIB_LIBS@
|
2011-10-18 19:33:32 +08:00
|
|
|
|
2012-12-09 19:46:11 +08:00
|
|
|
unit_test_uuid_SOURCES = unit/test-uuid.c
|
2013-07-03 20:29:19 +08:00
|
|
|
unit_test_uuid_LDADD = lib/libbluetooth-internal.la @GLIB_LIBS@
|
2012-12-09 19:46:11 +08:00
|
|
|
|
2012-12-09 20:15:27 +08:00
|
|
|
unit_test_textfile_SOURCES = unit/test-textfile.c src/textfile.h src/textfile.c
|
|
|
|
unit_test_textfile_LDADD = @GLIB_LIBS@
|
|
|
|
|
2013-08-22 14:06:02 +08:00
|
|
|
unit_test_crc_SOURCES = unit/test-crc.c monitor/crc.h monitor/crc.c
|
|
|
|
unit_test_crc_LDADD = @GLIB_LIBS@
|
|
|
|
|
2014-05-15 14:15:32 +08:00
|
|
|
unit_test_crypto_SOURCES = unit/test-crypto.c \
|
|
|
|
src/shared/crypto.h src/shared/crypto.c
|
|
|
|
unit_test_crypto_LDADD = @GLIB_LIBS@
|
|
|
|
|
2014-01-26 03:30:52 +08:00
|
|
|
unit_tests += unit/test-ringbuf unit/test-queue
|
2014-01-26 03:08:25 +08:00
|
|
|
|
|
|
|
unit_test_ringbuf_SOURCES = unit/test-ringbuf.c \
|
|
|
|
src/shared/util.h src/shared/util.c \
|
|
|
|
src/shared/ringbuf.h src/shared/ringbuf.c
|
|
|
|
unit_test_ringbuf_LDADD = @GLIB_LIBS@
|
|
|
|
|
2014-01-26 03:30:52 +08:00
|
|
|
unit_test_queue_SOURCES = unit/test-queue.c \
|
|
|
|
src/shared/util.h src/shared/util.c \
|
|
|
|
src/shared/queue.h src/shared/queue.c
|
|
|
|
unit_test_queue_LDADD = @GLIB_LIBS@
|
|
|
|
|
2013-01-04 07:51:30 +08:00
|
|
|
unit_tests += unit/test-mgmt
|
|
|
|
|
|
|
|
unit_test_mgmt_SOURCES = unit/test-mgmt.c \
|
2014-01-09 11:39:09 +08:00
|
|
|
src/shared/io.h src/shared/io-glib.c \
|
2014-01-09 07:01:04 +08:00
|
|
|
src/shared/queue.h src/shared/queue.c \
|
2013-01-04 07:51:30 +08:00
|
|
|
src/shared/util.h src/shared/util.c \
|
|
|
|
src/shared/mgmt.h src/shared/mgmt.c
|
|
|
|
unit_test_mgmt_LDADD = @GLIB_LIBS@
|
|
|
|
|
2014-05-16 17:39:29 +08:00
|
|
|
unit_tests += unit/test-uhid
|
|
|
|
|
|
|
|
unit_test_uhid_SOURCES = unit/test-uhid.c \
|
|
|
|
src/shared/uhid.h src/shared/uhid.c \
|
|
|
|
src/shared/io.h src/shared/io-glib.c \
|
2014-05-21 22:41:27 +08:00
|
|
|
src/shared/util.h src/shared/util.c \
|
|
|
|
src/shared/queue.h src/shared/queue.c
|
2014-05-16 17:39:29 +08:00
|
|
|
unit_test_uhid_LDADD = @GLIB_LIBS@
|
|
|
|
|
2013-01-04 13:26:54 +08:00
|
|
|
unit_tests += unit/test-sdp
|
|
|
|
|
|
|
|
unit_test_sdp_SOURCES = unit/test-sdp.c \
|
|
|
|
src/shared/util.h src/shared/util.c \
|
|
|
|
src/sdpd.h src/sdpd-database.c \
|
2014-03-14 17:59:26 +08:00
|
|
|
src/log.h src/log.c \
|
2013-01-04 13:26:54 +08:00
|
|
|
src/sdpd-service.c src/sdpd-request.c
|
2013-07-03 20:29:19 +08:00
|
|
|
unit_test_sdp_LDADD = lib/libbluetooth-internal.la @GLIB_LIBS@
|
2013-01-04 13:26:54 +08:00
|
|
|
|
2013-11-20 23:42:48 +08:00
|
|
|
unit_tests += unit/test-avdtp
|
|
|
|
|
|
|
|
unit_test_avdtp_SOURCES = unit/test-avdtp.c \
|
|
|
|
src/shared/util.h src/shared/util.c \
|
|
|
|
src/log.h src/log.c \
|
|
|
|
android/avdtp.c android/avdtp.h
|
|
|
|
unit_test_avdtp_LDADD = @GLIB_LIBS@
|
|
|
|
|
2014-01-29 20:41:12 +08:00
|
|
|
unit_tests += unit/test-avctp
|
|
|
|
|
|
|
|
unit_test_avctp_SOURCES = unit/test-avctp.c \
|
|
|
|
src/shared/util.h src/shared/util.c \
|
|
|
|
src/log.h src/log.c \
|
|
|
|
android/avctp.c android/avctp.h
|
|
|
|
unit_test_avctp_LDADD = @GLIB_LIBS@
|
|
|
|
|
2014-02-21 23:23:45 +08:00
|
|
|
unit_tests += unit/test-avrcp
|
|
|
|
|
|
|
|
unit_test_avrcp_SOURCES = unit/test-avrcp.c \
|
|
|
|
src/shared/util.h src/shared/util.c \
|
|
|
|
src/log.h src/log.c \
|
|
|
|
android/avctp.c android/avctp.h \
|
|
|
|
android/avrcp-lib.c android/avrcp-lib.h
|
|
|
|
unit_test_avrcp_LDADD = @GLIB_LIBS@ lib/libbluetooth-internal.la
|
|
|
|
|
2014-03-06 03:22:47 +08:00
|
|
|
unit_tests += unit/test-hfp
|
|
|
|
|
|
|
|
unit_test_hfp_SOURCES = unit/test-hfp.c \
|
|
|
|
src/shared/io.h src/shared/io-glib.c \
|
|
|
|
src/shared/queue.h src/shared/queue.c \
|
|
|
|
src/shared/util.h src/shared/util.c \
|
|
|
|
src/shared/mgmt.h src/shared/mgmt.c \
|
|
|
|
src/shared/ringbuf.h src/shared/ringbuf.c \
|
|
|
|
src/shared/hfp.h src/shared/hfp.c
|
|
|
|
|
|
|
|
unit_test_hfp_LDADD = @GLIB_LIBS@
|
|
|
|
|
2012-12-17 06:03:16 +08:00
|
|
|
unit_tests += unit/test-gdbus-client
|
|
|
|
|
2013-07-03 20:29:20 +08:00
|
|
|
unit_test_gdbus_client_SOURCES = unit/test-gdbus-client.c
|
|
|
|
unit_test_gdbus_client_LDADD = gdbus/libgdbus-internal.la \
|
|
|
|
@GLIB_LIBS@ @DBUS_LIBS@
|
2012-12-17 06:03:16 +08:00
|
|
|
|
2012-12-01 22:08:06 +08:00
|
|
|
unit_tests += unit/test-gobex-header unit/test-gobex-packet unit/test-gobex \
|
|
|
|
unit/test-gobex-transfer unit/test-gobex-apparam
|
|
|
|
|
|
|
|
unit_test_gobex_SOURCES = $(gobex_sources) unit/util.c unit/util.h \
|
|
|
|
unit/test-gobex.c
|
|
|
|
unit_test_gobex_LDADD = @GLIB_LIBS@
|
|
|
|
|
|
|
|
unit_test_gobex_packet_SOURCES = $(gobex_sources) unit/util.c unit/util.h \
|
|
|
|
unit/test-gobex-packet.c
|
|
|
|
unit_test_gobex_packet_LDADD = @GLIB_LIBS@
|
|
|
|
|
|
|
|
unit_test_gobex_header_SOURCES = $(gobex_sources) unit/util.c unit/util.h \
|
|
|
|
unit/test-gobex-header.c
|
|
|
|
unit_test_gobex_header_LDADD = @GLIB_LIBS@
|
|
|
|
|
|
|
|
unit_test_gobex_transfer_SOURCES = $(gobex_sources) unit/util.c unit/util.h \
|
|
|
|
unit/test-gobex-transfer.c
|
|
|
|
unit_test_gobex_transfer_LDADD = @GLIB_LIBS@
|
|
|
|
|
|
|
|
unit_test_gobex_apparam_SOURCES = $(gobex_sources) unit/util.c unit/util.h \
|
|
|
|
unit/test-gobex-apparam.c
|
|
|
|
unit_test_gobex_apparam_LDADD = @GLIB_LIBS@
|
|
|
|
|
2013-02-15 23:07:44 +08:00
|
|
|
unit_tests += unit/test-lib
|
|
|
|
|
|
|
|
unit_test_lib_SOURCES = unit/test-lib.c
|
2013-07-03 20:29:19 +08:00
|
|
|
unit_test_lib_LDADD = lib/libbluetooth-internal.la @GLIB_LIBS@
|
2013-02-15 23:07:44 +08:00
|
|
|
|
2012-12-01 22:08:06 +08:00
|
|
|
noinst_PROGRAMS += $(unit_tests)
|
|
|
|
|
2011-10-18 19:33:32 +08:00
|
|
|
TESTS = $(unit_tests)
|
|
|
|
|
2004-07-28 15:09:49 +08:00
|
|
|
pkgconfigdir = $(libdir)/pkgconfig
|
|
|
|
|
2012-12-11 05:34:47 +08:00
|
|
|
if LIBRARY
|
2012-12-20 01:24:43 +08:00
|
|
|
pkgconfig_DATA = lib/bluez.pc
|
2012-12-11 05:34:47 +08:00
|
|
|
endif
|
2004-07-28 15:09:49 +08:00
|
|
|
|
2013-01-10 12:32:40 +08:00
|
|
|
DISTCHECK_CONFIGURE_FLAGS = --disable-datafiles --enable-library \
|
2014-01-24 01:40:00 +08:00
|
|
|
--disable-systemd --disable-udev
|
2009-07-07 01:29:57 +08:00
|
|
|
|
2007-12-09 05:46:12 +08:00
|
|
|
DISTCLEANFILES = $(pkgconfig_DATA)
|
2004-07-21 21:30:34 +08:00
|
|
|
|
|
|
|
MAINTAINERCLEANFILES = Makefile.in \
|
|
|
|
aclocal.m4 configure config.h.in config.sub config.guess \
|
2013-09-03 02:47:27 +08:00
|
|
|
ltmain.sh depcomp compile missing install-sh mkinstalldirs test-driver
|
2009-08-23 15:40:59 +08:00
|
|
|
|
2012-12-09 18:19:53 +08:00
|
|
|
SED_PROCESS = $(AM_V_GEN)$(MKDIR_P) $(dir $@) && \
|
|
|
|
$(SED) -e 's,@libexecdir\@,$(libexecdir),g' \
|
|
|
|
< $< > $@
|
|
|
|
|
|
|
|
%.service: %.service.in Makefile
|
|
|
|
$(SED_PROCESS)
|
|
|
|
|
2009-08-23 15:40:59 +08:00
|
|
|
src/builtin.h: src/genbuiltin $(builtin_sources)
|
|
|
|
$(AM_V_GEN)$(srcdir)/src/genbuiltin $(builtin_modules) > $@
|
|
|
|
|
2012-12-11 05:56:05 +08:00
|
|
|
tools/%.rules:
|
2012-12-22 00:25:03 +08:00
|
|
|
$(AM_V_GEN)cp $(srcdir)/$(subst 97-,,$@) $@
|
2009-08-23 15:40:59 +08:00
|
|
|
|
2009-08-25 01:57:50 +08:00
|
|
|
$(lib_libbluetooth_la_OBJECTS): $(local_headers)
|
|
|
|
|
2009-08-23 15:40:59 +08:00
|
|
|
lib/bluetooth/%.h: lib/%.h
|
2009-08-25 03:51:50 +08:00
|
|
|
$(AM_V_at)$(MKDIR_P) lib/bluetooth
|
2013-11-28 19:10:55 +08:00
|
|
|
$(AM_V_GEN)$(LN_S) -f "$(abs_top_builddir)"/$< $@
|
2009-08-23 15:40:59 +08:00
|
|
|
|
2010-09-03 19:20:08 +08:00
|
|
|
clean-local:
|
|
|
|
$(RM) -r lib/bluetooth
|