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)
34 gsupplicant_sources = gsupplicant/gsupplicant.h gsupplicant/dbus.h \
35 gsupplicant/supplicant.c gsupplicant/dbus.c
39 builtin_modules += wifi
40 builtin_sources += plugins/wifi.c $(gsupplicant_sources)
42 builtin_modules += wifi_legacy
43 builtin_sources += plugins/wifi-legacy.c \
44 plugins/supplicant.h plugins/supplicant.c
46 plugin_LTLIBRARIES += plugins/wifi.la
47 plugin_objects += $(plugins_wifi_la_OBJECTS)
48 plugins_wifi_la_SOURCES = plugins/wifi.c $(gsupplicant_sources)
49 plugins_wifi_la_CFLAGS = $(plugin_cflags)
50 plugins_wifi_la_LDFLAGS = $(plugin_ldflags)
52 plugin_LTLIBRARIES += plugins/wifi_legacy.la
53 plugin_objects += $(plugins_wifi_legacy_la_OBJECTS)
54 plugins_wifi_legacy_la_SOURCES = plugins/wifi-legacy.c \
55 plugins/supplicant.h plugins/supplicant.c
56 plugins_wifi_legacy_la_CFLAGS = $(plugin_cflags)
57 plugins_wifi_legacy_la_LDFLAGS = $(plugin_ldflags)
64 builtin_modules += bluetooth
65 builtin_sources += plugins/bluetooth.c
67 plugin_LTLIBRARIES += plugins/bluetooth.la
68 plugin_objects += $(plugins_bluetooth_la_OBJECTS)
69 plugins_bluetooth_la_CFLAGS = $(plugin_cflags)
70 plugins_bluetooth_la_LDFLAGS = $(plugin_ldflags)
75 if HH2SERIAL_GPS_BUILTIN
76 builtin_modules += hh2serial_gps
77 builtin_sources += plugins/hh2serial-gps.c
79 plugin_LTLIBRARIES += plugins/hh2serial-gps.la
80 plugin_objects += $(plugins_hh2serial_gps_la_OBJECTS)
81 plugins_hh2serial_gps_la_CFLAGS = $(plugin_cflags)
82 plugins_hh2serial_gps_la_LDFLAGS = $(plugin_ldflags)
88 builtin_modules += ofono
89 builtin_sources += plugins/ofono.c
91 plugin_LTLIBRARIES += plugins/ofono.la
92 plugin_objects += $(plugins_ofono_la_OBJECTS)
93 plugins_ofono_la_CFLAGS = $(plugin_cflags)
94 plugins_ofono_la_LDFLAGS = $(plugin_ldflags)
99 if OPENCONNECT_BUILTIN
100 builtin_modules += openconnect
101 builtin_sources += plugins/openconnect.c
102 builtin_cflags += -DOPENCONNECT=\"@OPENCONNECT@\"
104 plugin_LTLIBRARIES += plugins/openconnect.la
105 plugin_objects += $(plugins_openconnect_la_OBJECTS)
106 plugins_openconnect_la_SOURCES = plugins/vpn.h plugins/vpn.c \
107 plugins/openconnect.c
108 plugins_openconnect_la_CFLAGS = $(plugin_cflags) -DOPENCONNECT=\"@OPENCONNECT@\" \
109 -DSTATEDIR=\""$(statedir)"\" \
110 -DSCRIPTDIR=\""$(build_scriptdir)"\"
111 plugins_openconnect_la_LDFLAGS = $(plugin_ldflags)
117 builtin_modules += openvpn
118 builtin_sources += plugins/openvpn.c
119 builtin_cflags += -DOPENVPN=\"@OPENVPN@\"
121 plugin_LTLIBRARIES += plugins/openvpn.la
122 plugin_objects += $(plugins_openvpn_la_OBJECTS)
123 plugins_openvpn_la_SOURCES = plugins/vpn.h plugins/vpn.c \
125 plugins_openvpn_la_CFLAGS = $(plugin_cflags) -DOPENVPN=\"@OPENVPN@\" \
126 -DSTATEDIR=\""$(statedir)"\" \
127 -DSCRIPTDIR=\""$(build_scriptdir)"\"
128 plugins_openvpn_la_LDFLAGS = $(plugin_ldflags)
132 if OPENCONNECT_BUILTIN
133 builtin_sources += plugins/vpn.c plugins/vpn.h
136 builtin_sources += plugins/vpn.c plugins/vpn.h
142 builtin_modules += portal
143 builtin_sources += plugins/portal.c
145 plugin_LTLIBRARIES += plugins/portal.la
146 plugin_objects += $(plugins_portal_la_OBJECTS)
147 plugins_portal_la_CFLAGS = $(plugin_cflags)
148 plugins_portal_la_LDFLAGS = $(plugin_ldflags)
154 builtin_modules += dnsproxy
155 builtin_sources += plugins/dnsproxy.c
157 plugin_LTLIBRARIES += plugins/dnsproxy.la
158 plugin_objects += $(plugins_dnsproxy_la_OBJECTS)
159 plugins_dnsproxy_la_CFLAGS = $(plugin_cflags)
160 plugins_dnsproxy_la_LDFLAGS = $(plugin_ldflags)
166 builtin_modules += pacrunner
167 builtin_sources += plugins/pacrunner.c
169 plugin_LTLIBRARIES += plugins/pacrunner.la
170 plugin_objects += $(plugins_pacrunner_la_OBJECTS)
171 plugins_pacrunner_la_CFLAGS = $(plugin_cflags)
172 plugins_pacrunner_la_LDFLAGS = $(plugin_ldflags)
178 builtin_modules += google
179 builtin_sources += plugins/google.c
181 plugin_LTLIBRARIES += plugins/google.la
182 plugin_objects += $(plugins_google_la_OBJECTS)
183 plugins_google_la_CFLAGS = $(plugin_cflags)
184 plugins_google_la_LDFLAGS = $(plugin_ldflags)
190 builtin_modules += meego
191 builtin_sources += plugins/meego.c
193 plugin_LTLIBRARIES += plugins/meego.la
194 plugin_objects += $(plugins_meego_la_OBJECTS)
195 plugins_meego_la_CFLAGS = $(plugin_cflags)
196 plugins_meego_la_LDFLAGS = $(plugin_ldflags)
202 builtin_modules += polkit
203 builtin_sources += plugins/polkit.c
205 plugin_LTLIBRARIES += plugins/polkit.la
206 plugin_objects += $(plugins_polkit_la_OBJECTS)
207 plugins_polkit_la_CFLAGS = $(plugin_cflags)
208 plugins_polkit_la_LDFLAGS = $(plugin_ldflags)
212 policydir = @POLKIT_DATADIR@
214 policy_DATA = plugins/connman.policy
219 plugin_LTLIBRARIES += plugins/iwmxsdk.la
220 plugin_objects += $(plugins_iwmxsdk_la_OBJECTS)
221 plugins_iwmxsdk_la_SOURCES = plugins/iwmx.h plugins/iwmx.c plugins/iwmxsdk.c
222 plugins_iwmxsdk_la_CFLAGS = $(plugin_cflags) @IWMXSDK_CFLAGS@
223 plugins_iwmxsdk_la_LIBADD = @IWMXSDK_LIBS@ @GLIB_LIBS@
224 plugins_iwmxsdk_la_LDFLAGS = $(plugin_ldflags)
228 plugin_LTLIBRARIES += plugins/iospm.la
229 plugin_objects += $(plugins_iospm_la_OBJECTS)
230 plugins_iospm_la_CFLAGS = $(plugin_cflags)
231 plugins_iospm_la_LDFLAGS = $(plugin_ldflags)
235 plugin_LTLIBRARIES += plugins/fake.la
236 plugin_objects += $(plugins_fake_la_OBJECTS)
237 plugins_fake_la_CFLAGS = $(plugin_cflags)
238 plugins_fake_la_LDFLAGS = $(plugin_ldflags)
242 script_PROGRAMS += scripts/openconnect-script
244 scripts_openconnect_script_LDADD = @DBUS_LIBS@
248 script_PROGRAMS += scripts/openvpn-script
250 scripts_openvpn_script_LDADD = @DBUS_LIBS@
255 builtin_modules += ntpd
256 builtin_sources += plugins/ntpd.c
257 builtin_cflags += -DNTPD=\"@NTPD@\"
259 plugin_LTLIBRARIES += plugins/ntpd.la
260 plugin_objects += $(plugins_ntpd_la_OBJECTS)
261 plugins_ntpd_la_CFLAGS = $(plugin_cflags) -DNTPD=\"@NTPD@\"
262 plugins_ntpd_la_LDFLAGS = $(plugin_ldflags)
266 EXTRA_DIST += plugins/polkit.policy
268 plugins/connman.policy: plugins/polkit.policy