summaryrefslogtreecommitdiff
path: root/Makefile.am
blob: 6b2e459e05a9ca92eefa1ba28ba00d60d58d7522 (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
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94

AM_MAKEFLAGS = --no-print-directory

lib_LTLIBRARIES =

noinst_LIBRARIES =

noinst_LTLIBRARIES =

bin_PROGRAMS =

noinst_PROGRAMS =

dist_man_MANS =

dist_noinst_MANS =

CLEANFILES =

EXTRA_DIST =

libexecdir = @libexecdir@/headset

libexec_PROGRAMS =

includedir = @includedir@/headset

include_HEADERS =

AM_CFLAGS = $(WARNING_CFLAGS) $(MISC_CFLAGS)
AM_LDFLAGS = $(MISC_LDFLAGS)

if DATAFILES
dbusdir = @DBUS_CONFDIR@/dbus-1/system.d
dbus_DATA = src/headset.conf

confdir = $(sysconfdir)/headset
conf_DATA =

statedir = $(localstatedir)/lib/headset
state_DATA =
endif

if SYSTEMD
systemdsystemunitdir = @SYSTEMD_SYSTEMUNITDIR@
systemdsystemunit_DATA = src/headset.service

dbussystembusdir = @DBUS_SYSTEMBUSDIR@
dbussystembus_DATA = src/org.freedesktop.Headset.service
endif

EXTRA_DIST += src/headset.service.in src/org.bluez.service

plugindir = $(libdir)/headset/plugins

if MAINTAINER_MODE
build_plugindir = $(abs_top_srcdir)/plugins/.libs
else
build_plugindir = $(plugindir)
endif


plugin_LTLIBRARIES =

libexec_PROGRAMS += src/headsetd

src_headsetd_SOURCES = src/headsetd.c src/hsd-profile.c src/hsd-manager.c src/hsd-headset.c
src_headsetd_LDADD = @GLIB_LIBS@ @GIO_LIBS@ @DBUS_LIBS@ -ldl -lrt
src_headsetd_LDFLAGS = $(AM_LDFLAGS) -Wl,--export-dynamic

src_headsetd_DEPENDENCIES = 

src_headsetd_CFLAGS = $(AM_CFLAGS) -DPLUGINDIR=\""$(build_plugindir)"\"
src_headsetd_SHORTNAME = headsetd

CLEANFILES += src/headset.service

EXTRA_DIST += src/headset.conf 

EXTRA_DIST += doc/headset-api.txt

AM_CFLAGS += @DBUS_CFLAGS@ @GLIB_CFLAGS@ @GIO_CFLAGS@

EXTRA_DIST += $(manual_pages:.1=.txt)

DISTCHECK_CONFIGURE_FLAGS = --disable-datafiles --enable-library \
					--enable-manpages \
					--disable-systemd --disable-udev

DISTCLEANFILES = $(pkgconfig_DATA) $(manual_pages)

MAINTAINERCLEANFILES = Makefile.in \
	aclocal.m4 configure config.h.in config.sub config.guess \
	ltmain.sh depcomp compile missing install-sh mkinstalldirs test-driver