2 plugin_cflags = -fvisibility=hidden -I$(srcdir)/gdbus \
3 @DBUS_CFLAGS@ @GLIB_CFLAGS@
4 plugin_ldflags = -no-undefined -module -avoid-version
6 script_cflags = -fvisibility=hidden -I$(srcdir)/gdbus \
11 builtin_modules += loopback
12 builtin_sources += plugins/loopback.c
14 plugin_LTLIBRARIES += plugins/loopback.la
15 plugin_objects += $(plugins_loopback_la_OBJECTS)
16 plugins_loopback_la_CFLAGS = $(plugin_cflags)
17 plugins_loopback_la_LDFLAGS = $(plugin_ldflags)
23 builtin_modules += ethernet
24 builtin_sources += plugins/ethernet.c
26 plugin_LTLIBRARIES += plugins/ethernet.la
27 plugin_objects += $(plugins_ethernet_la_OBJECTS)
28 plugins_ethernet_la_CFLAGS = $(plugin_cflags)
29 plugins_ethernet_la_LDFLAGS = $(plugin_ldflags)
33 gsupplicant_sources = gsupplicant/gsupplicant.h gsupplicant/dbus.h \
34 gsupplicant/supplicant.c gsupplicant/dbus.c
38 builtin_modules += wifi
39 builtin_sources += plugins/wifi.c $(gsupplicant_sources)
42 plugin_LTLIBRARIES += plugins/wifi.la
43 plugin_objects += $(plugins_wifi_la_OBJECTS)
44 plugins_wifi_la_SOURCES = plugins/wifi.c $(gsupplicant_sources)
45 plugins_wifi_la_CFLAGS = $(plugin_cflags)
46 plugins_wifi_la_LDFLAGS = $(plugin_ldflags)
53 builtin_modules += bluetooth
54 builtin_sources += plugins/bluetooth.c
56 plugin_LTLIBRARIES += plugins/bluetooth.la
57 plugin_objects += $(plugins_bluetooth_la_OBJECTS)
58 plugins_bluetooth_la_CFLAGS = $(plugin_cflags)
59 plugins_bluetooth_la_LDFLAGS = $(plugin_ldflags)
64 if HH2SERIAL_GPS_BUILTIN
65 builtin_modules += hh2serial_gps
66 builtin_sources += plugins/hh2serial-gps.c
68 plugin_LTLIBRARIES += plugins/hh2serial-gps.la
69 plugin_objects += $(plugins_hh2serial_gps_la_OBJECTS)
70 plugins_hh2serial_gps_la_CFLAGS = $(plugin_cflags)
71 plugins_hh2serial_gps_la_LDFLAGS = $(plugin_ldflags)
77 builtin_modules += ofono
78 builtin_sources += plugins/mcc.h plugins/ofono.c
80 plugin_LTLIBRARIES += plugins/ofono.la
81 plugin_objects += $(plugins_ofono_la_OBJECTS)
82 plugins_ofono_la_SOURCES = plugins/mcc.h plugins/ofono.c
83 plugins_ofono_la_CFLAGS = $(plugin_cflags)
84 plugins_ofono_la_LDFLAGS = $(plugin_ldflags)
89 if OPENCONNECT_BUILTIN
90 builtin_modules += openconnect
91 builtin_sources += plugins/openconnect.c
92 builtin_vpn_sources = plugins/vpn.c plugins/vpn.h
93 builtin_cflags += -DOPENCONNECT=\"@OPENCONNECT@\"
95 plugin_LTLIBRARIES += plugins/openconnect.la
96 plugin_objects += $(plugins_openconnect_la_OBJECTS)
97 plugins_openconnect_la_SOURCES = plugins/vpn.h plugins/vpn.c \
99 plugins_openconnect_la_CFLAGS = $(plugin_cflags) -DOPENCONNECT=\"@OPENCONNECT@\" \
100 -DSTATEDIR=\""$(statedir)"\" \
101 -DSCRIPTDIR=\""$(build_scriptdir)"\"
102 plugins_openconnect_la_LDFLAGS = $(plugin_ldflags)
108 builtin_modules += openvpn
109 builtin_sources += plugins/openvpn.c
110 builtin_vpn_sources = plugins/vpn.c plugins/vpn.h
111 builtin_cflags += -DOPENVPN=\"@OPENVPN@\"
113 plugin_LTLIBRARIES += plugins/openvpn.la
114 plugin_objects += $(plugins_openvpn_la_OBJECTS)
115 plugins_openvpn_la_SOURCES = plugins/vpn.h plugins/vpn.c \
117 plugins_openvpn_la_CFLAGS = $(plugin_cflags) -DOPENVPN=\"@OPENVPN@\" \
118 -DSTATEDIR=\""$(statedir)"\" \
119 -DSCRIPTDIR=\""$(build_scriptdir)"\"
120 plugins_openvpn_la_LDFLAGS = $(plugin_ldflags)
126 builtin_modules += vpnc
127 builtin_sources += plugins/vpnc.c
128 builtin_vpn_sources = plugins/vpn.c plugins/vpn.h
129 builtin_cflags += -DVPNC=\"@VPNC@\"
131 plugin_LTLIBRARIES += plugins/vpnc.la
132 plugin_objects += $(plugins_vpnc_la_OBJECTS)
133 plugins_vpnc_la_SOURCES = plugins/vpn.h plugins/vpn.c \
135 plugins_vpnc_la_CFLAGS = $(plugin_cflags) -DVPNC=\"@VPNC@\" \
136 -DSTATEDIR=\""$(statedir)"\" \
137 -DSCRIPTDIR=\""$(build_scriptdir)"\"
138 plugins_vpnc_la_LDFLAGS = $(plugin_ldflags)
144 builtin_modules += l2tp
145 builtin_sources += plugins/l2tp.c
146 builtin_vpn_sources = plugins/vpn.c plugins/vpn.h
147 builtin_cflags += -DL2TP=\"@L2TP@\"
149 plugin_LTLIBRARIES += plugins/l2tp.la
150 plugin_objects += $(plugins_l2tp_la_OBJECTS)
151 plugins_l2tp_la_SOURCES = plugins/vpn.h plugins/vpn.c \
153 plugins_l2tp_la_CFLAGS = $(plugin_cflags) -DL2TP=\"@L2TP@\" \
154 -DSTATEDIR=\""$(statedir)"\" \
155 -DSCRIPTDIR=\""$(build_scriptdir)"\"
156 plugins_l2tp_la_LDFLAGS = $(plugin_ldflags)
162 builtin_modules += pptp
163 builtin_sources += plugins/pptp.c
164 builtin_vpn_sources = plugins/vpn.c plugins/vpn.h
165 builtin_cflags += -DPPPD=\"@PPPD@\" -DPPTP=\"@PPTP@\"
167 plugin_LTLIBRARIES += plugins/pptp.la
168 plugin_objects += $(plugins_pptp_la_OBJECTS)
169 plugins_pptp_la_SOURCES = plugins/vpn.h plugins/vpn.c \
171 plugins_pptp_la_CFLAGS = $(plugin_cflags) -DPPPD=\"@PPPD@\" \
173 -DSTATEDIR=\""$(statedir)"\" \
174 -DSCRIPTDIR=\""$(build_scriptdir)"\"
175 plugins_pptp_la_LDFLAGS = $(plugin_ldflags)
180 script_LTLIBRARIES += scripts/libppp-plugin.la
181 scripts_libppp_plugin_la_LDFLAGS = $(script_cflags) @DBUS_CFLAGS@
182 scripts_libppp_plugin_la_LIBADD = @DBUS_LIBS@
185 script_LTLIBRARIES += scripts/libppp-plugin.la
186 scripts_libppp_plugin_la_LDFLAGS = $(script_cflags) @DBUS_CFLAGS@
187 scripts_libppp_plugin_la_LIBADD = @DBUS_LIBS@
191 builtin_sources += $(builtin_vpn_sources)
195 builtin_modules += pacrunner
196 builtin_sources += plugins/pacrunner.c
198 plugin_LTLIBRARIES += plugins/pacrunner.la
199 plugin_objects += $(plugins_pacrunner_la_OBJECTS)
200 plugins_pacrunner_la_CFLAGS = $(plugin_cflags)
201 plugins_pacrunner_la_LDFLAGS = $(plugin_ldflags)
207 builtin_modules += google
208 builtin_sources += plugins/google.c
210 plugin_LTLIBRARIES += plugins/google.la
211 plugin_objects += $(plugins_google_la_OBJECTS)
212 plugins_google_la_CFLAGS = $(plugin_cflags)
213 plugins_google_la_LDFLAGS = $(plugin_ldflags)
219 builtin_modules += meego
220 builtin_sources += plugins/meego.c
222 plugin_LTLIBRARIES += plugins/meego.la
223 plugin_objects += $(plugins_meego_la_OBJECTS)
224 plugins_meego_la_CFLAGS = $(plugin_cflags)
225 plugins_meego_la_LDFLAGS = $(plugin_ldflags)
231 builtin_modules += polkit
232 builtin_sources += plugins/polkit.c
234 plugin_LTLIBRARIES += plugins/polkit.la
235 plugin_objects += $(plugins_polkit_la_OBJECTS)
236 plugins_polkit_la_CFLAGS = $(plugin_cflags)
237 plugins_polkit_la_LDFLAGS = $(plugin_ldflags)
241 policydir = @POLKIT_DATADIR@
243 policy_DATA = plugins/net.connman.policy
248 plugin_LTLIBRARIES += plugins/iwmxsdk.la
249 plugin_objects += $(plugins_iwmxsdk_la_OBJECTS)
250 plugins_iwmxsdk_la_SOURCES = plugins/iwmx.h plugins/iwmx.c plugins/iwmxsdk.c
251 plugins_iwmxsdk_la_CFLAGS = $(plugin_cflags) @IWMXSDK_CFLAGS@
252 plugins_iwmxsdk_la_LIBADD = @IWMXSDK_LIBS@ @GLIB_LIBS@
253 plugins_iwmxsdk_la_LDFLAGS = $(plugin_ldflags)
257 plugin_LTLIBRARIES += plugins/iospm.la
258 plugin_objects += $(plugins_iospm_la_OBJECTS)
259 plugins_iospm_la_CFLAGS = $(plugin_cflags)
260 plugins_iospm_la_LDFLAGS = $(plugin_ldflags)
264 plugin_LTLIBRARIES += plugins/fake.la
265 plugin_objects += $(plugins_fake_la_OBJECTS)
266 plugins_fake_la_CFLAGS = $(plugin_cflags)
267 plugins_fake_la_LDFLAGS = $(plugin_ldflags)
271 script_PROGRAMS += scripts/openconnect-script
273 scripts_openconnect_script_LDADD = @DBUS_LIBS@
276 script_PROGRAMS += scripts/openconnect-script
278 scripts_openconnect_script_LDADD = @DBUS_LIBS@
283 script_PROGRAMS += scripts/openvpn-script
285 scripts_openvpn_script_LDADD = @DBUS_LIBS@
290 builtin_modules += ntpd
291 builtin_sources += plugins/ntpd.c
292 builtin_cflags += -DNTPD=\"@NTPD@\"
294 plugin_LTLIBRARIES += plugins/ntpd.la
295 plugin_objects += $(plugins_ntpd_la_OBJECTS)
296 plugins_ntpd_la_CFLAGS = $(plugin_cflags) -DNTPD=\"@NTPD@\"
297 plugins_ntpd_la_LDFLAGS = $(plugin_ldflags)
303 builtin_modules += nmcompat
304 builtin_sources += plugins/nmcompat.c
306 plugin_LTLIBRARIES += plugins/nmcompat.la
307 plugin_objects += $(plugins_nmcompat_la_OBJECTS)
308 plugins_nmcompat_la_CFLAGS = $(plugin_cflags)
309 plugins_nmcompat_la_LDFLAGS = $(plugin_ldflags)
315 builtin_modules += tist
316 builtin_sources += plugins/tist.c
318 plugin_LTLIBRARIES += plugins/tist.la
319 plugin_objects += $(plugins_tist_la_OBJECTS)
320 plugins_tist_la_CFLAGS = $(plugin_cflags)
321 plugins_tist_la_LDFLAGS = $(plugin_ldflags)
325 EXTRA_DIST += plugins/polkit.policy
327 plugins/net.connman.policy: plugins/polkit.policy