Add option for selecting Bluetooth support
[connman] / plugins / Makefile.am
1
2 plugindir = $(libdir)/connman/plugins
3
4 plugin_LTLIBRARIES = ipv4.la
5
6 if LOOPBACK
7 plugin_LTLIBRARIES += loopback.la
8
9 loopback_la_SOURCES = loopback.c
10 endif
11
12 if ETHERNET
13 plugin_LTLIBRARIES += ethernet.la
14
15 ethernet_la_SOURCES = ethernet.c inet.h inet.c
16 endif
17
18 if WIFI
19 plugin_LTLIBRARIES += wifi.la
20
21 wifi_la_SOURCES = wifi.c inet.h inet.c supplicant.h supplicant.c
22 wifi_la_LIBADD = @GDBUS_LIBS@
23 endif
24
25 if BLUETOOTH
26 plugin_LTLIBRARIES += bluetooth.la
27
28 bluetooth_la_SOURCES = bluetooth.c inet.h inet.c
29 bluetooth_la_LIBADD = @GDBUS_LIBS@
30 endif
31
32 if NOVATEL
33 plugin_LTLIBRARIES += novatel.la
34
35 novatel_la_SOURCES = novatel.c modem.h modem.c
36 endif
37
38 if HUAWEI
39 plugin_LTLIBRARIES += huawei.la
40
41 huawei_la_SOURCES = huawei.c modem.h modem.c
42 endif
43
44 if HSO
45 plugin_LTLIBRARIES += hso.la
46
47 hso_la_SOURCES = hso.c modem.h modem.c
48 endif
49
50 ipv4_la_SOURCES = ipv4.c inet.h inet.c
51
52 if UDHCP
53 plugin_LTLIBRARIES += udhcp.la
54
55 udhcp_la_SOURCES = udhcp.c inet.h inet.c task.h task.c
56 udhcp_la_CFLAGS = @GLIB_CFLAGS@ @GDBUS_CFLAGS@ -DUDHCPC=\"@UDHCPC@\" \
57                 -DSTATEDIR=\""$(statedir)"\" -DSCRIPTDIR=\""$(scriptdir)"\"
58 endif
59
60 if DHCLIENT
61 plugin_LTLIBRARIES += dhclient.la
62
63 dhclient_la_SOURCES = dhclient.c inet.h inet.c
64 dhclient_la_CFLAGS = @GLIB_CFLAGS@ @GDBUS_CFLAGS@ -DDHCLIENT=\"@DHCLIENT@\" \
65                 -DSTATEDIR=\""$(statedir)"\" -DSCRIPTDIR=\""$(scriptdir)"\"
66 endif
67
68 if PPPD
69 plugin_LTLIBRARIES += pppd.la
70
71 pppd_la_SOURCES = pppd.c
72 pppd_la_CFLAGS = @GLIB_CFLAGS@ -DPPPD=\"@PPPD@\"
73 endif
74
75 if RESOLVCONF
76 plugin_LTLIBRARIES += resolvconf.la
77
78 resolvconf_la_SOURCES = resolvconf.c
79 resolvconf_la_CFLAGS = @GLIB_CFLAGS@ -DRESOLVCONF=\"@RESOLVCONF@\"
80 endif
81
82 if DNSPROXY
83 plugin_LTLIBRARIES += dnsproxy.la
84
85 dnsproxy_la_SOURCES = dnsproxy.c
86 endif
87
88 if POLKIT
89 plugin_LTLIBRARIES += polkit.la
90
91 polkit_la_SOURCES = polkit.c
92 polkit_la_LIBADD = @POLKIT_LIBS@ @GLIB_LIBS@
93 polkit_la_CFLAGS = @GLIB_CFLAGS@ @POLKIT_CFLAGS@
94
95 policydir = $(datadir)/PolicyKit/policy
96
97 policy_DATA = connman.policy
98 endif
99
100 if FAKE
101 plugin_LTLIBRARIES += fake.la
102
103 fake_la_SOURCES = fake.c
104 endif
105
106 AM_LDFLAGS = -no-undefined -module -avoid-version \
107                                 -export-symbols-regex connman_plugin_desc
108
109 statedir = $(localstatedir)/run/connman
110
111 if MAINTAINER_MODE
112 scriptdir = $(abs_top_srcdir)/scripts
113 else
114 scriptdir = $(libdir)/connman/scripts
115 endif
116
117 AM_CFLAGS = @GLIB_CFLAGS@ @GDBUS_CFLAGS@
118
119 INCLUDES = -I$(top_builddir)/include
120
121 EXTRA_DIST = connman.policy
122
123 MAINTAINERCLEANFILES = Makefile.in