diff options
author | Zhang zhengguang <zhengguang.zhang@intel.com> | 2014-07-17 10:37:39 +0800 |
---|---|---|
committer | Zhang zhengguang <zhengguang.zhang@intel.com> | 2014-07-17 10:37:39 +0800 |
commit | 1b9d0a62f59bb48c8deb2f0b98d9acdffdd9abe7 (patch) | |
tree | 6e991827d28537f7f40f20786c2354fd04a9fdad /Makefile.am | |
parent | fbe905ab58ecc31fe64c410c5f580cadc30e7f04 (diff) | |
download | connman-1b9d0a62f59bb48c8deb2f0b98d9acdffdd9abe7.tar.gz connman-1b9d0a62f59bb48c8deb2f0b98d9acdffdd9abe7.tar.bz2 connman-1b9d0a62f59bb48c8deb2f0b98d9acdffdd9abe7.zip |
Imported Upstream version 1.24upstream/1.24
Diffstat (limited to 'Makefile.am')
-rw-r--r-- | Makefile.am | 81 |
1 files changed, 50 insertions, 31 deletions
diff --git a/Makefile.am b/Makefile.am index a51c64f4..53bf799e 100644 --- a/Makefile.am +++ b/Makefile.am @@ -1,15 +1,17 @@ AM_MAKEFLAGS = --no-print-directory +noinst_LTLIBRARIES = + includedir = @includedir@/connman -include_HEADERS = include/types.h include/log.h include/plugin.h \ +include_HEADERS = include/log.h include/plugin.h \ include/notifier.h include/service.h \ include/resolver.h include/ipconfig.h \ include/device.h include/network.h include/inet.h \ include/storage.h include/provision.h \ include/session.h include/ipaddress.h include/agent.h \ - include/inotify.h + include/inotify.h include/peer.h nodist_include_HEADERS = include/version.h @@ -23,7 +25,10 @@ local_headers = $(foreach file,$(include_HEADERS) $(nodist_include_HEADERS) \ $(noinst_HEADERS), include/connman/$(notdir $(file))) -gdbus_sources = gdbus/gdbus.h gdbus/mainloop.c gdbus/watch.c \ +noinst_LTLIBRARIES += gdbus/libgdbus-internal.la + +gdbus_libgdbus_internal_la_SOURCES = gdbus/gdbus.h \ + gdbus/mainloop.c gdbus/watch.c \ gdbus/object.c gdbus/client.c gdbus/polkit.c gdhcp_sources = gdhcp/gdhcp.h gdhcp/common.h gdhcp/common.c gdhcp/client.c \ @@ -37,6 +42,9 @@ else gweb_sources += gweb/giognutls.h gweb/gionotls.c endif +shared_sources = src/shared/util.h src/shared/util.c \ + src/shared/netlink.h src/shared/netlink.c + if DATAFILES if NMCOMPAT @@ -81,8 +89,8 @@ MANUAL_PAGES = sbin_PROGRAMS = src/connmand -src_connmand_SOURCES = $(gdbus_sources) $(gdhcp_sources) $(gweb_sources) \ - $(builtin_sources) src/connman.ver \ +src_connmand_SOURCES = $(gdhcp_sources) $(gweb_sources) \ + $(builtin_sources) $(shared_sources) src/connman.ver \ src/main.c src/connman.h src/log.c \ src/error.c src/plugin.c src/task.c \ src/device.c src/network.c src/connection.c \ @@ -97,10 +105,11 @@ src_connmand_SOURCES = $(gdbus_sources) $(gdhcp_sources) $(gweb_sources) \ src/session.c src/tethering.c src/wpad.c src/wispr.c \ src/stats.c src/iptables.c src/dnsproxy.c src/6to4.c \ src/ippool.c src/bridge.c src/nat.c src/ipaddress.c \ - src/inotify.c src/firewall.c + src/inotify.c src/firewall.c src/ipv6pd.c src/peer.c -src_connmand_LDADD = $(builtin_libadd) @GLIB_LIBS@ @DBUS_LIBS@ \ - @XTABLES_LIBS@ @GNUTLS_LIBS@ -lresolv -ldl -lrt +src_connmand_LDADD = gdbus/libgdbus-internal.la $(builtin_libadd) \ + @GLIB_LIBS@ @DBUS_LIBS@ @XTABLES_LIBS@ @GNUTLS_LIBS@ \ + -lresolv -ldl -lrt src_connmand_LDFLAGS = -Wl,--export-dynamic \ -Wl,--version-script=$(srcdir)/src/connman.ver @@ -117,7 +126,7 @@ builtin_vpn_cflags = sbin_PROGRAMS += vpn/connman-vpnd -vpn_connman_vpnd_SOURCES = $(gdbus_sources) $(builtin_vpn_sources) \ +vpn_connman_vpnd_SOURCES = $(builtin_vpn_sources) \ $(gweb_sources) vpn/vpn.ver vpn/main.c vpn/vpn.h \ src/log.c src/error.c src/plugin.c src/task.c \ vpn/vpn-manager.c vpn/vpn-provider.c \ @@ -127,8 +136,9 @@ vpn_connman_vpnd_SOURCES = $(gdbus_sources) $(builtin_vpn_sources) \ vpn/vpn-agent.c vpn/vpn-agent.h src/inotify.c \ vpn/vpn-config.c -vpn_connman_vpnd_LDADD = $(builtin_vpn_libadd) @GLIB_LIBS@ @DBUS_LIBS@ \ - @GNUTLS_LIBS@ -lresolv -ldl +vpn_connman_vpnd_LDADD = gdbus/libgdbus-internal.la $(builtin_vpn_libadd) \ + @GLIB_LIBS@ @DBUS_LIBS@ @GNUTLS_LIBS@ \ + -lresolv -ldl vpn_connman_vpnd_LDFLAGS = -Wl,--export-dynamic \ -Wl,--version-script=$(srcdir)/vpn/vpn.ver @@ -143,6 +153,7 @@ endif CLEANFILES = src/connman.conf $(BUILT_SOURCES) statedir = $(localstatedir)/run/connman +vpn_statedir = $(localstatedir)/run/connman-vpn if VPN vpn_plugindir = $(libdir)/connman/plugins-vpn @@ -175,6 +186,7 @@ AM_CFLAGS = @DBUS_CFLAGS@ @GLIB_CFLAGS@ @XTABLES_CFLAGS@ \ @GNUTLS_CFLAGS@ $(builtin_cflags) \ -DCONNMAN_PLUGIN_BUILTIN \ -DSTATEDIR=\""$(statedir)"\" \ + -DVPN_STATEDIR=\""$(vpn_statedir)"\" \ -DPLUGINDIR=\""$(build_plugindir)"\" \ -DSCRIPTDIR=\""$(build_scriptdir)"\" \ -DSTORAGEDIR=\""$(storagedir)\"" \ @@ -205,7 +217,7 @@ if VPN vpn_connman_vpnd_CFLAGS = @DBUS_CFLAGS@ @GLIB_CFLAGS@ \ $(builtin_vpn_cflags) \ -DCONNMAN_PLUGIN_BUILTIN \ - -DSTATEDIR=\""$(statedir)"\" \ + -DVPN_STATEDIR=\""$(vpn_statedir)"\" \ -DPLUGINDIR=\""$(build_vpn_plugindir)"\" \ -DSCRIPTDIR=\""$(build_scriptdir)"\" \ -DSTORAGEDIR=\""$(storagedir)\"" \ @@ -228,16 +240,17 @@ noinst_PROGRAMS += client/connmanctl noinst_MANUAL_PAGES = doc/connmanctl.1 -client_connmanctl_SOURCES = $(gdbus_sources) \ - client/dbus_helpers.h client/dbus_helpers.c \ +client_connmanctl_SOURCES = client/dbus_helpers.h client/dbus_helpers.c \ client/services.h client/services.c \ client/commands.h client/commands.c \ client/input.h client/input.c \ client/agent.h client/agent.c \ + client/peers.h client/peers.c \ client/vpnconnections.h client/vpnconnections.c \ client/main.c -client_connmanctl_LDADD = @DBUS_LIBS@ @GLIB_LIBS@ -lreadline -ldl +client_connmanctl_LDADD = gdbus/libgdbus-internal.la @DBUS_LIBS@ @GLIB_LIBS@ \ + -lreadline -ldl endif noinst_PROGRAMS += unit/test-pbkdf2-sha1 unit/test-prf-sha1 unit/test-ippool @@ -250,9 +263,9 @@ unit_test_prf_sha1_SOURCES = unit/test-prf-sha1.c \ src/shared/sha1.h src/shared/sha1.c unit_test_prf_sha1_LDADD = @GLIB_LIBS@ -unit_test_ippool_SOURCES = $(gdbus_sources) src/log.c src/dbus.c \ - src/ippool.c unit/test-ippool.c -unit_test_ippool_LDADD = @GLIB_LIBS@ @DBUS_LIBS@ -ldl +unit_test_ippool_SOURCES = src/log.c src/dbus.c src/ippool.c unit/test-ippool.c +unit_test_ippool_LDADD = gdbus/libgdbus-internal.la \ + @GLIB_LIBS@ @DBUS_LIBS@ -ldl TESTS = unit/test-pbkdf2-sha1 unit/test-prf-sha1 unit/test-ippool @@ -271,12 +284,13 @@ noinst_PROGRAMS += tools/supplicant-test \ tools/iptables-test tools/tap-test tools/wpad-test \ tools/stats-tool tools/private-network-test \ tools/session-test tools/iptables-unit \ - tools/dnsproxy-test + tools/dnsproxy-test tools/netlink-test -tools_supplicant_test_SOURCES = $(gdbus_sources) tools/supplicant-test.c \ +tools_supplicant_test_SOURCES = tools/supplicant-test.c \ tools/supplicant-dbus.h tools/supplicant-dbus.c \ tools/supplicant.h tools/supplicant.c -tools_supplicant_test_LDADD = @GLIB_LIBS@ @DBUS_LIBS@ +tools_supplicant_test_LDADD = gdbus/libgdbus-internal.la \ + @GLIB_LIBS@ @DBUS_LIBS@ tools_web_test_SOURCES = $(gweb_sources) tools/web-test.c tools_web_test_LDADD = @GLIB_LIBS@ @GNUTLS_LIBS@ -lresolv @@ -295,8 +309,8 @@ tools_dhcp_test_LDADD = @GLIB_LIBS@ tools_dhcp_server_test_SOURCES = $(gdhcp_sources) tools/dhcp-server-test.c tools_dhcp_server_test_LDADD = @GLIB_LIBS@ -tools_dbus_test_SOURCES = $(gdbus_sources) tools/dbus-test.c -tools_dbus_test_LDADD = @GLIB_LIBS@ @DBUS_LIBS@ +tools_dbus_test_SOURCES = tools/dbus-test.c +tools_dbus_test_LDADD = gdbus/libgdbus-internal.la @GLIB_LIBS@ @DBUS_LIBS@ tools_polkit_test_LDADD = @DBUS_LIBS@ @@ -305,20 +319,25 @@ tools_iptables_test_LDADD = @GLIB_LIBS@ @XTABLES_LIBS@ -ldl tools_private_network_test_LDADD = @GLIB_LIBS@ @DBUS_LIBS@ -tools_session_test_SOURCES = $(gdbus_sources) src/log.c src/dbus.c \ +tools_session_test_SOURCES = src/log.c src/dbus.c \ tools/session-test.c tools/session-utils.c tools/manager-api.c \ tools/session-api.c tools/session-test.h -tools_session_test_LDADD = @GLIB_LIBS@ @DBUS_LIBS@ -ldl +tools_session_test_LDADD = gdbus/libgdbus-internal.la \ + @GLIB_LIBS@ @DBUS_LIBS@ -ldl tools_iptables_unit_CFLAGS = @DBUS_CFLAGS@ @GLIB_CFLAGS@ @XTABLES_CFLAGS@ \ -DIPTABLES_SAVE=\""${IPTABLES_SAVE}"\" -tools_iptables_unit_SOURCES = $(gdbus_sources) src/log.c \ +tools_iptables_unit_SOURCES = src/log.c \ src/iptables.c src/firewall.c src/nat.c tools/iptables-unit.c -tools_iptables_unit_LDADD = @GLIB_LIBS@ @DBUS_LIBS@ @XTABLES_LIBS@ -ldl +tools_iptables_unit_LDADD = gdbus/libgdbus-internal.la \ + @GLIB_LIBS@ @DBUS_LIBS@ @XTABLES_LIBS@ -ldl tools_dnsproxy_test_SOURCES = tools/dnsproxy-test.c tools_dnsproxy_test_LDADD = @GLIB_LIBS@ +tools_netlink_test_SOURCES =$(shared_sources) tools/netlink-test.c +tools_netlink_test_LDADD = @GLIB_LIBS@ + endif test_scripts = test/get-state test/list-services \ @@ -329,7 +348,7 @@ test_scripts = test/get-state test/list-services \ test/test-counter test/set-ipv4-method test/set-ipv6-method \ test/get-services test/get-proxy-autoconfig test/set-proxy \ test/enable-tethering test/disable-tethering test/backtrace \ - test/test-session test/test-supplicant \ + test/test-session test/p2p-on-supplicant \ test/test-new-supplicant test/service-move-before \ test/set-global-timeservers test/get-global-timeservers \ test/set-nameservers test/set-domains test/set-timeservers \ @@ -357,7 +376,8 @@ EXTRA_DIST += doc/overview-api.txt doc/behavior-api.txt \ doc/vpn-manager-api.txt doc/vpn-overview.txt \ doc/session-policy-format.txt -EXTRA_DIST += src/main.conf +EXTRA_DIST += src/main.conf \ + src/eduroam.config MANUAL_PAGES += doc/connman.8 doc/connman.conf.5 @@ -367,8 +387,7 @@ pkgconfigdir = $(libdir)/pkgconfig pkgconfig_DATA = connman.pc -DISTCHECK_CONFIGURE_FLAGS = --disable-gtk-doc \ - --disable-datafiles \ +DISTCHECK_CONFIGURE_FLAGS = --disable-datafiles \ --enable-hh2serial-gps \ --enable-openconnect \ --enable-openvpn \ |