2 plugin_cflags = -fvisibility=hidden -I$(srcdir)/gdbus \
3 @DBUS_CFLAGS@ @GLIB_CFLAGS@
4 plugin_ldflags = -no-undefined -module -avoid-version
7 builtin_modules += dhcp
8 builtin_sources += plugins/dhcp.c
12 builtin_modules += loopback
13 builtin_sources += plugins/loopback.c
15 plugin_LTLIBRARIES += plugins/loopback.la
16 plugin_objects += $(plugins_loopback_la_OBJECTS)
17 plugins_loopback_la_CFLAGS = $(plugin_cflags)
18 plugins_loopback_la_LDFLAGS = $(plugin_ldflags)
24 builtin_modules += ethernet
25 builtin_sources += plugins/ethernet.c
27 plugin_LTLIBRARIES += plugins/ethernet.la
28 plugin_objects += $(plugins_ethernet_la_OBJECTS)
29 plugins_ethernet_la_CFLAGS = $(plugin_cflags)
30 plugins_ethernet_la_LDFLAGS = $(plugin_ldflags)
36 builtin_modules += wifi
37 builtin_sources += plugins/wifi.c
38 builtin_modules += wifi_legacy
39 builtin_sources += plugins/wifi-legacy.c \
40 plugins/supplicant.h plugins/supplicant.c
42 plugin_LTLIBRARIES += plugins/wifi.la
43 plugin_objects += $(plugins_wifi_la_OBJECTS)
44 plugins_wifi_la_SOURCES = plugins/wifi.c
45 plugins_wifi_la_CFLAGS = $(plugin_cflags)
46 plugins_wifi_la_LDFLAGS = $(plugin_ldflags)
48 plugin_LTLIBRARIES += plugins/wifi_legacy.la
49 plugin_objects += $(plugins_wifi_legacy_la_OBJECTS)
50 plugins_wifi_legacy_la_SOURCES = plugins/wifi-legacy.c \
51 plugins/supplicant.h plugins/supplicant.c
52 plugins_wifi_legacy_la_CFLAGS = $(plugin_cflags)
53 plugins_wifi_legacy_la_LDFLAGS = $(plugin_ldflags)
60 builtin_modules += bluetooth
61 builtin_sources += plugins/bluetooth.c
63 plugin_LTLIBRARIES += plugins/bluetooth.la
64 plugin_objects += $(plugins_bluetooth_la_OBJECTS)
65 plugins_bluetooth_la_CFLAGS = $(plugin_cflags)
66 plugins_bluetooth_la_LDFLAGS = $(plugin_ldflags)
71 if HH2SERIAL_GPS_BUILTIN
72 builtin_modules += hh2serial_gps
73 builtin_sources += plugins/hh2serial-gps.c
75 plugin_LTLIBRARIES += plugins/hh2serial-gps.la
76 plugin_objects += $(plugins_hh2serial_gps_la_OBJECTS)
77 plugins_hh2serial_gps_la_CFLAGS = $(plugin_cflags)
78 plugins_hh2serial_gps_la_LDFLAGS = $(plugin_ldflags)
84 builtin_modules += ofono
85 builtin_sources += plugins/ofono.c
87 plugin_LTLIBRARIES += plugins/ofono.la
88 plugin_objects += $(plugins_ofono_la_OBJECTS)
89 plugins_ofono_la_CFLAGS = $(plugin_cflags)
90 plugins_ofono_la_LDFLAGS = $(plugin_ldflags)
96 builtin_modules += dhclient
97 builtin_sources += plugins/dhclient.c
98 builtin_cflags += -DDHCLIENT=\"@DHCLIENT@\"
100 plugin_LTLIBRARIES += plugins/dhclient.la
101 plugin_objects += $(plugins_dhclient_la_OBJECTS)
102 plugins_dhclient_la_CFLAGS = $(plugin_cflags) -DDHCLIENT=\"@DHCLIENT@\" \
103 -DSTATEDIR=\""$(statedir)"\" \
104 -DSCRIPTDIR=\""$(build_scriptdir)"\"
105 plugins_dhclient_la_LDFLAGS = $(plugin_ldflags)
110 if OPENCONNECT_BUILTIN
111 builtin_modules += openconnect
112 builtin_sources += plugins/vpn.c plugins/openconnect.c
113 builtin_cflags += -DOPENCONNECT=\"@OPENCONNECT@\"
115 plugin_LTLIBRARIES += plugins/openconnect.la
116 plugin_objects += $(plugins_openconnect_la_OBJECTS)
117 plugins_openconnect_la_CFLAGS = $(plugin_cflags) -DOPENCONNECT=\"@OPENCONNECT@\" \
118 -DSTATEDIR=\""$(statedir)"\" \
119 -DSCRIPTDIR=\""$(build_scriptdir)"\"
120 plugins_openconnect_la_LDFLAGS = $(plugin_ldflags)
126 builtin_modules += portal
127 builtin_sources += plugins/portal.c
129 plugin_LTLIBRARIES += plugins/portal.la
130 plugin_objects += $(plugins_portal_la_OBJECTS)
131 plugins_portal_la_CFLAGS = $(plugin_cflags)
132 plugins_portal_la_LDFLAGS = $(plugin_ldflags)
138 builtin_modules += dnsproxy
139 builtin_sources += plugins/dnsproxy.c
141 plugin_LTLIBRARIES += plugins/dnsproxy.la
142 plugin_objects += $(plugins_dnsproxy_la_OBJECTS)
143 plugins_dnsproxy_la_CFLAGS = $(plugin_cflags)
144 plugins_dnsproxy_la_LDFLAGS = $(plugin_ldflags)
150 builtin_modules += pacrunner
151 builtin_sources += plugins/pacrunner.c
153 plugin_LTLIBRARIES += plugins/pacrunner.la
154 plugin_objects += $(plugins_pacrunner_la_OBJECTS)
155 plugins_pacrunner_la_CFLAGS = $(plugin_cflags)
156 plugins_pacrunner_la_LDFLAGS = $(plugin_ldflags)
162 builtin_modules += google
163 builtin_sources += plugins/google.c
165 plugin_LTLIBRARIES += plugins/google.la
166 plugin_objects += $(plugins_google_la_OBJECTS)
167 plugins_google_la_CFLAGS = $(plugin_cflags)
168 plugins_google_la_LDFLAGS = $(plugin_ldflags)
174 builtin_modules += meego
175 builtin_sources += plugins/meego.c
177 plugin_LTLIBRARIES += plugins/meego.la
178 plugin_objects += $(plugins_meego_la_OBJECTS)
179 plugins_meego_la_CFLAGS = $(plugin_cflags)
180 plugins_meego_la_LDFLAGS = $(plugin_ldflags)
186 builtin_modules += polkit
187 builtin_sources += plugins/polkit.c
189 plugin_LTLIBRARIES += plugins/polkit.la
190 plugin_objects += $(plugins_polkit_la_OBJECTS)
191 plugins_polkit_la_CFLAGS = $(plugin_cflags)
192 plugins_polkit_la_LDFLAGS = $(plugin_ldflags)
196 policydir = @POLKIT_DATADIR@
198 policy_DATA = plugins/connman.policy
203 plugin_LTLIBRARIES += plugins/iwmxsdk.la
204 plugin_objects += $(plugins_iwmxsdk_la_OBJECTS)
205 plugins_iwmxsdk_la_SOURCES = plugins/iwmx.h plugins/iwmx.c plugins/iwmxsdk.c
206 plugins_iwmxsdk_la_CFLAGS = $(plugin_cflags) @IWMXSDK_CFLAGS@
207 plugins_iwmxsdk_la_LIBADD = @IWMXSDK_LIBS@ @GLIB_LIBS@
208 plugins_iwmxsdk_la_LDFLAGS = $(plugin_ldflags)
212 plugin_LTLIBRARIES += plugins/iospm.la
213 plugin_objects += $(plugins_iospm_la_OBJECTS)
214 plugins_iospm_la_CFLAGS = $(plugin_cflags)
215 plugins_iospm_la_LDFLAGS = $(plugin_ldflags)
219 plugin_LTLIBRARIES += plugins/fake.la
220 plugin_objects += $(plugins_fake_la_OBJECTS)
221 plugins_fake_la_CFLAGS = $(plugin_cflags)
222 plugins_fake_la_LDFLAGS = $(plugin_ldflags)
227 script_PROGRAMS += scripts/openconnect-script
229 scripts_openconnect_script_LDADD = @DBUS_LIBS@
233 script_DATA += scripts/dhclient.conf
234 script_PROGRAMS += scripts/dhclient-script
236 scripts_dhclient_script_LDADD = @DBUS_LIBS@
241 builtin_modules += ntpd
242 builtin_sources += plugins/ntpd.c
243 builtin_cflags += -DNTPD=\"@NTPD@\"
245 plugin_LTLIBRARIES += plugins/ntpd.la
246 plugin_objects += $(plugins_ntpd_la_OBJECTS)
247 plugins_ntpd_la_CFLAGS = $(plugin_cflags) -DNTPD=\"@NTPD@\"
248 plugins_ntpd_la_LDFLAGS = $(plugin_ldflags)
252 EXTRA_DIST += plugins/polkit.policy scripts/dhclient.conf
254 plugins/connman.policy: plugins/polkit.policy