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