2 plugin_cflags = -fvisibility=hidden -I$(srcdir)/gdbus \
3 @DBUS_CFLAGS@ @GLIB_CFLAGS@
4 plugin_ldflags = -no-undefined -module -avoid-version
9 builtin_modules += loopback
10 builtin_sources += plugins/loopback.c
12 plugin_LTLIBRARIES += plugins/loopback.la
13 plugin_objects += $(plugins_loopback_la_OBJECTS)
14 plugins_loopback_la_CFLAGS = $(plugin_cflags)
15 plugins_loopback_la_LDFLAGS = $(plugin_ldflags)
21 builtin_modules += ethernet
22 builtin_sources += plugins/ethernet.c
24 plugin_LTLIBRARIES += plugins/ethernet.la
25 plugin_objects += $(plugins_ethernet_la_OBJECTS)
26 plugins_ethernet_la_CFLAGS = $(plugin_cflags)
27 plugins_ethernet_la_LDFLAGS = $(plugin_ldflags)
31 gsupplicant_sources = gsupplicant/gsupplicant.h gsupplicant/dbus.h \
32 gsupplicant/supplicant.c gsupplicant/dbus.c
36 builtin_modules += wifi
37 builtin_sources += plugins/wifi.c $(gsupplicant_sources)
40 plugin_LTLIBRARIES += plugins/wifi.la
41 plugin_objects += $(plugins_wifi_la_OBJECTS)
42 plugins_wifi_la_SOURCES = plugins/wifi.c $(gsupplicant_sources)
43 plugins_wifi_la_CFLAGS = $(plugin_cflags)
44 plugins_wifi_la_LDFLAGS = $(plugin_ldflags)
51 builtin_modules += bluetooth
52 builtin_sources += plugins/bluetooth.c
54 plugin_LTLIBRARIES += plugins/bluetooth.la
55 plugin_objects += $(plugins_bluetooth_la_OBJECTS)
56 plugins_bluetooth_la_CFLAGS = $(plugin_cflags)
57 plugins_bluetooth_la_LDFLAGS = $(plugin_ldflags)
62 if HH2SERIAL_GPS_BUILTIN
63 builtin_modules += hh2serial_gps
64 builtin_sources += plugins/hh2serial-gps.c
66 plugin_LTLIBRARIES += plugins/hh2serial-gps.la
67 plugin_objects += $(plugins_hh2serial_gps_la_OBJECTS)
68 plugins_hh2serial_gps_la_CFLAGS = $(plugin_cflags)
69 plugins_hh2serial_gps_la_LDFLAGS = $(plugin_ldflags)
75 builtin_modules += ofono
76 builtin_sources += plugins/mcc.h plugins/ofono.c
78 plugin_LTLIBRARIES += plugins/ofono.la
79 plugin_objects += $(plugins_ofono_la_OBJECTS)
80 plugins_ofono_la_SOURCES = plugins/mcc.h plugins/ofono.c
81 plugins_ofono_la_CFLAGS = $(plugin_cflags)
82 plugins_ofono_la_LDFLAGS = $(plugin_ldflags)
87 if OPENCONNECT_BUILTIN
88 builtin_modules += openconnect
89 builtin_sources += plugins/openconnect.c
90 builtin_vpn_sources = plugins/vpn.c plugins/vpn.h
91 builtin_cflags += -DOPENCONNECT=\"@OPENCONNECT@\"
93 plugin_LTLIBRARIES += plugins/openconnect.la
94 plugin_objects += $(plugins_openconnect_la_OBJECTS)
95 plugins_openconnect_la_SOURCES = plugins/vpn.h plugins/vpn.c \
97 plugins_openconnect_la_CFLAGS = $(plugin_cflags) -DOPENCONNECT=\"@OPENCONNECT@\" \
98 -DSTATEDIR=\""$(statedir)"\" \
99 -DSCRIPTDIR=\""$(build_scriptdir)"\"
100 plugins_openconnect_la_LDFLAGS = $(plugin_ldflags)
106 builtin_modules += openvpn
107 builtin_sources += plugins/openvpn.c
108 builtin_vpn_sources = plugins/vpn.c plugins/vpn.h
109 builtin_cflags += -DOPENVPN=\"@OPENVPN@\"
111 plugin_LTLIBRARIES += plugins/openvpn.la
112 plugin_objects += $(plugins_openvpn_la_OBJECTS)
113 plugins_openvpn_la_SOURCES = plugins/vpn.h plugins/vpn.c \
115 plugins_openvpn_la_CFLAGS = $(plugin_cflags) -DOPENVPN=\"@OPENVPN@\" \
116 -DSTATEDIR=\""$(statedir)"\" \
117 -DSCRIPTDIR=\""$(build_scriptdir)"\"
118 plugins_openvpn_la_LDFLAGS = $(plugin_ldflags)
124 builtin_modules += vpnc
125 builtin_sources += plugins/vpnc.c
126 builtin_vpn_sources = plugins/vpn.c plugins/vpn.h
127 builtin_cflags += -DVPNC=\"@VPNC@\"
129 plugin_LTLIBRARIES += plugins/vpnc.la
130 plugin_objects += $(plugins_vpnc_la_OBJECTS)
131 plugins_vpnc_la_SOURCES = plugins/vpn.h plugins/vpn.c \
133 plugins_vpnc_la_CFLAGS = $(plugin_cflags) -DVPNC=\"@VPNC@\" \
134 -DSTATEDIR=\""$(statedir)"\" \
135 -DSCRIPTDIR=\""$(build_scriptdir)"\"
136 plugins_vpnc_la_LDFLAGS = $(plugin_ldflags)
140 builtin_sources += $(builtin_vpn_sources)
144 builtin_modules += portal
145 builtin_sources += plugins/portal.c
147 plugin_LTLIBRARIES += plugins/portal.la
148 plugin_objects += $(plugins_portal_la_OBJECTS)
149 plugins_portal_la_CFLAGS = $(plugin_cflags)
150 plugins_portal_la_LDFLAGS = $(plugin_ldflags)
156 builtin_modules += pacrunner
157 builtin_sources += plugins/pacrunner.c
159 plugin_LTLIBRARIES += plugins/pacrunner.la
160 plugin_objects += $(plugins_pacrunner_la_OBJECTS)
161 plugins_pacrunner_la_CFLAGS = $(plugin_cflags)
162 plugins_pacrunner_la_LDFLAGS = $(plugin_ldflags)
168 builtin_modules += google
169 builtin_sources += plugins/google.c
171 plugin_LTLIBRARIES += plugins/google.la
172 plugin_objects += $(plugins_google_la_OBJECTS)
173 plugins_google_la_CFLAGS = $(plugin_cflags)
174 plugins_google_la_LDFLAGS = $(plugin_ldflags)
180 builtin_modules += meego
181 builtin_sources += plugins/meego.c
183 plugin_LTLIBRARIES += plugins/meego.la
184 plugin_objects += $(plugins_meego_la_OBJECTS)
185 plugins_meego_la_CFLAGS = $(plugin_cflags)
186 plugins_meego_la_LDFLAGS = $(plugin_ldflags)
192 builtin_modules += polkit
193 builtin_sources += plugins/polkit.c
195 plugin_LTLIBRARIES += plugins/polkit.la
196 plugin_objects += $(plugins_polkit_la_OBJECTS)
197 plugins_polkit_la_CFLAGS = $(plugin_cflags)
198 plugins_polkit_la_LDFLAGS = $(plugin_ldflags)
202 policydir = @POLKIT_DATADIR@
204 policy_DATA = plugins/net.connman.policy
209 plugin_LTLIBRARIES += plugins/iwmxsdk.la
210 plugin_objects += $(plugins_iwmxsdk_la_OBJECTS)
211 plugins_iwmxsdk_la_SOURCES = plugins/iwmx.h plugins/iwmx.c plugins/iwmxsdk.c
212 plugins_iwmxsdk_la_CFLAGS = $(plugin_cflags) @IWMXSDK_CFLAGS@
213 plugins_iwmxsdk_la_LIBADD = @IWMXSDK_LIBS@ @GLIB_LIBS@
214 plugins_iwmxsdk_la_LDFLAGS = $(plugin_ldflags)
218 plugin_LTLIBRARIES += plugins/iospm.la
219 plugin_objects += $(plugins_iospm_la_OBJECTS)
220 plugins_iospm_la_CFLAGS = $(plugin_cflags)
221 plugins_iospm_la_LDFLAGS = $(plugin_ldflags)
225 plugin_LTLIBRARIES += plugins/fake.la
226 plugin_objects += $(plugins_fake_la_OBJECTS)
227 plugins_fake_la_CFLAGS = $(plugin_cflags)
228 plugins_fake_la_LDFLAGS = $(plugin_ldflags)
232 script_PROGRAMS += scripts/openconnect-script
234 scripts_openconnect_script_LDADD = @DBUS_LIBS@
237 script_PROGRAMS += scripts/openconnect-script
239 scripts_openconnect_script_LDADD = @DBUS_LIBS@
244 script_PROGRAMS += scripts/openvpn-script
246 scripts_openvpn_script_LDADD = @DBUS_LIBS@
251 builtin_modules += ntpd
252 builtin_sources += plugins/ntpd.c
253 builtin_cflags += -DNTPD=\"@NTPD@\"
255 plugin_LTLIBRARIES += plugins/ntpd.la
256 plugin_objects += $(plugins_ntpd_la_OBJECTS)
257 plugins_ntpd_la_CFLAGS = $(plugin_cflags) -DNTPD=\"@NTPD@\"
258 plugins_ntpd_la_LDFLAGS = $(plugin_ldflags)
264 builtin_modules += nmcompat
265 builtin_sources += plugins/nmcompat.c
267 plugin_LTLIBRARIES += plugins/nmcompat.la
268 plugin_objects += $(plugins_nmcompat_la_OBJECTS)
269 plugins_nmcompat_la_CFLAGS = $(plugin_cflags)
270 plugins_nmcompat_la_LDFLAGS = $(plugin_ldflags)
276 builtin_modules += tist
277 builtin_sources += plugins/tist.c
279 plugin_LTLIBRARIES += plugins/tist.la
280 plugin_objects += $(plugins_tist_la_OBJECTS)
281 plugins_tist_la_CFLAGS = $(plugin_cflags)
282 plugins_tist_la_LDFLAGS = $(plugin_ldflags)
286 EXTRA_DIST += plugins/polkit.policy
288 plugins/net.connman.policy: plugins/polkit.policy