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)
156 builtin_modules += dnsproxy
157 builtin_sources += plugins/dnsproxy.c
159 plugin_LTLIBRARIES += plugins/dnsproxy.la
160 plugin_objects += $(plugins_dnsproxy_la_OBJECTS)
161 plugins_dnsproxy_la_CFLAGS = $(plugin_cflags)
162 plugins_dnsproxy_la_LDFLAGS = $(plugin_ldflags)
168 builtin_modules += polkit
169 builtin_sources += plugins/polkit.c
170 builtin_libadd += @POLKIT_LIBS@
171 builtin_cflags += @POLKIT_CFLAGS@
173 plugin_LTLIBRARIES += plugins/polkit.la
174 plugin_objects += $(plugins_polkit_la_OBJECTS)
175 plugins_polkit_la_CFLAGS = $(plugin_cflags) @POLKIT_CFLAGS@
176 plugins_polkit_la_LIBADD = @POLKIT_LIBS@ @GLIB_LIBS@
177 plugins_polkit_la_LDFLAGS = $(plugin_ldflags)
181 policydir = @POLKIT_DATADIR@
183 policy_DATA = plugins/connman.policy
188 plugin_LTLIBRARIES += plugins/iwmxsdk.la
189 plugin_objects += $(plugins_iwmxsdk_la_OBJECTS)
190 plugins_iwmxsdk_la_SOURCES = plugins/iwmx.h plugins/iwmx.c plugins/iwmxsdk.c
191 plugins_iwmxsdk_la_CFLAGS = $(plugin_cflags) @IWMXSDK_CFLAGS@
192 plugins_iwmxsdk_la_LIBADD = @IWMXSDK_LIBS@ @GLIB_LIBS@
193 plugins_iwmxsdk_la_LDFLAGS = $(plugin_ldflags)
197 plugin_LTLIBRARIES += plugins/iospm.la
198 plugin_objects += $(plugins_iospm_la_OBJECTS)
199 plugins_iospm_la_CFLAGS = $(plugin_cflags)
200 plugins_iospm_la_LDFLAGS = $(plugin_ldflags)
204 plugin_LTLIBRARIES += plugins/fake.la
205 plugin_objects += $(plugins_fake_la_OBJECTS)
206 plugins_fake_la_CFLAGS = $(plugin_cflags)
207 plugins_fake_la_LDFLAGS = $(plugin_ldflags)
212 script_PROGRAMS += scripts/udhcpc-script
214 scripts_udhcpc_script_LDADD = @DBUS_LIBS@
218 script_DATA += scripts/dhclient.conf
219 script_PROGRAMS += scripts/dhclient-script
221 scripts_dhclient_script_LDADD = @DBUS_LIBS@
225 EXTRA_DIST += plugins/polkit.policy scripts/dhclient.conf
227 plugins/connman.policy: plugins/polkit.policy