about summary refs log tree commit diff
path: root/src/devices/bluetooth/Makefile.am
blob: 2ff9a572445f2d2c609f72ae7405537948f714f4 (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
include $(GLIB_MAKEFILE)

@GNOME_CODE_COVERAGE_RULES@

AM_CPPFLAGS = \
	-I${top_srcdir}/src \
	-I${top_builddir}/src \
	-I${top_srcdir}/src/devices \
	-I${top_srcdir}/src/settings \
	-I${top_srcdir}/src/platform \
	-I${top_srcdir}/src/devices/wwan \
	-I${top_builddir}/introspection \
	-I${top_srcdir}/shared \
	-I$(top_builddir)/shared \
	-I${top_builddir}/libnm-core \
	-I${top_srcdir}/libnm-core \
	-DG_LOG_DOMAIN=\""NetworkManager-bluetooth"\" \
	-DNETWORKMANAGER_COMPILATION=NM_NETWORKMANAGER_COMPILATION_INSIDE_DAEMON \
	$(GLIB_CFLAGS)

GLIB_GENERATED = nm-bt-enum-types.h nm-bt-enum-types.c
GLIB_MKENUMS_H_FLAGS = --identifier-prefix NM
GLIB_MKENUMS_C_FLAGS = --identifier-prefix NM
nm_bt_enum_types_sources = $(srcdir)/nm-bt-error.h

BUILT_SOURCES = $(GLIB_GENERATED)

pkglib_LTLIBRARIES = libnm-device-plugin-bluetooth.la

SYMBOL_VIS_FILE=$(srcdir)/exports.ver

libnm_device_plugin_bluetooth_la_SOURCES = \
	nm-bluez-manager.c \
	nm-bluez-manager.h \
	nm-bluez-common.h \
	nm-bluez-device.c \
	nm-bluez-device.h \
	nm-bluez4-adapter.c \
	nm-bluez4-adapter.h \
	nm-bluez4-manager.c \
	nm-bluez4-manager.h \
	nm-bluez5-manager.c \
	nm-bluez5-manager.h \
	nm-bt-error.h \
	nm-bt-error.c \
	\
	nm-device-bt.c \
	nm-device-bt.h \
	\
	$(BUILT_SOURCES)

libnm_device_plugin_bluetooth_la_LDFLAGS = \
	-module -avoid-version \
	-Wl,--version-script=$(SYMBOL_VIS_FILE)

libnm_device_plugin_bluetooth_la_LIBADD = \
	$(top_builddir)/introspection/libnmdbus.la \
	$(top_builddir)/src/devices/wwan/libnm-wwan.la \
	$(GLIB_LIBS) \
	$(GUDEV_LIBS)

if WITH_BLUEZ5_DUN
AM_CPPFLAGS += $(BLUEZ5_CFLAGS)

libnm_device_plugin_bluetooth_la_SOURCES += \
	nm-bluez5-dun.c \
	nm-bluez5-dun.h

libnm_device_plugin_bluetooth_la_LIBADD += $(BLUEZ5_LIBS)
endif

CLEANFILES = $(BUILT_SOURCES)
EXTRA_DIST = $(SYMBOL_VIS_FILE)

if ENABLE_TESTS

check-local:
	$(top_srcdir)/tools/check-exports.sh $(builddir)/.libs/libnm-device-plugin-bluetooth.so $(SYMBOL_VIS_FILE)

endif