2 noinst_LTLIBRARIES = plugins/libgatchat.la
4 plugins_libgatchat_la_SOURCES = gatchat/gatchat.h gatchat/gatchat.c \
5 gatchat/gatresult.h gatchat/gatresult.c \
6 gatchat/gatsyntax.h gatchat/gatsyntax.c \
7 gatchat/ringbuffer.h gatchat/ringbuffer.c \
8 gatchat/gattty.h gatchat/gattty.c
11 plugin_cflags = -fvisibility=hidden -I$(srcdir)/gdbus \
12 @DBUS_CFLAGS@ @GLIB_CFLAGS@
13 plugin_ldflags = -no-undefined -module -avoid-version
18 builtin_modules += loopback
19 builtin_sources += plugins/loopback.c
21 plugin_LTLIBRARIES += plugins/loopback.la
22 plugin_objects += $(plugins_loopback_la_OBJECTS)
23 plugins_loopback_la_CFLAGS = $(plugin_cflags)
24 plugins_loopback_la_LDFLAGS = $(plugin_ldflags)
30 builtin_modules += ethernet
31 builtin_sources += plugins/ethernet.c
33 plugin_LTLIBRARIES += plugins/ethernet.la
34 plugin_objects += $(plugins_ethernet_la_OBJECTS)
35 plugins_ethernet_la_CFLAGS = $(plugin_cflags)
36 plugins_ethernet_la_LDFLAGS = $(plugin_ldflags)
42 builtin_modules += wifi
43 builtin_sources += plugins/wifi.c plugins/supplicant.h plugins/supplicant.c
45 plugin_LTLIBRARIES += plugins/wifi.la
46 plugin_objects += $(plugins_wifi_la_OBJECTS)
47 plugins_wifi_la_SOURCES = plugins/wifi.c \
48 plugins/supplicant.h plugins/supplicant.c
49 plugins_wifi_la_CFLAGS = $(plugin_cflags)
50 plugins_wifi_la_LDFLAGS = $(plugin_ldflags)
56 builtin_modules += bluetooth
57 builtin_sources += plugins/bluetooth.c
59 plugin_LTLIBRARIES += plugins/bluetooth.la
60 plugin_objects += $(plugins_bluetooth_la_OBJECTS)
61 plugins_bluetooth_la_CFLAGS = $(plugin_cflags)
62 plugins_bluetooth_la_LDFLAGS = $(plugin_ldflags)
68 builtin_modules += ofono
69 builtin_sources += plugins/ofono.c
71 plugin_LTLIBRARIES += plugins/ofono.la
72 plugin_objects += $(plugins_ofono_la_OBJECTS)
73 plugins_ofono_la_CFLAGS = $(plugin_cflags)
74 plugins_ofono_la_LDFLAGS = $(plugin_ldflags)
80 builtin_modules += hso
81 builtin_sources += plugins/hso.c
82 builtin_cflags += -I$(srcdir)/gatchat
83 builtin_libadd += plugins/libgatchat.la
85 plugin_LTLIBRARIES += plugins/hso.la
86 plugin_objects += $(plugins_hso_la_OBJECTS)
87 plugins_hso_la_SOURCES = plugins/hso.c
88 plugins_hso_la_CFLAGS = $(plugin_cflags) -I$(srcdir)/gatchat
89 plugins_hso_la_LIBADD = plugins/libgatchat.la
90 plugins_hso_la_LDFLAGS = $(plugin_ldflags)
96 builtin_modules += mbm
97 builtin_sources += plugins/mbm.c
98 builtin_cflags += -I$(srcdir)/gatchat
99 builtin_libadd += plugins/libgatchat.la
101 plugin_LTLIBRARIES += plugins/mbm.la
102 plugin_objects += $(plugins_mbm_la_OBJECTS)
103 plugins_mbm_la_SOURCES = plugins/mbm.c
104 plugins_mbm_la_CFLAGS = $(plugin_cflags) -I$(srcdir)/gatchat
105 plugins_mbm_la_LIBADD = plugins/libgatchat.la
106 plugins_mbm_la_LDFLAGS = $(plugin_ldflags)
112 builtin_modules += udhcp
113 builtin_sources += plugins/udhcp.c plugins/task.h plugins/task.c
114 builtin_cflags += -DUDHCPC=\"@UDHCPC@\"
116 plugin_LTLIBRARIES += plugins/udhcp.la
117 plugin_objects += $(plugins_udhcp_la_OBJECTS)
118 plugins_udhcp_la_SOURCES = plugins/udhcp.c plugins/task.h plugins/task.c
119 plugins_udhcp_la_CFLAGS = $(plugin_cflags) -DUDHCPC=\"@UDHCPC@\" \
120 -DSTATEDIR=\""$(statedir)"\" \
121 -DSCRIPTDIR=\""$(build_scriptdir)"\"
122 plugins_udhcp_la_LDFLAGS = $(plugin_ldflags)
128 builtin_modules += dhclient
129 builtin_sources += plugins/dhclient.c
130 builtin_cflags += -DDHCLIENT=\"@DHCLIENT@\"
132 plugin_LTLIBRARIES += plugins/dhclient.la
133 plugin_objects += $(plugins_dhclient_la_OBJECTS)
134 plugins_dhclient_la_CFLAGS = $(plugin_cflags) -DDHCLIENT=\"@DHCLIENT@\" \
135 -DSTATEDIR=\""$(statedir)"\" \
136 -DSCRIPTDIR=\""$(build_scriptdir)"\"
137 plugins_dhclient_la_LDFLAGS = $(plugin_ldflags)
142 if RESOLVCONF_BUILTIN
143 builtin_modules += resolvconf
144 builtin_sources += plugins/resolvconf.c
145 builtin_cflags += -DRESOLVCONF=\"@RESOLVCONF@\"
147 plugin_LTLIBRARIES += plugins/resolvconf.la
148 plugin_objects += $(plugins_resolvconf_la_OBJECTS)
149 plugins_resolvconf_la_CFLAGS = $(plugin_cflags) -DRESOLVCONF=\"@RESOLVCONF@\"
150 plugins_resolvconf_la_LDFLAGS = $(plugin_ldflags)
155 if OPENCONNECT_BUILTIN
156 builtin_modules += openconnect
157 builtin_sources += plugins/openconnect.c
158 builtin_cflags += -DOPENCONNECT=\"@OPENCONNECT@\"
160 plugin_LTLIBRARIES += plugins/openconnect.la
161 plugin_objects += $(plugins_openconnect_la_OBJECTS)
162 plugins_openconnect_la_CFLAGS = $(plugin_cflags) -DOPENCONNECT=\"@OPENCONNECT@\" \
163 -DSTATEDIR=\""$(statedir)"\" \
164 -DSCRIPTDIR=\""$(build_scriptdir)"\"
165 plugins_openconnect_la_LDFLAGS = $(plugin_ldflags)
171 builtin_modules += dnsproxy
172 builtin_sources += plugins/dnsproxy.c
174 plugin_LTLIBRARIES += plugins/dnsproxy.la
175 plugin_objects += $(plugins_dnsproxy_la_OBJECTS)
176 plugins_dnsproxy_la_CFLAGS = $(plugin_cflags)
177 plugins_dnsproxy_la_LDFLAGS = $(plugin_ldflags)
183 builtin_modules += google
184 builtin_sources += plugins/google.c
186 plugin_LTLIBRARIES += plugins/google.la
187 plugin_objects += $(plugins_google_la_OBJECTS)
188 plugins_google_la_CFLAGS = $(plugin_cflags)
189 plugins_google_la_LDFLAGS = $(plugin_ldflags)
195 builtin_modules += moblin
196 builtin_sources += plugins/moblin.c
198 plugin_LTLIBRARIES += plugins/moblin.la
199 plugin_objects += $(plugins_moblin_la_OBJECTS)
200 plugins_moblin_la_CFLAGS = $(plugin_cflags)
201 plugins_moblin_la_LDFLAGS = $(plugin_ldflags)
207 builtin_modules += polkit
208 builtin_sources += plugins/polkit.c
209 builtin_libadd += @POLKIT_LIBS@
210 builtin_cflags += @POLKIT_CFLAGS@
212 plugin_LTLIBRARIES += plugins/polkit.la
213 plugin_objects += $(plugins_polkit_la_OBJECTS)
214 plugins_polkit_la_CFLAGS = $(plugin_cflags) @POLKIT_CFLAGS@
215 plugins_polkit_la_LIBADD = @POLKIT_LIBS@ @GLIB_LIBS@
216 plugins_polkit_la_LDFLAGS = $(plugin_ldflags)
220 policydir = @POLKIT_DATADIR@
222 policy_DATA = plugins/connman.policy
227 plugin_LTLIBRARIES += plugins/iwmxsdk.la
228 plugin_objects += $(plugins_iwmxsdk_la_OBJECTS)
229 plugins_iwmxsdk_la_SOURCES = plugins/iwmx.h plugins/iwmx.c plugins/iwmxsdk.c
230 plugins_iwmxsdk_la_CFLAGS = $(plugin_cflags) @IWMXSDK_CFLAGS@
231 plugins_iwmxsdk_la_LIBADD = @IWMXSDK_LIBS@ @GLIB_LIBS@
232 plugins_iwmxsdk_la_LDFLAGS = $(plugin_ldflags)
236 plugin_LTLIBRARIES += plugins/iospm.la
237 plugin_objects += $(plugins_iospm_la_OBJECTS)
238 plugins_iospm_la_CFLAGS = $(plugin_cflags)
239 plugins_iospm_la_LDFLAGS = $(plugin_ldflags)
243 plugin_LTLIBRARIES += plugins/fake.la
244 plugin_objects += $(plugins_fake_la_OBJECTS)
245 plugins_fake_la_CFLAGS = $(plugin_cflags)
246 plugins_fake_la_LDFLAGS = $(plugin_ldflags)
251 script_PROGRAMS += scripts/udhcpc-script
253 scripts_udhcpc_script_LDADD = @DBUS_LIBS@
257 script_PROGRAMS += scripts/openconnect-script
259 scripts_openconnect_script_LDADD = @DBUS_LIBS@
263 script_DATA += scripts/dhclient.conf
264 script_PROGRAMS += scripts/dhclient-script
266 scripts_dhclient_script_LDADD = @DBUS_LIBS@
270 EXTRA_DIST += plugins/polkit.policy scripts/dhclient.conf
272 plugins/connman.policy: plugins/polkit.policy