2 AM_MAKEFLAGS = --no-print-directory
4 includedir = @includedir@/connman
6 include_HEADERS = include/types.h include/log.h include/plugin.h \
7 include/security.h include/notifier.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
19 local_headers = $(foreach file,$(include_HEADERS) $(nodist_include_HEADERS) \
20 $(noinst_HEADERS), include/connman/$(notdir $(file)))
23 gdbus_sources = gdbus/gdbus.h gdbus/mainloop.c gdbus/object.c gdbus/watch.c
26 dbusdir = @DBUS_DATADIR@
28 dbus_DATA = src/connman.conf
42 sbin_PROGRAMS = src/connmand
44 src_connmand_SOURCES = $(gdbus_sources) $(builtin_sources) \
45 src/main.c src/connman.h src/log.c src/selftest.c \
46 src/error.c src/plugin.c src/task.c src/element.c \
47 src/device.c src/network.c src/connection.c \
48 src/manager.c src/profile.c src/service.c \
49 src/agent.c src/notifier.c src/provider.c \
50 src/security.c src/resolver.c src/ipconfig.c \
51 src/ipv4.c src/dhcp.c src/rtnl.c src/inet.c \
52 src/rfkill.c src/wifi.c src/storage.c src/dbus.c
55 src_connmand_SOURCES += src/udev.c
57 src_connmand_SOURCES += src/udev-compat.c
60 src_connmand_LDADD = $(builtin_libadd) \
61 @GLIB_LIBS@ @DBUS_LIBS@ @CAPNG_LIBS@ @UDEV_LIBS@ -ldl
63 src_connmand_LDFLAGS = -Wl,--export-dynamic -Wl,--version-script=src/connman.ver
65 src_connmand_DEPENDENCIES = src/connman.ver
67 CLEANFILES = src/connman.ver src/connman.exp src/connman.conf \
68 src/builtin.h $(local_headers)
70 statedir = $(localstatedir)/run/connman
72 plugindir = $(libdir)/connman/plugins
74 scriptdir = $(libdir)/connman/scripts
76 storagedir = $(localstatedir)/lib/connman
79 build_plugindir = $(abs_top_srcdir)/plugins/.libs
80 build_scriptdir = $(abs_top_srcdir)/scripts
82 build_plugindir = $(plugindir)
83 build_scriptdir = $(scriptdir)
86 AM_CFLAGS = @UDEV_CFLAGS@ @NETLINK_CFLAGS@ @CAPNG_CFLAGS@ \
87 @DBUS_CFLAGS@ @GLIB_CFLAGS@ $(builtin_cflags) \
88 @GLIB_CFLAGS@ $(builtin_cflags) \
89 -DCONNMAN_PLUGIN_BUILTIN \
90 -DSTATEDIR=\""$(statedir)"\" \
91 -DPLUGINDIR=\""$(build_plugindir)"\" \
92 -DSCRIPTDIR=\""$(build_scriptdir)"\" \
93 -DSTORAGEDIR=\""$(storagedir)\""
95 INCLUDES = -I$(builddir)/include -I$(builddir)/src -I$(srcdir)/gdbus
97 EXTRA_DIST = src/genbuiltin src/connman-dbus.conf src/connman-polkit.conf
104 include Makefile.plugins
107 noinst_PROGRAMS += client/cm
109 client_cm_SOURCES = client/main.c
110 client_cm_LDADD = @DBUS_LIBS@
114 noinst_PROGRAMS += tools/wifi-scan tools/addr-test tools/tap-test \
117 tools_wifi_scan_LDADD = @GLIB_LIBS@ @NETLINK_LIBS@
119 tools_polkit_test_LDADD = @DBUS_LIBS@
122 test_scripts = test/get-state test/list-profiles test/list-services \
123 test/connect-service test/list-connections \
124 test/select-connection test/list-devices test/enable-device \
125 test/disable-device test/start-scanning test/list-networks \
126 test/set-passphrase test/set-address test/test-profile \
127 test/simple-agent test/show-introspection test/test-compat \
128 test/test-manager test/test-connman test/monitor-connman \
129 test/monitor-services test/debug-connman
132 testdir = $(pkglibdir)/test
133 test_SCRIPTS = $(test_scripts)
136 EXTRA_DIST += $(test_scripts)
138 EXTRA_DIST += doc/overview-api.txt doc/behavior-api.txt \
139 doc/ipconfig-api.txt doc/plugin-api.txt \
140 doc/manager-api.txt doc/agent-api.txt \
141 doc/profile-api.txt doc/service-api.txt \
142 doc/device-lowlevel-api.txt \
143 doc/network-lowlevel-api.txt \
144 doc/connection-lowlevel-api.txt
146 pkgconfigdir = $(libdir)/pkgconfig
148 pkgconfig_DATA = connman.pc
150 DISTCHECK_CONFIGURE_FLAGS = --disable-gtk-doc \
151 --disable-datafiles \
159 --enable-resolvconf \
167 DISTCLEANFILES = $(pkgconfig_DATA)
169 MAINTAINERCLEANFILES = Makefile.in \
170 aclocal.m4 configure config.h.in config.sub config.guess \
171 ltmain.sh depcomp compile missing install-sh mkinstalldirs
174 src/plugin.$(OBJEXT): src/builtin.h
176 src/builtin.h: src/genbuiltin $(builtin_sources)
177 $(AM_V_GEN)$(srcdir)/src/genbuiltin $(builtin_modules) > $@
179 src/connman.exp: $(src_connmand_OBJECTS)
180 $(AM_V_GEN)$(NM) $^ | $(AWK) '{ print $$3 }' | sort -u | \
181 $(EGREP) -e '^connman_' -e '^g_dbus_' > $@
183 src/connman.ver: src/connman.exp
184 $(AM_V_at)echo "{ global:" > $@
185 $(AM_V_GEN)$(SED) -e "s/\(.*\)/\1;/" $< >> $@
186 $(AM_V_at)echo "local: *; };" >> $@
188 src/connman.conf: src/connman-dbus.conf src/connman-polkit.conf
190 $(AM_V_GEN)cp $(srcdir)/src/connman-polkit.conf $@
192 $(AM_V_GEN)cp $(srcdir)/src/connman-dbus.conf $@
195 $(src_connmand_OBJECTS) $(plugin_objects): $(local_headers)
197 include/connman/version.h: include/version.h
198 $(AM_V_at)$(MKDIR_P) include/connman
199 $(AM_V_GEN)$(LN_S) $(abs_top_builddir)/$< $@
201 include/connman/%.h: include/%.h
202 $(AM_V_at)$(MKDIR_P) include/connman
203 $(AM_V_GEN)$(LN_S) $(abs_top_srcdir)/$< $@
205 clean-local: include/connman