2 plugindir = $(libdir)/connman/plugins
13 builtin_modules += loopback
14 builtin_sources += loopback.c
16 plugin_LTLIBRARIES += loopback.la
22 builtin_modules += ethernet
23 builtin_sources += ethernet.c
25 plugin_LTLIBRARIES += ethernet.la
31 builtin_modules += wifi
32 builtin_sources += wifi.c supplicant.h supplicant.c
34 plugin_LTLIBRARIES += wifi.la
35 wifi_la_SOURCES = wifi.c supplicant.h supplicant.c
36 wifi_la_LIBADD = @GDBUS_LIBS@
42 builtin_modules += bluetooth
43 builtin_sources += bluetooth.c
45 plugin_LTLIBRARIES += bluetooth.la
46 bluetooth_la_LIBADD = @GDBUS_LIBS@
52 builtin_modules += ofono
53 builtin_sources += ofono.c
55 plugin_LTLIBRARIES += ofono.la
56 ofono_la_LIBADD = @GDBUS_LIBS@
62 builtin_modules += modemmgr
63 builtin_sources += modemmgr.c
65 plugin_LTLIBRARIES += modemmgr.la
66 modemmgr_la_LIBADD = @GDBUS_LIBS@
71 plugin_LTLIBRARIES += novatel.la
72 novatel_la_SOURCES = novatel.c modem.h modem.c
76 plugin_LTLIBRARIES += huawei.la
77 huawei_la_SOURCES = huawei.c modem.h modem.c
82 builtin_modules += hso
83 builtin_sources += hso.c modem.h modem.c
84 builtin_libadd += @GATCHAT_LIBS@
85 builtin_cflags += @GATCHAT_CFLAGS@
87 plugin_LTLIBRARIES += hso.la
88 hso_la_SOURCES = hso.c modem.h modem.c
89 hso_la_LIBADD = @GATCHAT_LIBS@
90 hso_la_CFLAGS = $(AM_CFLAGS) @GATCHAT_CFLAGS@
96 builtin_modules += mbm
97 builtin_sources += mbm.c
98 builtin_libadd += @GATCHAT_LIBS@
99 builtin_cflags += @GATCHAT_CFLAGS@
101 plugin_LTLIBRARIES += mbm.la
102 mbm_la_LIBADD = @GATCHAT_LIBS@
103 mbm_la_CFLAGS = $(AM_CFLAGS) @GATCHAT_CFLAGS@
109 builtin_modules += udhcp
110 builtin_sources += udhcp.c task.h task.c
111 builtin_cflags += -DUDHCPC=\"@UDHCPC@\"
113 plugin_LTLIBRARIES += udhcp.la
114 udhcp_la_SOURCES = udhcp.c task.h task.c
115 udhcp_la_CFLAGS = $(AM_CFLAGS) -DUDHCPC=\"@UDHCPC@\" \
116 -DSTATEDIR=\""$(statedir)"\" -DSCRIPTDIR=\""$(scriptdir)"\"
122 builtin_modules += dhclient
123 builtin_sources += dhclient.c
124 builtin_cflags += -DDHCLIENT=\"@DHCLIENT@\"
126 plugin_LTLIBRARIES += dhclient.la
127 dhclient_la_CFLAGS = $(AM_CFLAGS) -DDHCLIENT=\"@DHCLIENT@\" \
128 -DSTATEDIR=\""$(statedir)"\" -DSCRIPTDIR=\""$(scriptdir)"\"
133 plugin_LTLIBRARIES += pppd.la
134 pppd_la_CFLAGS = $(AM_CFLAGS) -DPPPD=\"@PPPD@\"
138 if RESOLVCONF_BUILTIN
139 builtin_modules += resolvconf
140 builtin_sources += resolvconf.c
141 builtin_cflags += -DRESOLVCONF=\"@RESOLVCONF@\"
143 plugin_LTLIBRARIES += resolvconf.la
144 resolvconf_la_CFLAGS = $(AM_CFLAGS) -DRESOLVCONF=\"@RESOLVCONF@\"
150 builtin_modules += dnsproxy
151 builtin_sources += dnsproxy.c
153 plugin_LTLIBRARIES += dnsproxy.la
159 builtin_modules += polkit
160 builtin_sources += polkit.c
161 builtin_libadd += @POLKIT_LIBS@
162 builtin_cflags += @POLKIT_CFLAGS@
164 plugin_LTLIBRARIES += polkit.la
165 polkit_la_LIBADD = @POLKIT_LIBS@ @GLIB_LIBS@
166 polkit_la_CFLAGS = $(AM_CFLAGS) @POLKIT_CFLAGS@
170 policydir = @POLKIT_DATADIR@
172 policy_DATA = connman.policy
177 plugin_LTLIBRARIES += iwmxsdk.la
178 iwmxsdk_la_SOURCES = iwmx.h iwmx.c iwmxsdk.c
179 iwmxsdk_la_LIBADD = @IWMXSDK_LIBS@ @GLIB_LIBS@
180 iwmxsdk_la_CFLAGS = $(AM_CFLAGS) @IWMXSDK_CFLAGS@
184 plugin_LTLIBRARIES += iospm.la
188 plugin_LTLIBRARIES += fake.la
191 noinst_LTLIBRARIES = libbuiltin.la
193 libbuiltin_la_SOURCES = $(builtin_sources)
194 libbuiltin_la_LIBADD = $(builtin_libadd)
195 libbuiltin_la_CFLAGS = $(AM_CFLAGS) \
196 $(builtin_cflags) -DCONNMAN_PLUGIN_BUILTIN \
197 -DSTATEDIR=\""$(statedir)"\" -DSCRIPTDIR=\""$(scriptdir)"\"
199 BUILT_SOURCES = builtin.h
201 nodist_libbuiltin_la_SOURCES = $(BUILT_SOURCES)
203 AM_LDFLAGS = -no-undefined -module -avoid-version
205 statedir = $(localstatedir)/run/connman
208 scriptdir = $(abs_top_srcdir)/scripts
210 scriptdir = $(libdir)/connman/scripts
213 AM_CFLAGS = -fvisibility=hidden @GLIB_CFLAGS@ @GDBUS_CFLAGS@
215 INCLUDES = -I$(top_builddir)/include
217 CLEANFILES = $(BUILT_SOURCES) connman.policy
219 EXTRA_DIST = polkit.policy
221 MAINTAINERCLEANFILES = Makefile.in
225 list='$(builtin_modules)'; for i in $$list; \
226 do echo "extern struct connman_plugin_desc __connman_builtin_$$i;" >> $@; done
228 echo "static struct connman_plugin_desc *__connman_builtin[] = {" >> $@
229 list='$(builtin_modules)'; for i in $$list; \
230 do echo "&__connman_builtin_$$i," >> $@; done
233 connman.policy: polkit.policy