source: trunk/test/Makefile.am @ 942

Last change on this file since 942 was 942, checked in by sam, 9 years ago

test: reorganise test suite and benchmark code.

File size: 1.6 KB
Line 
1
2AM_CPPFLAGS = -I$(top_srcdir)/src
3
4bench: benchsuite$(EXEEXT)
5        ./benchsuite$(EXEEXT)
6
7all-local: quad$(EXEEXT) benchsuite$(EXEEXT)
8        test x$(MAKE_FSELF) = xno || make_fself quad$(EXEEXT) quad.self
9        test x$(MAKE_FSELF) = xno || make_fself sandbox$(EXEEXT) sandbox.self
10        test x$(MAKE_FSELF) = xno || make_fself benchsuite$(EXEEXT) benchsuite.self
11        test x$(MAKE_FSELF) = xno || make_fself testsuite$(EXEEXT) testsuite.self
12
13CLEANFILES = $(noinst_PROGRAMS:%=%.self) $(noinst_PROGRAMS:%=%.exe)
14#quad.self sandbox.self benchsuite.self testsuite.self \
15#             quad.exe sandbox.exe benchsuite.exe testsuite.exe
16
17noinst_PROGRAMS = quad sandbox benchsuite testsuite
18
19TESTS = testsuite
20
21testsuite_SOURCES = testsuite.cpp \
22    unit/matrix.cpp unit/half.cpp unit/trig.cpp unit/build.cpp
23testsuite_CPPFLAGS = @LOL_CFLAGS@ @PIPI_CFLAGS@
24testsuite_LDFLAGS = $(top_builddir)/src/liblol.a @LOL_LIBS@ @PIPI_LIBS@
25testsuite_DEPENDENCIES = $(top_builddir)/src/liblol.a
26
27benchsuite_SOURCES = benchsuite.cpp \
28    benchmark/matrix.cpp benchmark/half.cpp benchmark/trig.cpp
29benchsuite_CPPFLAGS = @LOL_CFLAGS@ @PIPI_CFLAGS@
30benchsuite_LDFLAGS = $(top_builddir)/src/liblol.a @LOL_LIBS@ @PIPI_LIBS@
31benchsuite_DEPENDENCIES = $(top_builddir)/src/liblol.a
32
33quad_SOURCES = debug/quad.cpp
34quad_CPPFLAGS = @LOL_CFLAGS@ @PIPI_CFLAGS@
35quad_LDFLAGS = $(top_builddir)/src/liblol.a @LOL_LIBS@ @PIPI_LIBS@
36quad_DEPENDENCIES = $(top_builddir)/src/liblol.a
37
38sandbox_SOURCES = debug/sandbox.cpp
39sandbox_CPPFLAGS = @LOL_CFLAGS@ @PIPI_CFLAGS@
40sandbox_LDFLAGS = $(top_builddir)/src/liblol.a @LOL_LIBS@ @PIPI_LIBS@
41sandbox_DEPENDENCIES = $(top_builddir)/src/liblol.a
42
Note: See TracBrowser for help on using the repository browser.