1 2 if CONFIGFILES 3 dbusdir = $(sysconfdir)/dbus-1/system.d 4 5 dbus_DATA = bluetooth.conf 6 7 confdir = $(sysconfdir)/bluetooth 8 9 conf_DATA = main.conf 10 11 statedir = $(localstatedir)/lib/bluetooth 12 13 state_DATA = 14 endif 15 16 sbin_PROGRAMS = bluetoothd 17 18 bluetoothd_SOURCES = main.c security.c hcid.h sdpd.h \ 19 sdpd-server.c sdpd-request.c sdpd-service.c sdpd-database.c \ 20 plugin.h plugin.c storage.h storage.c agent.h agent.c rfkill.c \ 21 error.h error.c manager.h manager.c adapter.h adapter.c \ 22 device.h device.c dbus-common.c dbus-common.h dbus-hci.h dbus-hci.c 23 24 bluetoothd_LDADD = $(top_builddir)/common/libhelper.a \ 25 $(top_builddir)/plugins/libbuiltin.la \ 26 @GDBUS_LIBS@ @GLIB_LIBS@ @DBUS_LIBS@ @BLUEZ_LIBS@ -ldl 27 28 bluetoothd_LDFLAGS = -Wl,--export-dynamic 29 30 if MAINTAINER_MODE 31 plugindir = $(abs_top_srcdir)/plugins 32 else 33 plugindir = $(libdir)/bluetooth/plugins 34 endif 35 36 AM_CFLAGS = @BLUEZ_CFLAGS@ @DBUS_CFLAGS@ @GLIB_CFLAGS@ @GDBUS_CFLAGS@ \ 37 -DPLUGINDIR=\""$(plugindir)"\" 38 39 INCLUDES = -I$(top_srcdir)/common -I$(top_builddir)/plugins 40 41 if MANPAGES 42 man_MANS = bluetoothd.8 43 endif 44 45 EXTRA_DIST = bluetooth.conf bluetoothd.8 main.conf 46 47 MAINTAINERCLEANFILES = Makefile.in 48