summaryrefslogtreecommitdiffstats
path: root/plugins/Makefile.am
blob: 2a3212e1957cbc9c0dabb8c8667da5ecb576be64 (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

plugindir = $(libdir)/bluetooth/plugins

if NETLINK
netlink_plugins = libnetlink.la
else
netlink_plugins =
endif

plugin_LTLIBRARIES = libstorage.la $(netlink_plugins)

libstorage_la_SOURCES = storage.c

noinst_LTLIBRARIES = libecho.la

libecho_la_SOURCES = echo.c

if NETLINK
libnetlink_la_SOURCES = netlink.c

libnetlink_la_LIBADD = @NETLINK_LIBS@
endif

AM_LDFLAGS = -module -avoid-version -no-undefined \
			-export-symbols-regex bluetooth_plugin_desc

AM_CFLAGS = @BLUEZ_CFLAGS@ @DBUS_CFLAGS@ @GLIB_CFLAGS@ @GDBUS_CFLAGS@ @NETLINK_CFLAGS@

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

MAINTAINERCLEANFILES = Makefile.in

all-local:
	@$(LN_S) -f $(top_srcdir)/plugins/.libs/libstorage.so
	@$(LN_S) -f $(top_srcdir)/plugins/.libs/libnetlink.so
	@$(LN_S) -f $(top_srcdir)/input/.libs/libinput.so
	@$(LN_S) -f $(top_srcdir)/audio/.libs/libaudio.so
	@$(LN_S) -f $(top_srcdir)/serial/.libs/libserial.so
	@$(LN_S) -f $(top_srcdir)/network/.libs/libnetwork.so

clean-local:
	@rm -f libnetwork.so
	@rm -f libserial.so
	@rm -f libaudio.so
	@rm -f libinput.so
	@rm -f libnetlink.so
	@rm -f libstorage.so