summaryrefslogtreecommitdiffstats
path: root/hcid/Makefile.am
blob: 7d1f330ac506e5cf5461c7f4e8c12248fc70fcc2 (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
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64

confdir = $(sysconfdir)/bluetooth

conf_DATA = hcid.conf

statedir = $(localstatedir)/lib/bluetooth

state_DATA =

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

dbus_DATA = bluez-hcid.conf
endif

sbin_PROGRAMS = hcid

noinst_SCRIPTS = dbus-test

if DBUS
dbus_hcid_sources = dbus.h dbus.c dbus-common.c \
			dbus-error.c dbus-manager.c dbus-adapter.c \
			dbus-device.c dbus-service.c dbus-security.c \
			dbus-sdp.c dbus-rfcomm.c
dbus_hcid_libs    = @DBUS_LIBS@
dbus_hcid_cflags  = -DENABLE_DBUS -DDBUS_API_SUBJECT_TO_CHANGE
else
dbus_hcid_sources =
dbus_hcid_libs    =
dbus_hcid_cflags  =
endif

hcid_SOURCES = main.c security.c device.c logging.c storage.c \
		sdp.c sdp.h lib.c lib.h hcid.h parser.h parser.y \
		lexer.l kword.c kword.h $(dbus_hcid_sources) \
		$(top_builddir)/tools/oui.h $(top_builddir)/tools/oui.c

hcid_LDADD = $(dbus_hcid_libs) @BLUEZ_LIBS@ \
		$(top_builddir)/common/libglib-ectomy.a \
		$(top_builddir)/common/libtextfile.a \
		$(top_builddir)/common/liblist.a

if DBUS
noinst_PROGRAMS = passkey-agent

passkey_agent_SOURCES = passkey-agent.c

passkey_agent_LDADD = @DBUS_LIBS@
endif

AM_CFLAGS = @BLUEZ_CFLAGS@ @DBUS_CFLAGS@ $(dbus_hcid_cflags)

INCLUDES = -I$(top_srcdir)/common -I$(top_srcdir)/tools

man_MANS = hcid.8 hcid.conf.5

AM_YFLAGS = -d

CLEANFILES = lexer.c parser.c parser.h

EXTRA_DIST = $(man_MANS) $(conf_DATA) bluez-hcid.conf dbus-test \
		dbus.h dbus.c dbus-error.c dbus-manager.c dbus-device.c

MAINTAINERCLEANFILES = Makefile.in