source: trunk/test/Makefile.am @ 1112

Last change on this file since 1112 was 1112, checked in by gary, 8 years ago

build: minor reorganisation of the sandbox code.

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