summaryrefslogtreecommitdiffstats
path: root/testsuites/benchmarks/Makefile.am
blob: fe73c4bb2743b10527917180f9a02bec5ac33fb2 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
#
# Benchmarks
#

ACLOCAL_AMFLAGS = -I ../aclocal

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/local.am