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)
142 builtin_modules += l2tp
143 builtin_sources += plugins/l2tp.c
144 builtin_vpn_sources = plugins/vpn.c plugins/vpn.h
145 builtin_cflags += -DL2TP=\"@L2TP@\"
147 plugin_LTLIBRARIES += plugins/l2tp.la
148 plugin_objects += $(plugins_l2tp_la_OBJECTS)
149 plugins_l2tp_la_SOURCES = plugins/vpn.h plugins/vpn.c \
151 plugins_l2tp_la_CFLAGS = $(plugin_cflags) -DL2TP=\"@L2TP@\" \
152 -DSTATEDIR=\""$(statedir)"\" \
153 -DSCRIPTDIR=\""$(build_scriptdir)"\"
154 plugins_l2tp_la_LDFLAGS = $(plugin_ldflags)
158 builtin_sources += $(builtin_vpn_sources)
162 builtin_modules += pacrunner
163 builtin_sources += plugins/pacrunner.c
165 plugin_LTLIBRARIES += plugins/pacrunner.la
166 plugin_objects += $(plugins_pacrunner_la_OBJECTS)
167 plugins_pacrunner_la_CFLAGS = $(plugin_cflags)
168 plugins_pacrunner_la_LDFLAGS = $(plugin_ldflags)
174 builtin_modules += google
175 builtin_sources += plugins/google.c
177 plugin_LTLIBRARIES += plugins/google.la
178 plugin_objects += $(plugins_google_la_OBJECTS)
179 plugins_google_la_CFLAGS = $(plugin_cflags)
180 plugins_google_la_LDFLAGS = $(plugin_ldflags)
186 builtin_modules += meego
187 builtin_sources += plugins/meego.c
189 plugin_LTLIBRARIES += plugins/meego.la
190 plugin_objects += $(plugins_meego_la_OBJECTS)
191 plugins_meego_la_CFLAGS = $(plugin_cflags)
192 plugins_meego_la_LDFLAGS = $(plugin_ldflags)
198 builtin_modules += polkit
199 builtin_sources += plugins/polkit.c
201 plugin_LTLIBRARIES += plugins/polkit.la
202 plugin_objects += $(plugins_polkit_la_OBJECTS)
203 plugins_polkit_la_CFLAGS = $(plugin_cflags)
204 plugins_polkit_la_LDFLAGS = $(plugin_ldflags)
208 policydir = @POLKIT_DATADIR@
210 policy_DATA = plugins/net.connman.policy
215 plugin_LTLIBRARIES += plugins/iwmxsdk.la
216 plugin_objects += $(plugins_iwmxsdk_la_OBJECTS)
217 plugins_iwmxsdk_la_SOURCES = plugins/iwmx.h plugins/iwmx.c plugins/iwmxsdk.c
218 plugins_iwmxsdk_la_CFLAGS = $(plugin_cflags) @IWMXSDK_CFLAGS@
219 plugins_iwmxsdk_la_LIBADD = @IWMXSDK_LIBS@ @GLIB_LIBS@
220 plugins_iwmxsdk_la_LDFLAGS = $(plugin_ldflags)
224 plugin_LTLIBRARIES += plugins/iospm.la
225 plugin_objects += $(plugins_iospm_la_OBJECTS)
226 plugins_iospm_la_CFLAGS = $(plugin_cflags)
227 plugins_iospm_la_LDFLAGS = $(plugin_ldflags)
231 plugin_LTLIBRARIES += plugins/fake.la
232 plugin_objects += $(plugins_fake_la_OBJECTS)
233 plugins_fake_la_CFLAGS = $(plugin_cflags)
234 plugins_fake_la_LDFLAGS = $(plugin_ldflags)
238 script_PROGRAMS += scripts/openconnect-script
240 scripts_openconnect_script_LDADD = @DBUS_LIBS@
243 script_PROGRAMS += scripts/openconnect-script
245 scripts_openconnect_script_LDADD = @DBUS_LIBS@
250 script_PROGRAMS += scripts/openvpn-script
252 scripts_openvpn_script_LDADD = @DBUS_LIBS@
257 builtin_modules += ntpd
258 builtin_sources += plugins/ntpd.c
259 builtin_cflags += -DNTPD=\"@NTPD@\"
261 plugin_LTLIBRARIES += plugins/ntpd.la
262 plugin_objects += $(plugins_ntpd_la_OBJECTS)
263 plugins_ntpd_la_CFLAGS = $(plugin_cflags) -DNTPD=\"@NTPD@\"
264 plugins_ntpd_la_LDFLAGS = $(plugin_ldflags)
270 builtin_modules += nmcompat
271 builtin_sources += plugins/nmcompat.c
273 plugin_LTLIBRARIES += plugins/nmcompat.la
274 plugin_objects += $(plugins_nmcompat_la_OBJECTS)
275 plugins_nmcompat_la_CFLAGS = $(plugin_cflags)
276 plugins_nmcompat_la_LDFLAGS = $(plugin_ldflags)
282 builtin_modules += tist
283 builtin_sources += plugins/tist.c
285 plugin_LTLIBRARIES += plugins/tist.la
286 plugin_objects += $(plugins_tist_la_OBJECTS)
287 plugins_tist_la_CFLAGS = $(plugin_cflags)
288 plugins_tist_la_LDFLAGS = $(plugin_ldflags)
292 EXTRA_DIST += plugins/polkit.policy
294 plugins/net.connman.policy: plugins/polkit.policy