Set the network roaming toggle according to oFono status
[framework/connectivity/connman.git] / Makefile.am
index 0e13bf5..41fffae 100644 (file)
@@ -6,6 +6,7 @@ includedir = @includedir@/connman
 include_HEADERS = include/types.h include/log.h include/plugin.h \
                        include/security.h include/notifier.h \
                        include/storage.h include/service.h \
+                       include/resolver.h include/ipconfig.h \
                        include/device.h include/network.h include/inet.h
 
 nodist_include_HEADERS = include/version.h
@@ -13,8 +14,9 @@ nodist_include_HEADERS = include/version.h
 noinst_HEADERS = include/driver.h include/element.h include/property.h \
                        include/rtnl.h include/wifi.h include/task.h \
                        include/dbus.h include/rfkill.h include/option.h \
-                       include/resolver.h include/ipconfig.h \
-                       include/profile.h include/provider.h
+                       include/profile.h include/provider.h include/dhcp.h \
+                       include/utsname.h include/timeserver.h \
+                       include/location.h
 
 local_headers = $(foreach file,$(include_HEADERS) $(nodist_include_HEADERS) \
                        $(noinst_HEADERS), include/connman/$(notdir $(file)))
@@ -48,8 +50,11 @@ src_connmand_SOURCES = $(gdbus_sources) $(builtin_sources) \
                        src/manager.c src/profile.c src/service.c \
                        src/agent.c src/notifier.c src/provider.c \
                        src/security.c src/resolver.c src/ipconfig.c \
-                       src/ipv4.c src/storage.c src/rfkill.c src/rtnl.c \
-                       src/inet.c src/wifi.c src/dbus.c
+                       src/ipv4.c src/dhcp.c src/rtnl.c src/inet.c \
+                       src/utsname.c src/timeserver.c src/rfkill.c \
+                       src/wifi.c src/storage.c src/dbus.c src/config.c \
+                       src/technology.c src/counter.c src/location.c \
+                       src/session.c
 
 if UDEV
 src_connmand_SOURCES += src/udev.c
@@ -57,8 +62,8 @@ else
 src_connmand_SOURCES += src/udev-compat.c
 endif
 
-src_connmand_LDADD = $(builtin_libadd) @GLIB_LIBS@ @GTHREAD_LIBS@ \
-                                               @DBUS_LIBS@ @UDEV_LIBS@ -ldl
+src_connmand_LDADD = $(builtin_libadd) \
+                       @GLIB_LIBS@ @DBUS_LIBS@ @CAPNG_LIBS@ @UDEV_LIBS@ -ldl
 
 src_connmand_LDFLAGS = -Wl,--export-dynamic -Wl,--version-script=src/connman.ver
 
@@ -83,8 +88,8 @@ build_plugindir = $(plugindir)
 build_scriptdir = $(scriptdir)
 endif
 
-AM_CFLAGS = @UDEV_CFLAGS@ @NETLINK_CFLAGS@ @DBUS_CFLAGS@ \
-               @GLIB_CFLAGS@ @GTHREAD_CFLAGS@ $(builtin_cflags) \
+AM_CFLAGS = @UDEV_CFLAGS@ @NETLINK_CFLAGS@ @CAPNG_CFLAGS@ \
+                       @DBUS_CFLAGS@ @GLIB_CFLAGS@ $(builtin_cflags) \
                                -DCONNMAN_PLUGIN_BUILTIN \
                                -DSTATEDIR=\""$(statedir)"\" \
                                -DPLUGINDIR=\""$(build_plugindir)"\" \
@@ -110,27 +115,55 @@ client_cm_LDADD = @DBUS_LIBS@
 endif
 
 if TOOLS
-noinst_PROGRAMS += tools/wifi-scan tools/addr-test tools/tap-test
+noinst_PROGRAMS += tools/wifi-scan tools/supplicant-test tools/dbus-test \
+                       tools/addr-test tools/tap-test tools/resolv-test \
+                                       tools/polkit-test tools/portal-test
 
 tools_wifi_scan_LDADD = @GLIB_LIBS@ @NETLINK_LIBS@
+
+tools_supplicant_test_SOURCES = $(gdbus_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_dbus_test_SOURCES = $(gdbus_sources) tools/dbus-test.c
+tools_dbus_test_LDADD = @GLIB_LIBS@ @DBUS_LIBS@
+
+tools_resolv_test_LDADD = -lresolv
+
+tools_polkit_test_LDADD = @DBUS_LIBS@
+
+tools_portal_test_LDADD = @GLIB_LIBS@
 endif
 
-EXTRA_DIST += test/get-state test/list-profiles test/list-services \
-               test/connect-service test/list-connections \
-               test/select-connection test/list-devices test/enable-device \
-               test/disable-device test/start-scanning test/list-networks \
+test_scripts = test/get-state test/list-profiles test/list-services \
+               test/connect-service test/monitor-services \
+               test/list-devices test/enable-device test/disable-device \
+               test/start-scanning test/list-networks \
                test/set-passphrase test/set-address test/test-profile \
                test/simple-agent test/show-introspection test/test-compat \
                test/test-manager test/test-connman test/monitor-connman \
-               test/monitor-services test/debug-connman
+               test/connect-vpn test/disconnect-vpn test/list-providers \
+               test/monitor-manager test/test-counter test/set-ip-method \
+               test/set-nameservers test/set-domains test/find-service \
+               test/get-services
+
+if TEST
+testdir = $(pkglibdir)/test
+test_SCRIPTS = $(test_scripts)
+endif
+
+EXTRA_DIST += $(test_scripts)
 
 EXTRA_DIST += doc/overview-api.txt doc/behavior-api.txt \
                                doc/ipconfig-api.txt doc/plugin-api.txt \
                                doc/manager-api.txt doc/agent-api.txt \
                                doc/profile-api.txt doc/service-api.txt \
+                               doc/technology-api.txt doc/counter-api.txt \
                                doc/device-lowlevel-api.txt \
                                doc/network-lowlevel-api.txt \
-                               doc/connection-lowlevel-api.txt
+                               doc/advanced-configuration.txt \
+                               doc/config-format.txt
 
 pkgconfigdir = $(libdir)/pkgconfig
 
@@ -147,13 +180,13 @@ DISTCHECK_CONFIGURE_FLAGS = --disable-gtk-doc \
                                --enable-dhclient \
                                --enable-resolvconf \
                                --enable-dnsproxy \
-                               --enable-novatel \
-                               --enable-huawei \
-                               --enable-hso \
-                               --enable-mbm \
+                               --enable-google \
+                               --enable-meego \
                                --enable-udev \
-                               --enable-polkit \
                                --enable-client \
+                               --enable-portal \
+                               --enable-hh2serial-gps \
+                               --enable-ntpd \
                                --enable-tools
 
 DISTCLEANFILES = $(pkgconfig_DATA)
@@ -194,5 +227,5 @@ include/connman/%.h: include/%.h
        $(AM_V_at)$(MKDIR_P) include/connman
        $(AM_V_GEN)$(LN_S) $(abs_top_srcdir)/$< $@
 
-clean-local: include/connman
-       @$(RM) -r $<
+clean-local:
+       @$(RM) -rf include/connman