summaryrefslogtreecommitdiffstats
path: root/hcid/Makefile.am
blob: ac56726ee19563c92aa9db44a0eadf620787e5c2 (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
#
#  $Id$
#

confdir = $(sysconfdir)/bluetooth

conf_DATA = hcid.conf

sbin_PROGRAMS = hcid

if DBUS
dbus_hcid_sources = dbus.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 hcid.h lib.c lib.h parser.h parser.y lexer.l kword.h kword.c glib-ectomy.h glib-ectomy.c $(dbus_hcid_sources)

LIBS = $(dbus_hcid_libs) @BLUEZ_LIBS@

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

man_MANS = hcid.8 hcid.conf.5

AM_YFLAGS = -d

CLEANFILES = lexer.c parser.c parser.h

EXTRA_DIST = $(man_MANS) $(conf_DATA) dbus.c

MAINTAINERCLEANFILES = Makefile.in

pinfile = $(confdir)/pin

install-data-local:
	[ -f $(DESTDIR)$(pinfile) ] || \
		echo "BlueZ" > $(DESTDIR)$(pinfile); \
		chmod 600 $(DESTDIR)$(pinfile)

uninstall-local:
	@rm -f $(DESTDIR)$(pinfile)