[rtems commit] testsuite/irhealstone: Merged nested Makefile.am files into one Makefile.am
Chris Johns
chrisj at rtems.org
Mon Apr 9 22:38:01 UTC 2018
Module: rtems
Branch: master
Commit: 590a5809bd3ed43ec9d3aad54a1f238792a5aefd
Changeset: http://git.rtems.org/rtems/commit/?id=590a5809bd3ed43ec9d3aad54a1f238792a5aefd
Author: Chris Johns <chrisj at rtems.org>
Date: Mon Apr 9 13:43:30 2018 +1000
testsuite/irhealstone: Merged nested Makefile.am files into one Makefile.am
This change is part of the testsuite Makefile.am reorganization.
Update #3382
---
testsuites/rhealstone/Makefile.am | 77 ++++++++++++++++++++++---
testsuites/rhealstone/configure.ac | 18 +++---
testsuites/rhealstone/rhdeadlockbrk/Makefile.am | 23 --------
testsuites/rhealstone/rhilatency/Makefile.am | 23 --------
testsuites/rhealstone/rhmlatency/Makefile.am | 23 --------
testsuites/rhealstone/rhsemshuffle/Makefile.am | 23 --------
testsuites/rhealstone/rhtaskpreempt/Makefile.am | 23 --------
testsuites/rhealstone/rhtaskswitch/Makefile.am | 23 --------
8 files changed, 78 insertions(+), 155 deletions(-)
diff --git a/testsuites/rhealstone/Makefile.am b/testsuites/rhealstone/Makefile.am
index e2dcf69..dd55844 100644
--- a/testsuites/rhealstone/Makefile.am
+++ b/testsuites/rhealstone/Makefile.am
@@ -1,12 +1,73 @@
+#
+# Real-time Benchmarking
+#
+
ACLOCAL_AMFLAGS = -I ../aclocal
-_SUBDIRS =
-_SUBDIRS += rhdeadlockbrk
-_SUBDIRS += rhilatency
-_SUBDIRS += rhmlatency
-_SUBDIRS += rhsemshuffle
-_SUBDIRS += rhtaskpreempt
-_SUBDIRS += rhtaskswitch
+include $(RTEMS_ROOT)/make/custom/@RTEMS_BSP at .cfg
+include $(top_srcdir)/../automake/compile.am
+
+rhealstones =
+rhealstone_screens =
+rhealstone_docs =
+
+support_includes = -I$(top_srcdir)/../support/include
+
+if TEST_rhdeadlockbrk
+rhealstones += rhdeadlockbrk
+rhealstone_docs += rhdeadlockbrk/rhdeadlockbrk.adoc
+rhdeadlockbrk_SOURCES = rhdeadlockbrk/deadlockbrk.c \
+ ../tmtests/include/timesys.h
+rhdeadlockbrk_CPPFLAGS = $(AM_CPPFLAGS) $(TEST_FLAGS_rhdeadlockbrk) \
+ $(support_includes) -I$(top_srcdir)/../tmtests/include
+endif
+
+if TEST_rhilatency
+rhealstones += rhilatency
+rhealstone_docs += rhilatency/rhilatency.adoc
+rhilatency_SOURCES = rhilatency/ilatency.c \
+ ../tmtests/include/timesys.h
+rhilatency_CPPFLAGS = $(AM_CPPFLAGS) $(TEST_FLAGS_rhilatency) \
+ $(support_includes) -I$(top_srcdir)/../tmtests/include
+endif
+
+if TEST_rhmlatency
+rhealstones += rhmlatency
+rhealstone_docs += rhmlatency/rhmlatency.adoc
+rhmlatency_SOURCES = rhmlatency/mlatency.c \
+ ../tmtests/include/timesys.h
+rhmlatency_CPPFLAGS = $(AM_CPPFLAGS) $(TEST_FLAGS_rhmlatency) \
+ $(support_includes) -I$(top_srcdir)/../tmtests/include
+endif
+
+if TEST_rhsemshuffle
+rhealstones += rhsemshuffle
+rhealstone_docs += rhsemshuffle/rhsemshuffle.adoc
+rhsemshuffle_SOURCES = rhsemshuffle/semshuffle.c \
+ ../tmtests/include/timesys.h
+rhsemshuffle_CPPFLAGS = $(AM_CPPFLAGS) $(TEST_FLAGS_rhsemshuffle) \
+ $(support_includes) -I$(top_srcdir)/../tmtests/include
+endif
+
+if TEST_rhtaskpreempt
+rhealstones += rhtaskpreempt
+rhealstone_docs += rhtaskpreempt/rhtaskpreempt.adoc
+rhtaskpreempt_SOURCES = rhtaskpreempt/taskpreempt.c \
+ ../tmtests/include/timesys.h
+rhtaskpreempt_CPPFLAGS = $(AM_CPPFLAGS) $(TEST_FLAGS_rhtaskpreempt) \
+ $(support_includes) -I$(top_srcdir)/../tmtests/include
+endif
+
+if TEST_rhtaskswitch
+rhealstones += rhtaskswitch
+rhealstone_docs += rhtaskswitch/rhtaskswitch.adoc
+rhtaskswitch_SOURCES = rhtaskswitch/taskswitch.c \
+ ../tmtests/include/timesys.h
+rhtaskswitch_CPPFLAGS = $(AM_CPPFLAGS) $(TEST_FLAGS_rhtaskswitch) \
+ $(support_includes) -I$(top_srcdir)/../tmtests/include
+endif
+
+rtems_tests_PROGRAMS = $(rhealstones)
+dist_rtems_tests_DATA = $(rhealstone_screens) $(rhealstone_docs)
-include $(top_srcdir)/../automake/subdirs.am
include $(top_srcdir)/../automake/local.am
diff --git a/testsuites/rhealstone/configure.ac b/testsuites/rhealstone/configure.ac
index 9319c28..7c60f3b 100644
--- a/testsuites/rhealstone/configure.ac
+++ b/testsuites/rhealstone/configure.ac
@@ -25,13 +25,13 @@ RTEMS_CANONICALIZE_TOOLS
RTEMS_CHECK_CUSTOM_BSP(RTEMS_BSP)
-# Explicitly list all Makefiles here
-AC_CONFIG_FILES([Makefile
-rhdeadlockbrk/Makefile
-rhilatency/Makefile
-rhmlatency/Makefile
-rhsemshuffle/Makefile
-rhtaskpreempt/Makefile
-rhtaskswitch/Makefile
-])
+# BSP Test configuration
+RTEMS_TEST_CHECK([rhdeadlockbrk])
+RTEMS_TEST_CHECK([rhilatency])
+RTEMS_TEST_CHECK([rhmlatency])
+RTEMS_TEST_CHECK([rhsemshuffle])
+RTEMS_TEST_CHECK([rhtaskpreempt])
+RTEMS_TEST_CHECK([rhtaskswitch])
+
+AC_CONFIG_FILES([Makefile])
AC_OUTPUT
diff --git a/testsuites/rhealstone/rhdeadlockbrk/Makefile.am b/testsuites/rhealstone/rhdeadlockbrk/Makefile.am
deleted file mode 100644
index 3f6eebf9..0000000
--- a/testsuites/rhealstone/rhdeadlockbrk/Makefile.am
+++ /dev/null
@@ -1,23 +0,0 @@
-MANAGERS = all
-
-rtems_tests_PROGRAMS = rhdeadlockbrk
-rhdeadlockbrk_SOURCES = deadlockbrk.c
-rhdeadlockbrk_SOURCES += ../../tmtests/include/timesys.h
-
-dist_rtems_tests_DATA = rhdeadlockbrk.adoc
-
-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)/../tmtests/include
-AM_CPPFLAGS += -I$(top_srcdir)/../support/include
-
-LINK_OBJS = $(rhdeadlockbrk_OBJECTS) $(rhdeadlockbrk_LDADD)
-LINK_LIBS = $(rhdeadlockbrk_LDLIBS)
-
-rhdeadlockbrk$(EXEEXT): $(rhdeadlockbrk_OBJECTS) $(rhdeadlockbrk_DEPENDENCIES)
- @rm -f rhdeadlockbrk$(EXEEXT)
- $(make-exe)
-
-include $(top_srcdir)/../automake/local.am
diff --git a/testsuites/rhealstone/rhilatency/Makefile.am b/testsuites/rhealstone/rhilatency/Makefile.am
deleted file mode 100644
index faaf10f..0000000
--- a/testsuites/rhealstone/rhilatency/Makefile.am
+++ /dev/null
@@ -1,23 +0,0 @@
-MANAGERS = all
-
-rtems_tests_PROGRAMS = rhilatency
-rhilatency_SOURCES = ilatency.c
-rhilatency_SOURCES += ../../tmtests/include/timesys.h
-
-dist_rtems_tests_DATA = rhilatency.adoc
-
-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)/../tmtests/include
-AM_CPPFLAGS += -I$(top_srcdir)/../support/include
-
-LINK_OBJS = $(rhilatency_OBJECTS) $(rhilatency_ldaDD)
-LINK_LIBS = $(rhilatency_LDLIBS)
-
-rhilatency$(EXEEXT): $(rhilatency_OBJECTS) $(rhilatency_DEPENDENCIES)
- @rm -f rhilatency$(EXEEXT)
- $(make-exe)
-
-include $(top_srcdir)/../automake/local.am
diff --git a/testsuites/rhealstone/rhmlatency/Makefile.am b/testsuites/rhealstone/rhmlatency/Makefile.am
deleted file mode 100644
index c8d9009..0000000
--- a/testsuites/rhealstone/rhmlatency/Makefile.am
+++ /dev/null
@@ -1,23 +0,0 @@
-MANAGERS = all
-
-rtems_tests_PROGRAMS = rhmlatency
-rhmlatency_SOURCES = mlatency.c
-rhmlatency_SOURCES += ../../tmtests/include/timesys.h
-
-dist_rtems_tests_DATA = rhmlatency.adoc
-
-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)/../tmtests/include
-AM_CPPFLAGS += -I$(top_srcdir)/../support/include
-
-LINK_OBJS = $(rhmlatency_OBJECTS) $(rhmlatency_ldaDD)
-LINK_LIBS = $(rhmlatency_LDLIBS)
-
-rhmlatency$(EXEEXT): $(rhmlatency_OBJECTS) $(rhmlatency_DEPENDENCIES)
- @rm -f rhmlatency$(EXEEXT)
- $(make-exe)
-
-include $(top_srcdir)/../automake/local.am
diff --git a/testsuites/rhealstone/rhsemshuffle/Makefile.am b/testsuites/rhealstone/rhsemshuffle/Makefile.am
deleted file mode 100644
index 8844829..0000000
--- a/testsuites/rhealstone/rhsemshuffle/Makefile.am
+++ /dev/null
@@ -1,23 +0,0 @@
-MANAGERS = all
-
-rtems_tests_PROGRAMS = rhsemshuffle
-rhsemshuffle_SOURCES = semshuffle.c
-rhsemshuffle_SOURCES += ../../tmtests/include/timesys.h
-
-dist_rtems_tests_DATA = rhsemshuffle.adoc
-
-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)/../tmtests/include
-AM_CPPFLAGS += -I$(top_srcdir)/../support/include
-
-LINK_OBJS = $(rhsemshuffle_OBJECTS) $(rhsemshuffle_LDADD)
-LINK_LIBS = $(rhsemshuffle_LDLIBS)
-
-rhsemshuffle$(EXEEXT): $(rhsemshuffle_OBJECTS) $(rhsemshuffle_DEPENDENCIES)
- @rm -f rhsemshuffle$(EXEEXT)
- $(make-exe)
-
-include $(top_srcdir)/../automake/local.am
diff --git a/testsuites/rhealstone/rhtaskpreempt/Makefile.am b/testsuites/rhealstone/rhtaskpreempt/Makefile.am
deleted file mode 100644
index d0106aa..0000000
--- a/testsuites/rhealstone/rhtaskpreempt/Makefile.am
+++ /dev/null
@@ -1,23 +0,0 @@
-MANAGERS = all
-
-rtems_tests_PROGRAMS = rhtaskpreempt
-rhtaskpreempt_SOURCES = taskpreempt.c
-rhtaskpreempt_SOURCES += ../../tmtests/include/timesys.h
-
-dist_rtems_tests_DATA = rhtaskpreempt.adoc
-
-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)/../tmtests/include
-AM_CPPFLAGS += -I$(top_srcdir)/../support/include
-
-LINK_OBJS = $(rhtaskpreempt_OBJECTS) $(rhtaskpreempt_LDADD)
-LINK_LIBS = $(rhtaskpreempt_LDLIBS)
-
-rhtaskpreempt$(EXEEXT): $(rhtaskpreempt_OBJECTS) $(rhtaskpreempt_DEPENDENCIES)
- @rm -f rhtaskpreempt$(EXEEXT)
- $(make-exe)
-
-include $(top_srcdir)/../automake/local.am
diff --git a/testsuites/rhealstone/rhtaskswitch/Makefile.am b/testsuites/rhealstone/rhtaskswitch/Makefile.am
deleted file mode 100644
index 26ca733..0000000
--- a/testsuites/rhealstone/rhtaskswitch/Makefile.am
+++ /dev/null
@@ -1,23 +0,0 @@
-MANAGERS = all
-
-rtems_tests_PROGRAMS = rhtaskswitch
-rhtaskswitch_SOURCES = taskswitch.c
-rhtaskswitch_SOURCES += ../../tmtests/include/timesys.h
-
-dist_rtems_tests_DATA = rhtaskswitch.adoc
-
-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)/../tmtests/include
-AM_CPPFLAGS += -I$(top_srcdir)/../support/include
-
-LINK_OBJS = $(rhtaskswitch_OBJECTS) $(rhtaskswitch_LDADD)
-LINK_LIBS = $(rhtaskswitch_LDLIBS)
-
-rhtaskswitch$(EXEEXT): $(rhtaskswitch_OBJECTS) $(rhtaskswitch_DEPENDENCIES)
- @rm -f rhtaskswitch$(EXEEXT)
- $(make-exe)
-
-include $(top_srcdir)/../automake/local.am
More information about the vc
mailing list