summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMarcel Holtmann <marcel@holtmann.org>2006-11-17 22:59:58 +0000
committerMarcel Holtmann <marcel@holtmann.org>2006-11-17 22:59:58 +0000
commit1987c3287f1026ce58b1f9a342dba05932e22777 (patch)
tree2d5701f455298cded99bea669afb5c614ee4865a
parent1e33e3190f1545cf23c03dd2a13e5cf439add265 (diff)
Create a HCI library for easier linking
-rw-r--r--hcid/Makefile.am26
1 files changed, 15 insertions, 11 deletions
diff --git a/hcid/Makefile.am b/hcid/Makefile.am
index 89fdc8c2..64f641ce 100644
--- a/hcid/Makefile.am
+++ b/hcid/Makefile.am
@@ -13,21 +13,25 @@ dbusdir = $(sysconfdir)/dbus-1/system.d
dbus_DATA = bluetooth.conf
endif
+noinst_LIBRARIES = libhciserver.a
+
+libhciserver_a_SOURCES = hcid.h security.c device.c storage.c \
+ sdp.c sdp.h parser.h parser.y lexer.l kword.c kword.h \
+ dbus-hci.h dbus-hci.c dbus-common.c dbus-common.h \
+ dbus-error.c dbus-error.h dbus-manager.c dbus-manager.h \
+ dbus-adapter.c dbus-adapter.h dbus-device.c dbus-device.h \
+ dbus-service.c dbus-service.h dbus-security.c dbus-security.h \
+ dbus-sdp.c dbus-sdp.h dbus-rfcomm.c dbus-rfcomm.h \
+ dbus-test.c dbus-test.h
+
sbin_PROGRAMS = hcid
noinst_PROGRAMS = passkey-agent service-agent auth-agent
-hcid_SOURCES = main.c security.c device.c storage.c \
- sdp.c sdp.h hcid.h parser.h parser.y \
- lexer.l kword.c kword.h \
- dbus-hci.h dbus-hci.c dbus-common.c dbus-common.h \
- dbus-error.c dbus-error.h dbus-manager.c dbus-manager.h \
- dbus-adapter.c dbus-adapter.h \
- dbus-device.c dbus-device.h dbus-service.c dbus-service.h \
- dbus-security.c dbus-security.h dbus-test.c dbus-test.h \
- dbus-sdp.c dbus-sdp.h dbus-rfcomm.c dbus-rfcomm.h
-
-hcid_LDADD = @DBUS_LIBS@ @BLUEZ_LIBS@ $(top_builddir)/common/libhelper.a
+hcid_SOURCES = main.c
+
+hcid_LDADD = @DBUS_LIBS@ @BLUEZ_LIBS@ \
+ libhciserver.a $(top_builddir)/common/libhelper.a
if EXPAT
hcid_LDADD += -lexpat