From 32f2629bb7a08f2c006dda792020aaa10a4f1649 Mon Sep 17 00:00:00 2001 From: Chris Johns Date: Mon, 9 Apr 2018 13:35:17 +1000 Subject: 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(-) delete mode 100644 testsuites/benchmarks/dhrystone/Makefile.am delete mode 100644 testsuites/benchmarks/linpack/Makefile.am delete mode 100644 testsuites/benchmarks/whetstone/Makefile.am diff --git a/testsuites/benchmarks/Makefile.am b/testsuites/benchmarks/Makefile.am index 6c5fe7fb27..fe73c4bb27 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@.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 a9dbefccc8..4ddfca060b 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 73b67212aa..0000000000 --- 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@.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 2f5c25cf57..0000000000 --- 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@.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 a325ddca46..0000000000 --- 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@.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 -- cgit v1.2.3