forked from Imagelibrary/rtems
testsuite/benchmarks: Merged nested Makefile.am files into one Makefile.am
This change is part of the testsuite Makefile.am reorganization. Update #3382
This commit is contained in:
@@ -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
|
||||
|
||||
@@ -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
|
||||
|
||||
@@ -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
|
||||
@@ -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
|
||||
@@ -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
|
||||
Reference in New Issue
Block a user