diff options
Diffstat (limited to 'testsuites/libtests')
-rw-r--r-- | testsuites/libtests/cpuuse/Makefile.am | 19 | ||||
-rw-r--r-- | testsuites/libtests/malloctest/Makefile.am | 19 | ||||
-rw-r--r-- | testsuites/libtests/monitor/Makefile.am | 18 | ||||
-rw-r--r-- | testsuites/libtests/putenvtest/Makefile.am | 18 | ||||
-rw-r--r-- | testsuites/libtests/rtems++/Makefile.am | 21 | ||||
-rw-r--r-- | testsuites/libtests/rtmonuse/Makefile.am | 19 | ||||
-rw-r--r-- | testsuites/libtests/stackchk/Makefile.am | 19 | ||||
-rw-r--r-- | testsuites/libtests/termios/Makefile.am | 18 |
8 files changed, 63 insertions, 88 deletions
diff --git a/testsuites/libtests/cpuuse/Makefile.am b/testsuites/libtests/cpuuse/Makefile.am index 76c1a131dc..1b9a9475d2 100644 --- a/testsuites/libtests/cpuuse/Makefile.am +++ b/testsuites/libtests/cpuuse/Makefile.am @@ -4,28 +4,25 @@ MANAGERS = io rate_monotonic -noinst_LIBRARIES = lib.a -lib_a_SOURCES = init.c task1.c task2.c task3.c tswitch.c system.h +rtems_tests_PROGRAMS = cpuuse.exe +cpuuse_exe_SOURCES = init.c task1.c task2.c task3.c tswitch.c system.h -testsdir = $(libdir)/tests -scndir = $(testsdir) +scndir = $(rtems_testsdir) dist_scn_DATA = cpuuse.scn -OBJS = $(lib_a_OBJECTS) - -PGM = ${ARCH}/cpuuse.exe - include $(RTEMS_ROOT)/make/custom/@RTEMS_BSP@.cfg include $(top_srcdir)/../automake/compile.am include $(top_srcdir)/../automake/leaf.am -$(PGM): ${ARCH}/$(dirstamp) +cpuuse_exe_LDADD = $(MANAGERS_NOT_WANTED:%=$(PROJECT_LIB)/no-%.rel) AM_CPPFLAGS += -I$(top_srcdir)/../support/include -tests_SCRIPTS = $(PGM) +LINK_OBJS = $(cpuuse_exe_OBJECTS) $(cpuuse_exe_LDADD) +LINK_LIBS = $(cpuuse_exe_LDLIBS) -$(PGM): $(OBJS) $(LINK_FILES) +cpuuse.exe$(EXEEXT): $(cpuuse_exe_OBJECTS) $(cpuuse_exe_DEPENDENCIES) + @rm -f cpuuse.exe$(EXEEXT) $(make-exe) include $(top_srcdir)/../automake/local.am diff --git a/testsuites/libtests/malloctest/Makefile.am b/testsuites/libtests/malloctest/Makefile.am index e539b38d2a..40c93908f2 100644 --- a/testsuites/libtests/malloctest/Makefile.am +++ b/testsuites/libtests/malloctest/Makefile.am @@ -4,28 +4,25 @@ MANAGERS = io -noinst_LIBRARIES = lib.a -lib_a_SOURCES = init.c task1.c system.h +rtems_tests_PROGRAMS = malloctest.exe +malloctest_exe_SOURCES = init.c task1.c system.h -testsdir = $(libdir)/tests -scndir = $(testsdir) +scndir = $(rtems_testsdir) dist_scn_DATA = malloctest.scn -OBJS = $(lib_a_OBJECTS) - -PGM = ${ARCH}/malloctest.exe - include $(RTEMS_ROOT)/make/custom/@RTEMS_BSP@.cfg include $(top_srcdir)/../automake/compile.am include $(top_srcdir)/../automake/leaf.am -$(PGM): ${ARCH}/$(dirstamp) +malloctest_exe_LDADD = $(MANAGERS_NOT_WANTED:%=$(PROJECT_LIB)/no-%.rel) AM_CPPFLAGS += -I$(top_srcdir)/../support/include -tests_SCRIPTS = $(PGM) +LINK_OBJS = $(malloctest_exe_OBJECTS) $(malloctest_exe_LDADD) +LINK_LIBS = $(malloctest_exe_LDLIBS) -$(PGM): $(OBJS) $(LINK_FILES) +malloctest.exe$(EXEEXT): $(malloctest_exe_OBJECTS) $(malloctest_exe_DEPENDENCIES) + @rm -f malloctest.exe$(EXEEXT) $(make-exe) include $(top_srcdir)/../automake/local.am diff --git a/testsuites/libtests/monitor/Makefile.am b/testsuites/libtests/monitor/Makefile.am index a07f2d3e27..ff8cd8e222 100644 --- a/testsuites/libtests/monitor/Makefile.am +++ b/testsuites/libtests/monitor/Makefile.am @@ -5,26 +5,22 @@ MANAGERS = dpmem event io msg mp part region sem signal timer rate_monotonic \ ext -noinst_LIBRARIES = lib.a -lib_a_SOURCES = init.c system.h - -testsdir = $(libdir)/tests - -OBJS = $(lib_a_OBJECTS) - -PGM = ${ARCH}/monitor.exe +rtems_tests_PROGRAMS = monitor.exe +monitor_exe_SOURCES = init.c system.h include $(RTEMS_ROOT)/make/custom/@RTEMS_BSP@.cfg include $(top_srcdir)/../automake/compile.am include $(top_srcdir)/../automake/leaf.am -$(PGM): ${ARCH}/$(dirstamp) +monitor_exe_LDADD = $(MANAGERS_NOT_WANTED:%=$(PROJECT_LIB)/no-%.rel) AM_CPPFLAGS += -I$(top_srcdir)/../support/include -tests_SCRIPTS = $(PGM) +LINK_OBJS = $(monitor_exe_OBJECTS) $(monitor_exe_LDADD) +LINK_LIBS = $(monitor_exe_LDLIBS) -$(PGM): $(OBJS) $(LINK_FILES) +monitor.exe$(EXEEXT): $(monitor_exe_OBJECTS) $(monitor_exe_DEPENDENCIES) + @rm -f monitor.exe$(EXEEXT) $(make-exe) include $(top_srcdir)/../automake/local.am diff --git a/testsuites/libtests/putenvtest/Makefile.am b/testsuites/libtests/putenvtest/Makefile.am index 4d4a30114a..5254bbc0cc 100644 --- a/testsuites/libtests/putenvtest/Makefile.am +++ b/testsuites/libtests/putenvtest/Makefile.am @@ -4,26 +4,22 @@ MANAGERS = io -noinst_LIBRARIES = lib.a -lib_a_SOURCES = init.c - -testsdir = $(libdir)/tests - -OBJS = $(lib_a_OBJECTS) - -PGM = ${ARCH}/putenvtest.exe +rtems_tests_PROGRAMS = putenvtest.exe +putenvtest_exe_SOURCES = init.c include $(RTEMS_ROOT)/make/custom/@RTEMS_BSP@.cfg include $(top_srcdir)/../automake/compile.am include $(top_srcdir)/../automake/leaf.am -$(PGM): ${ARCH}/$(dirstamp) +putenvtest_exe_LDADD = $(MANAGERS_NOT_WANTED:%=$(PROJECT_LIB)/no-%.rel) AM_CPPFLAGS += -I$(top_srcdir)/../support/include -tests_SCRIPTS = $(PGM) +LINK_OBJS = $(putenvtest_exe_OBJECTS) $(putenvtest_exe_LDADD) +LINK_LIBS = $(putenvtest_exe_LDLIBS) -$(PGM): $(OBJS) $(LINK_FILES) +putenvtest.exe$(EXEEXT): $(putenvtest_exe_OBJECTS) $(putenvtest_exe_DEPENDENCIES) + @rm -f putenvtest.exe$(EXEEXT) $(make-exe) include $(top_srcdir)/../automake/local.am diff --git a/testsuites/libtests/rtems++/Makefile.am b/testsuites/libtests/rtems++/Makefile.am index 6bd6a1299a..12bd3a835e 100644 --- a/testsuites/libtests/rtems++/Makefile.am +++ b/testsuites/libtests/rtems++/Makefile.am @@ -5,31 +5,30 @@ MANAGERS = event io msg sem signal timer rate_monotonic if HAS_CXX -noinst_LIBRARIES = lib.a -lib_a_SOURCES = Init.cc Task1.cc Task2.cc Task3.cc System.h +rtems_tests_PROGRAMS = rtems++.exe +rtems___exe_SOURCES = Init.cc Task1.cc Task2.cc Task3.cc System.h endif -testsdir = $(libdir)/tests -scndir = $(testsdir) +scndir = $(rtems_testsdir) dist_scn_DATA = rtems++.scn -docdir = $(testsdir) +docdir = $(rtems_testsdir) dist_doc_DATA = rtems++.doc -PGM = ${ARCH}/rtems++.exe - include $(RTEMS_ROOT)/make/custom/@RTEMS_BSP@.cfg include $(top_srcdir)/../automake/compile.am include $(top_srcdir)/../automake/leaf.am if HAS_CXX -LD_LIBS = -lrtems++ +rtems___exe_LDLIBS = -lrtems++ AM_CPPFLAGS += -I$(top_srcdir)/../support/include -tests_SCRIPTS = $(PGM) +rtems___exe_LDADD = $(MANAGERS_NOT_WANTED:%=$(PROJECT_LIB)/no-%.rel) -$(PGM): ${ARCH}/$(dirstamp) +LINK_OBJS = $(rtems___exe_OBJECTS) $(rtems___exe_LDADD) +LINK_LIBS = $(rtems___exe_LDLIBS) -$(PGM): $(OBJS) $(LINK_FILES) +rtems++.exe$(EXEEXT): $(rtems___exe_OBJECTS) $(rtems___exe_DEPENDENCIES) + @rm -f rtems++.exe$(EXEEXT) $(make-cxx-exe) endif diff --git a/testsuites/libtests/rtmonuse/Makefile.am b/testsuites/libtests/rtmonuse/Makefile.am index 54790d7e60..cbb561b3ae 100644 --- a/testsuites/libtests/rtmonuse/Makefile.am +++ b/testsuites/libtests/rtmonuse/Makefile.am @@ -4,28 +4,25 @@ MANAGERS = io rate_monotonic -noinst_LIBRARIES = lib.a -lib_a_SOURCES = init.c getall.c task1.c system.h +rtems_tests_PROGRAMS = rtmonuse.exe +rtmonuse_exe_SOURCES = init.c getall.c task1.c system.h -testsdir = $(libdir)/tests -scndir = $(testsdir) +scndir = $(rtems_testsdir) dist_scn_DATA = rtmonuse.scn -OBJS = $(lib_a_OBJECTS) - -PGM = ${ARCH}/rtmonuse.exe - include $(RTEMS_ROOT)/make/custom/@RTEMS_BSP@.cfg include $(top_srcdir)/../automake/compile.am include $(top_srcdir)/../automake/leaf.am -$(PGM): ${ARCH}/$(dirstamp) +rtmonuse_exe_LDADD = $(MANAGERS_NOT_WANTED:%=$(PROJECT_LIB)/no-%.rel) AM_CPPFLAGS += -I$(top_srcdir)/../support/include -tests_SCRIPTS = $(PGM) +LINK_OBJS = $(rtmonuse_exe_OBJECTS) $(rtmonuse_exe_LDADD) +LINK_LIBS = $(rtmonuse_exe_LDLIBS) -$(PGM): $(OBJS) $(LINK_FILES) +rtmonuse.exe$(EXEEXT): $(rtmonuse_exe_OBJECTS) $(rtmonuse_exe_DEPENDENCIES) + @rm -f rtmonuse.exe$(EXEEXT) $(make-exe) include $(top_srcdir)/../automake/local.am diff --git a/testsuites/libtests/stackchk/Makefile.am b/testsuites/libtests/stackchk/Makefile.am index c7eb439a78..a260668c91 100644 --- a/testsuites/libtests/stackchk/Makefile.am +++ b/testsuites/libtests/stackchk/Makefile.am @@ -4,28 +4,25 @@ MANAGERS = io -noinst_LIBRARIES = lib.a -lib_a_SOURCES = blow.c init.c task1.c system.h +rtems_tests_PROGRAMS = stackchk.exe +stackchk_exe_SOURCES = blow.c init.c task1.c system.h -testsdir = $(libdir)/tests -scndir = $(testsdir) +scndir = $(rtems_testsdir) dist_scn_DATA = stackchk.scn -OBJS = $(lib_a_OBJECTS) - -PGM = ${ARCH}/stackchk.exe - include $(RTEMS_ROOT)/make/custom/@RTEMS_BSP@.cfg include $(top_srcdir)/../automake/compile.am include $(top_srcdir)/../automake/leaf.am -$(PGM): ${ARCH}/$(dirstamp) +stackchk_exe_LDADD = $(MANAGERS_NOT_WANTED:%=$(PROJECT_LIB)/no-%.rel) AM_CPPFLAGS += -I$(top_srcdir)/../support/include -tests_SCRIPTS = $(PGM) +LINK_OBJS = $(stackchk_exe_OBJECTS) $(stackchk_exe_LDADD) +LINK_LIBS = $(stackchk_exe_LDLIBS) -$(PGM): $(OBJS) $(LINK_FILES) +stackchk.exe$(EXEEXT): $(stackchk_exe_OBJECTS) $(stackchk_exe_DEPENDENCIES) + @rm -f stackchk.exe$(EXEEXT) $(make-exe) include $(top_srcdir)/../automake/local.am diff --git a/testsuites/libtests/termios/Makefile.am b/testsuites/libtests/termios/Makefile.am index 31197d6826..b9ec8f81ba 100644 --- a/testsuites/libtests/termios/Makefile.am +++ b/testsuites/libtests/termios/Makefile.am @@ -4,26 +4,22 @@ MANAGERS = io -noinst_LIBRARIES = lib.a -lib_a_SOURCES = init.c - -testsdir = $(libdir)/tests - -OBJS = $(lib_a_OBJECTS) - -PGM = ${ARCH}/termios.exe +rtems_tests_PROGRAMS = termios.exe +termios_exe_SOURCES = init.c include $(RTEMS_ROOT)/make/custom/@RTEMS_BSP@.cfg include $(top_srcdir)/../automake/compile.am include $(top_srcdir)/../automake/leaf.am -$(PGM): ${ARCH}/$(dirstamp) +termios_exe_LDADD = $(MANAGERS_NOT_WANTED:%=$(PROJECT_LIB)/no-%.rel) AM_CPPFLAGS += -I$(top_srcdir)/../support/include -tests_SCRIPTS = $(PGM) +LINK_OBJS = $(termios_exe_OBJECTS) $(termios_exe_LDADD) +LINK_LIBS = $(termios_exe_LDLIBS) -$(PGM): $(OBJS) $(LINK_FILES) +termios.exe$(EXEEXT): $(termios_exe_OBJECTS) $(termios_exe_DEPENDENCIES) + @rm -f termios.exe$(EXEEXT) $(make-exe) include $(top_srcdir)/../automake/local.am |