Add configure options to select plugins
[connman] / plugins / Makefile.am
1
2 plugindir = $(libdir)/connman/plugins
3
4 plugin_LTLIBRARIES = ethernet.la bluetooth.la \
5                                 ipv4.la udhcp.la dhclient.la \
6                                 dnsproxy.la resolvconf.la resolvfile.la
7
8 if LOOPBACK
9 plugin_LTLIBRARIES += loopback.la
10
11 loopback_la_SOURCES = loopback.c
12 endif
13
14 ethernet_la_SOURCES = ethernet.c inet.h inet.c
15
16 if WIFI
17 plugin_LTLIBRARIES += wifi.la
18
19 wifi_la_SOURCES = wifi.c inet.h inet.c supplicant.h supplicant.c
20 wifi_la_LIBADD = @GDBUS_LIBS@
21 endif
22
23 bluetooth_la_SOURCES = bluetooth.c inet.h inet.c
24 bluetooth_la_LIBADD = @GDBUS_LIBS@
25
26 if HSO
27 plugin_LTLIBRARIES += hso.la
28
29 hso_la_SOURCES = hso.c modem.h modem.c
30 endif
31
32 ipv4_la_SOURCES = ipv4.c inet.h inet.c
33
34 udhcp_la_SOURCES = udhcp.c inet.h inet.c task.h task.c
35 udhcp_la_CFLAGS = @GLIB_CFLAGS@ @GDBUS_CFLAGS@ -DUDHCPC=\"@UDHCPC@\" \
36                 -DSTATEDIR=\""$(statedir)"\" -DSCRIPTDIR=\""$(scriptdir)"\"
37
38 dhclient_la_SOURCES = dhclient.c inet.h inet.c
39 dhclient_la_CFLAGS = @GLIB_CFLAGS@ @GDBUS_CFLAGS@ -DDHCLIENT=\"@DHCLIENT@\" \
40                 -DSTATEDIR=\""$(statedir)"\" -DSCRIPTDIR=\""$(scriptdir)"\"
41
42 if PPPD
43 plugin_LTLIBRARIES += pppd.la
44
45 pppd_la_SOURCES = pppd.c
46 endif
47
48 dnsproxy_la_SOURCES = dnsproxy.c
49
50 resolvconf_la_SOURCES = resolvconf.c
51 resolvconf_la_CFLAGS = @GLIB_CFLAGS@ -DRESOLVCONF=\"@RESOLVCONF@\"
52
53 resolvfile_la_SOURCES = resolvfile.c
54
55 if POLKIT
56 plugin_LTLIBRARIES += polkit.la
57
58 polkit_la_SOURCES = polkit.c
59 polkit_la_LIBADD = @POLKIT_LIBS@ @GLIB_LIBS@
60 polkit_la_CFLAGS = @GLIB_CFLAGS@ @POLKIT_CFLAGS@
61
62 policydir = $(datadir)/PolicyKit/policy
63
64 policy_DATA = connman.policy
65 endif
66
67 if FAKE
68 plugin_LTLIBRARIES += fake.la
69
70 fake_la_SOURCES = fake.c
71 endif
72
73 AM_LDFLAGS = -no-undefined -module -avoid-version \
74                                 -export-symbols-regex connman_plugin_desc
75
76 statedir = $(localstatedir)/run/connman
77
78 if MAINTAINER_MODE
79 scriptdir = $(abs_top_srcdir)/scripts
80 else
81 scriptdir = $(libdir)/connman/scripts
82 endif
83
84 AM_CFLAGS = @GLIB_CFLAGS@ @GDBUS_CFLAGS@
85
86 INCLUDES = -I$(top_builddir)/include
87
88 EXTRA_DIST = connman.policy
89
90 MAINTAINERCLEANFILES = Makefile.in