summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorThomas Haller <thaller@redhat.com>2016-10-18 09:10:44 +0200
committerThomas Haller <thaller@redhat.com>2016-10-21 17:04:06 +0200
commiteecd05b5bfd497129021432775bd656ef7a61241 (patch)
tree0d1675e9d2d66d05d1198e4808b4f414007e374b
parentda006929dd23409e88b829cc27e2c498ebcdf36c (diff)
downloadNetworkManager-eecd05b5bfd497129021432775bd656ef7a61241.tar.gz
build: merge "src/devices/wifi/tests/Makefile.am" into toplevel Makefile
-rw-r--r--Makefile.am25
-rw-r--r--configure.ac2
-rw-r--r--src/Makefile.am4
-rw-r--r--src/devices/wifi/Makefile.am1
-rw-r--r--src/devices/wifi/tests/Makefile.am31
5 files changed, 25 insertions, 38 deletions
diff --git a/Makefile.am b/Makefile.am
index dc8f6c9c9f..cc85445d44 100644
--- a/Makefile.am
+++ b/Makefile.am
@@ -2482,6 +2482,31 @@ check-local-devices-wifi: src/devices/wifi/libnm-device-plugin-wifi.la
check_local += check-local-devices-wifi
+check_programs += src/devices/wifi/tests/test-general
+
+src_devices_wifi_tests_test_general_SOURCES = \
+ src/devices/wifi/tests/test-general.c \
+ src/devices/wifi/nm-wifi-ap.c \
+ src/devices/wifi/nm-wifi-ap.h \
+ src/devices/wifi/nm-wifi-utils.c \
+ src/devices/wifi/nm-wifi-utils.h
+
+src_devices_wifi_tests_test_general_CPPFLAGS = \
+ -I$(top_builddir)/introspection \
+ -I$(top_srcdir)/shared \
+ -I$(top_builddir)/shared \
+ -I$(top_srcdir)/libnm-core \
+ -I$(top_builddir)/libnm-core \
+ -I${top_srcdir}/src/platform \
+ -I$(top_srcdir)/src \
+ -I$(top_srcdir)/src/devices/wifi \
+ -I$(top_builddir)/src \
+ -DG_LOG_DOMAIN=\""NetworkManager"\" \
+ -DNETWORKMANAGER_COMPILATION=NM_NETWORKMANAGER_COMPILATION_INSIDE_DAEMON \
+ $(GLIB_CFLAGS)
+
+src_devices_wifi_tests_test_general_LDADD = src/libNetworkManager.la
+
endif
###############################################################################
diff --git a/configure.ac b/configure.ac
index 1232d228fc..039bb00f64 100644
--- a/configure.ac
+++ b/configure.ac
@@ -1147,8 +1147,6 @@ src/rdisc/tests/Makefile
src/devices/Makefile
src/devices/tests/Makefile
src/devices/team/Makefile
-src/devices/wifi/Makefile
-src/devices/wifi/tests/Makefile
libnm/libnm.pc
libnm-util/libnm-util.pc
libnm-util/Makefile
diff --git a/src/Makefile.am b/src/Makefile.am
index a6c5bf1b33..c36375841a 100644
--- a/src/Makefile.am
+++ b/src/Makefile.am
@@ -1,9 +1,5 @@
SUBDIRS =
-if WITH_WIFI
-SUBDIRS += devices/wifi
-endif
-
if WITH_TEAMDCTL
SUBDIRS += devices/team
endif
diff --git a/src/devices/wifi/Makefile.am b/src/devices/wifi/Makefile.am
deleted file mode 100644
index 1d42320f0d..0000000000
--- a/src/devices/wifi/Makefile.am
+++ /dev/null
@@ -1 +0,0 @@
-SUBDIRS=tests
diff --git a/src/devices/wifi/tests/Makefile.am b/src/devices/wifi/tests/Makefile.am
deleted file mode 100644
index e12f4c0eb5..0000000000
--- a/src/devices/wifi/tests/Makefile.am
+++ /dev/null
@@ -1,31 +0,0 @@
-if ENABLE_TESTS
-
-AM_CPPFLAGS = \
- -I$(top_builddir)/introspection \
- -I$(top_srcdir)/shared \
- -I$(top_builddir)/shared \
- -I$(top_srcdir)/libnm-core \
- -I$(top_builddir)/libnm-core \
- -I${top_srcdir}/src/platform \
- -I$(top_srcdir)/src \
- -I$(top_srcdir)/src/devices/wifi \
- -I$(top_builddir)/src \
- -DG_LOG_DOMAIN=\""NetworkManager"\" \
- -DNETWORKMANAGER_COMPILATION=NM_NETWORKMANAGER_COMPILATION_INSIDE_DAEMON \
- $(GLIB_CFLAGS)
-
-noinst_PROGRAMS = test-general
-
-test_general_SOURCES = \
- test-general.c \
- $(srcdir)/../nm-wifi-ap.c \
- $(srcdir)/../nm-wifi-ap.h \
- $(srcdir)/../nm-wifi-utils.c \
- $(srcdir)/../nm-wifi-utils.h
-
-test_general_LDADD = $(top_builddir)/src/libNetworkManager.la
-
-@NM_LOG_COMPILER@
-TESTS = test-general
-
-endif