[rtems commit] testsuite/benchmarks: Merged nested Makefile.am files into one Makefile.am
Chris Johns
chrisj at rtems.org
Mon Apr 9 22:36:33 UTC 2018
Module: rtems
Branch: master
Commit: 32f2629bb7a08f2c006dda792020aaa10a4f1649
Changeset: http://git.rtems.org/rtems/commit/?id=32f2629bb7a08f2c006dda792020aaa10a4f1649
Author: Chris Johns <chrisj at rtems.org>
Date: Mon Apr 9 13:35:17 2018 +1000
testsuite/benchmarks: Merged nested Makefile.am files into one Makefile.am
This change is part of the testsuite Makefile.am reorganization.
Update #3382
---
testsuites/benchmarks/Makefile.am | 50 ++++++++++++++++++++++++++---
testsuites/benchmarks/configure.ac | 12 +++----
testsuites/benchmarks/dhrystone/Makefile.am | 20 ------------
testsuites/benchmarks/linpack/Makefile.am | 21 ------------
testsuites/benchmarks/whetstone/Makefile.am | 21 ------------
5 files changed, 51 insertions(+), 73 deletions(-)
diff --git a/testsuites/benchmarks/Makefile.am b/testsuites/benchmarks/Makefile.am
index 6c5fe7f..fe73c4b 100644
--- a/testsuites/benchmarks/Makefile.am
+++ b/testsuites/benchmarks/Makefile.am
@@ -1,9 +1,49 @@
+#
+# Benchmarks
+#
+
ACLOCAL_AMFLAGS = -I ../aclocal
-_SUBDIRS =
-_SUBDIRS += dhrystone
-_SUBDIRS += linpack
-_SUBDIRS += whetstone
+include $(RTEMS_ROOT)/make/custom/@RTEMS_BSP at .cfg
+include $(top_srcdir)/../automake/compile.am
+
+benchmarks =
+benchmark_screens =
+benchmark_docs =
+
+support_includes = -I$(top_srcdir)/../support/include
+
+if TEST_dhrystone
+benchmarks += dhrystone
+benchmark_screens += dhrystone/dhrystone.scn
+benchmark_docs += dhrystone/dhrystone.doc
+dhrystone_SOURCES = dhrystone/init.c dhrystone/dhry_1.c \
+ dhrystone/dhry_2.c
+dhrystone_CPPFLAGS = $(AM_CPPFLAGS) $(TEST_FLAGS_dhrystone) \
+ $(support_includes)
+endif
+
+if TEST_linpack
+benchmarks += linpack
+benchmark_screens += linpack/linpack.scn
+benchmark_docs += linpack/linpack.doc
+linpack_SOURCES = linpack/init.c linpack/linpack-pc.c
+linpack_CPPFLAGS = $(AM_CPPFLAGS) $(TEST_FLAGS_linpack) \
+ $(support_includes)
+linpack_LDADD = -lm
+endif
+
+if TEST_whetstone
+benchmarks += whetstone
+benchmark_screens += whetstone/whetstone.scn
+benchmark_docs += whetstone/whetstone.doc
+whetstone_SOURCES = whetstone/init.c whetstone/whetstone.c
+whetstone_CPPFLAGS = $(AM_CPPFLAGS) $(TEST_FLAGS_whetstone) \
+ $(support_includes)
+whetstone_LDADD = -lm
+endif
+
+rtems_tests_PROGRAMS = $(benchmarks)
+dist_rtems_tests_DATA = $(benchmark_screens) $(benchmark_docs)
-include $(top_srcdir)/../automake/subdirs.am
include $(top_srcdir)/../automake/local.am
diff --git a/testsuites/benchmarks/configure.ac b/testsuites/benchmarks/configure.ac
index a9dbefc..4ddfca0 100644
--- a/testsuites/benchmarks/configure.ac
+++ b/testsuites/benchmarks/configure.ac
@@ -22,10 +22,10 @@ RTEMS_CANONICALIZE_TOOLS
RTEMS_CHECK_CUSTOM_BSP(RTEMS_BSP)
-# Explicitly list all Makefiles here
-AC_CONFIG_FILES([Makefile
-dhrystone/Makefile
-linpack/Makefile
-whetstone/Makefile
-])
+# BSP Test configuration
+RTEMS_TEST_CHECK([dhrystone])
+RTEMS_TEST_CHECK([linpack])
+RTEMS_TEST_CHECK([whetstone])
+
+AC_CONFIG_FILES([Makefile])
AC_OUTPUT
diff --git a/testsuites/benchmarks/dhrystone/Makefile.am b/testsuites/benchmarks/dhrystone/Makefile.am
deleted file mode 100644
index 73b6721..0000000
--- a/testsuites/benchmarks/dhrystone/Makefile.am
+++ /dev/null
@@ -1,20 +0,0 @@
-rtems_tests_PROGRAMS = dhrystone
-dhrystone_SOURCES = init.c dhry_1.c dhry_2.c
-
-dist_rtems_tests_DATA = dhrystone.scn dhrystone.doc
-
-include $(RTEMS_ROOT)/make/custom/@RTEMS_BSP at .cfg
-include $(top_srcdir)/../automake/compile.am
-include $(top_srcdir)/../automake/leaf.am
-
-AM_CPPFLAGS += -I$(top_srcdir)/../support/include
-AM_CFLAGS += -fno-inline -fno-builtin
-
-LINK_OBJS = $(dhrystone_OBJECTS)
-LINK_LIBS = $(dhrystone_LDLIBS)
-
-dhrystone$(EXEEXT): $(dhrystone_OBJECTS) $(dhrystone_DEPENDENCIES)
- @rm -f dhrystone$(EXEEXT)
- $(make-exe)
-
-include $(top_srcdir)/../automake/local.am
diff --git a/testsuites/benchmarks/linpack/Makefile.am b/testsuites/benchmarks/linpack/Makefile.am
deleted file mode 100644
index 2f5c25c..0000000
--- a/testsuites/benchmarks/linpack/Makefile.am
+++ /dev/null
@@ -1,21 +0,0 @@
-rtems_tests_PROGRAMS = linpack
-linpack_SOURCES = init.c linpack-pc.c
-linpack_LDADD = -lm
-
-dist_rtems_tests_DATA = linpack.scn linpack.doc
-
-include $(RTEMS_ROOT)/make/custom/@RTEMS_BSP at .cfg
-include $(top_srcdir)/../automake/compile.am
-include $(top_srcdir)/../automake/leaf.am
-
-AM_CPPFLAGS += -I$(top_srcdir)/../support/include
-AM_CFLAGS += -fno-inline -fno-builtin
-
-LINK_OBJS = $(linpack_OBJECTS) $(linpack_LDADD)
-LINK_LIBS = $(linpack_LDLIBS)
-
-linpack$(EXEEXT): $(linpack_OBJECTS) $(linpack_DEPENDENCIES)
- @rm -f linpack$(EXEEXT)
- $(make-exe)
-
-include $(top_srcdir)/../automake/local.am
diff --git a/testsuites/benchmarks/whetstone/Makefile.am b/testsuites/benchmarks/whetstone/Makefile.am
deleted file mode 100644
index a325ddc..0000000
--- a/testsuites/benchmarks/whetstone/Makefile.am
+++ /dev/null
@@ -1,21 +0,0 @@
-rtems_tests_PROGRAMS = whetstone
-whetstone_SOURCES = init.c whetstone.c
-whetstone_LDADD = -lm
-
-dist_rtems_tests_DATA = whetstone.scn whetstone.doc
-
-include $(RTEMS_ROOT)/make/custom/@RTEMS_BSP at .cfg
-include $(top_srcdir)/../automake/compile.am
-include $(top_srcdir)/../automake/leaf.am
-
-AM_CPPFLAGS += -I$(top_srcdir)/../support/include
-AM_CFLAGS += -fno-inline -fno-builtin
-
-LINK_OBJS = $(whetstone_OBJECTS) $(whetstone_LDADD)
-LINK_LIBS = $(whetstone_LDLIBS)
-
-whetstone$(EXEEXT): $(whetstone_OBJECTS) $(whetstone_DEPENDENCIES)
- @rm -f whetstone$(EXEEXT)
- $(make-exe)
-
-include $(top_srcdir)/../automake/local.am
More information about the vc
mailing list