2 AM_MAKEFLAGS = --no-print-directory
4 includedir = @includedir@/connman
6 include_HEADERS = include/types.h include/log.h include/plugin.h \
8 include/storage.h include/service.h \
9 include/resolver.h include/ipconfig.h \
10 include/device.h include/network.h include/inet.h
12 nodist_include_HEADERS = include/version.h
14 noinst_HEADERS = include/driver.h include/element.h include/property.h \
15 include/rtnl.h include/wifi.h include/task.h \
16 include/dbus.h include/rfkill.h include/option.h \
17 include/profile.h include/provider.h \
18 include/utsname.h include/timeserver.h include/proxy.h \
19 include/location.h include/technology.h \
22 local_headers = $(foreach file,$(include_HEADERS) $(nodist_include_HEADERS) \
23 $(noinst_HEADERS), include/connman/$(notdir $(file)))
26 gdbus_sources = gdbus/gdbus.h gdbus/mainloop.c gdbus/watch.c \
27 gdbus/object.c gdbus/polkit.c
29 gdhcp_sources = gdhcp/gdhcp.h gdhcp/common.h gdhcp/common.c gdhcp/client.c \
30 gdhcp/server.c gdhcp/ipv4ll.h gdhcp/ipv4ll.c
32 gweb_sources = gweb/gweb.h gweb/gweb.c gweb/gresolv.h gweb/gresolv.c \
33 gweb/giognutls.h gweb/giognutls.c
38 nmcompat_conf = plugins/connman-nmcompat.conf
41 dbusconfdir = @DBUS_CONFDIR@
43 dbusconf_DATA = src/connman.conf $(nmcompat_conf)
46 systemdunitdir = @SYSTEMD_UNITDIR@
48 systemdunit_DATA = src/connman.service
63 sbin_PROGRAMS = src/connmand
65 src_connmand_SOURCES = $(gdbus_sources) $(gdhcp_sources) \
66 gweb/gweb.h gweb/gweb.c \
67 gweb/gresolv.h gweb/gresolv.c \
68 gweb/giognutls.h gweb/gionotls.c \
69 $(builtin_sources) src/connman.ver \
70 src/main.c src/connman.h src/log.c \
71 src/error.c src/plugin.c src/task.c src/element.c \
72 src/device.c src/network.c src/connection.c \
73 src/manager.c src/profile.c src/service.c \
74 src/clock.c src/timezone.c \
75 src/agent.c src/notifier.c src/provider.c \
76 src/resolver.c src/ipconfig.c src/detect.c src/inet.c \
77 src/dhcp.c src/rtnl.c src/proxy.c \
78 src/utsname.c src/timeserver.c src/rfkill.c \
79 src/wifi.c src/storage.c src/dbus.c src/config.c \
80 src/technology.c src/counter.c src/location.c \
81 src/session.c src/tethering.c src/wpad.c src/wispr.c \
82 src/stats.c src/iptables.c src/dnsproxy.c src/6to4.c
84 src_connmand_LDADD = $(builtin_libadd) @GLIB_LIBS@ @DBUS_LIBS@ \
85 @CAPNG_LIBS@ @XTABLES_LIBS@ -lresolv -ldl
87 src_connmand_LDFLAGS = -Wl,--export-dynamic \
88 -Wl,--version-script=$(srcdir)/src/connman.ver
90 CLEANFILES = src/connman.conf src/builtin.h $(local_headers)
92 statedir = $(localstatedir)/run/connman
94 plugindir = $(libdir)/connman/plugins
96 scriptdir = $(libdir)/connman/scripts
98 storagedir = $(localstatedir)/lib/connman
100 configdir = ${sysconfdir}/connman
103 build_plugindir = $(abs_top_srcdir)/plugins/.libs
104 build_scriptdir = $(abs_top_srcdir)/scripts
106 build_plugindir = $(plugindir)
107 build_scriptdir = $(scriptdir)
110 AM_CFLAGS = @DBUS_CFLAGS@ @GLIB_CFLAGS@ @CAPNG_CFLAGS@ @XTABLES_CFLAGS@ \
111 @NETLINK_CFLAGS@ @GNUTLS_CFLAGS@ \
113 -DCONNMAN_PLUGIN_BUILTIN \
114 -DSTATEDIR=\""$(statedir)"\" \
115 -DPLUGINDIR=\""$(build_plugindir)"\" \
116 -DSCRIPTDIR=\""$(build_scriptdir)"\" \
117 -DSTORAGEDIR=\""$(storagedir)\"" \
118 -DCONFIGDIR=\""$(configdir)\""
120 INCLUDES = -I$(builddir)/include -I$(builddir)/src -I$(srcdir)/gdbus
122 EXTRA_DIST = src/genbuiltin src/connman-dbus.conf src/connman-polkit.conf \
123 plugins/connman-nmcompat.conf
130 include Makefile.plugins
133 noinst_PROGRAMS += client/cm
135 client_cm_SOURCES = client/main.c
136 client_cm_LDADD = @DBUS_LIBS@
140 noinst_PROGRAMS += tools/wispr tools/wifi-scan tools/supplicant-test \
141 tools/dhcp-test tools/dhcp-server-test \
142 tools/addr-test tools/web-test tools/resolv-test \
143 tools/dbus-test tools/polkit-test \
144 tools/iptables-test tools/tap-test tools/wpad-test \
147 tools_wispr_SOURCES = $(gweb_sources) tools/wispr.c
148 tools_wispr_LDADD = @GLIB_LIBS@ @GNUTLS_LIBS@ -lresolv
150 tools_wifi_scan_LDADD = @GLIB_LIBS@ @NETLINK_LIBS@
152 tools_supplicant_test_SOURCES = $(gdbus_sources) tools/supplicant-test.c \
153 tools/supplicant-dbus.h tools/supplicant-dbus.c \
154 tools/supplicant.h tools/supplicant.c
155 tools_supplicant_test_LDADD = @GLIB_LIBS@ @DBUS_LIBS@
157 tools_web_test_SOURCES = $(gweb_sources) tools/web-test.c
158 tools_web_test_LDADD = @GLIB_LIBS@ @GNUTLS_LIBS@ -lresolv
160 tools_resolv_test_SOURCES = gweb/gresolv.h gweb/gresolv.c tools/resolv-test.c
161 tools_resolv_test_LDADD = @GLIB_LIBS@ -lresolv
163 tools_wpad_test_SOURCES = gweb/gresolv.h gweb/gresolv.c tools/wpad-test.c
164 tools_wpad_test_LDADD = @GLIB_LIBS@ -lresolv
166 tools_stats_tool_LDADD = @GLIB_LIBS@
168 tools_dhcp_test_SOURCES = $(gdhcp_sources) tools/dhcp-test.c
169 tools_dhcp_test_LDADD = @GLIB_LIBS@
171 tools_dhcp_server_test_SOURCES = $(gdhcp_sources) tools/dhcp-server-test.c
172 tools_dhcp_server_test_LDADD = @GLIB_LIBS@
174 tools_dbus_test_SOURCES = $(gdbus_sources) tools/dbus-test.c
175 tools_dbus_test_LDADD = @GLIB_LIBS@ @DBUS_LIBS@
177 tools_polkit_test_LDADD = @DBUS_LIBS@
179 tools_iptables_test_LDADD = @GLIB_LIBS@ @XTABLES_LIBS@
182 test_scripts = test/get-state test/list-profiles test/list-services \
183 test/connect-service test/monitor-services \
184 test/set-address test/test-profile \
185 test/simple-agent test/show-introspection test/test-compat \
186 test/test-manager test/test-connman test/monitor-connman \
187 test/connect-vpn test/disconnect-vpn test/monitor-manager \
188 test/test-counter test/set-ipv4-method test/set-ipv6-method \
189 test/set-nameservers test/set-domains test/find-service \
190 test/get-services test/get-proxy-autoconfig test/set-proxy \
191 test/enable-tethering test/disable-tethering test/backtrace \
192 test/test-session test/provision-service
195 testdir = $(pkglibdir)/test
196 test_SCRIPTS = $(test_scripts)
199 EXTRA_DIST += $(test_scripts)
201 EXTRA_DIST += doc/overview-api.txt doc/behavior-api.txt \
202 doc/ipconfig-api.txt doc/plugin-api.txt \
203 doc/manager-api.txt doc/agent-api.txt \
204 doc/service-api.txt doc/technology-api.txt \
205 doc/counter-api.txt doc/config-format.txt \
206 doc/advanced-configuration.txt
209 pkgconfigdir = $(libdir)/pkgconfig
211 pkgconfig_DATA = connman.pc
213 DISTCHECK_CONFIGURE_FLAGS = --disable-gtk-doc \
214 --disable-datafiles \
225 --enable-hh2serial-gps \
227 --enable-openconnect \
230 DISTCLEANFILES = $(pkgconfig_DATA)
232 MAINTAINERCLEANFILES = Makefile.in \
233 aclocal.m4 configure config.h.in config.sub config.guess \
234 ltmain.sh depcomp compile missing install-sh mkinstalldirs
237 src/plugin.$(OBJEXT): src/builtin.h
239 src/builtin.h: src/genbuiltin $(builtin_sources)
240 $(AM_V_GEN)$(srcdir)/src/genbuiltin $(builtin_modules) > $@
242 src/connman.conf: src/connman-dbus.conf src/connman-polkit.conf
244 $(AM_V_GEN)cp $(srcdir)/src/connman-polkit.conf $@
246 $(AM_V_GEN)cp $(srcdir)/src/connman-dbus.conf $@
249 $(src_connmand_OBJECTS) $(plugin_objects): $(local_headers)
251 include/connman/version.h: include/version.h
252 $(AM_V_at)$(MKDIR_P) include/connman
253 $(AM_V_GEN)$(LN_S) $(abs_top_builddir)/$< $@
255 include/connman/%.h: include/%.h
256 $(AM_V_at)$(MKDIR_P) include/connman
257 $(AM_V_GEN)$(LN_S) $(abs_top_srcdir)/$< $@
260 @$(RM) -rf include/connman