summaryrefslogtreecommitdiffstats
path: root/src/Makefile.am
blob: af525773ad11fd4ffdcbcc800a2e4aa84824d9a9 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46

if CONFIGFILES
dbusdir = $(sysconfdir)/dbus-1/system.d

dbus_DATA = bluetooth.conf

confdir = $(sysconfdir)/bluetooth

conf_DATA = main.conf

statedir = $(localstatedir)/lib/bluetooth

state_DATA =
endif

sbin_PROGRAMS = bluetoothd

bluetoothd_SOURCES = main.c security.c hcid.h sdpd.h \
	sdpd-server.c sdpd-request.c sdpd-service.c sdpd-database.c \
	plugin.h plugin.c storage.h storage.c agent.h agent.c \
	error.h error.c manager.h manager.c adapter.h adapter.c \
	device.h device.c dbus-common.c dbus-common.h dbus-hci.h dbus-hci.c

bluetoothd_LDADD = $(top_builddir)/common/libhelper.a \
			@GDBUS_LIBS@ @GLIB_LIBS@ @DBUS_LIBS@ @BLUEZ_LIBS@ -ldl

bluetoothd_LDFLAGS = -Wl,--export-dynamic

if MAINTAINER_MODE
plugindir = $(abs_top_srcdir)/plugins
else
plugindir = $(libdir)/bluetooth/plugins
endif

AM_CFLAGS = @BLUEZ_CFLAGS@ @DBUS_CFLAGS@ @GLIB_CFLAGS@ @GDBUS_CFLAGS@ \
						-DPLUGINDIR=\""$(plugindir)"\"

INCLUDES = -I$(top_srcdir)/common

if MANPAGES
man_MANS = bluetoothd.8
endif

EXTRA_DIST = bluetooth.conf bluetoothd.8 main.conf

MAINTAINERCLEANFILES = Makefile.in