source: trunk/test/Makefile.am @ 1754

Last change on this file since 1754 was 1754, checked in by sam, 8 years ago

build: add missing files to Makefile.

File size: 2.2 KB
Line 
1
2SUBDIRS = math 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) btphystest
21
22TESTS = $(testsuite)
23
24# Conditionally built for now because of STLport issues
25if !USE_ANDROID
26testsuite = testsuite
27endif
28
29testsuite_SOURCES = testsuite.cpp \
30    unit/vector.cpp unit/matrix.cpp unit/half.cpp unit/trig.cpp \
31    unit/build.cpp unit/real.cpp unit/image.cpp unit/quat.cpp unit/cmplx.cpp \
32    unit/array.cpp unit/rotation.cpp
33testsuite_CPPFLAGS = @LOL_CFLAGS@ @PIPI_CFLAGS@
34testsuite_LDFLAGS = $(top_builddir)/src/liblol.a @LOL_LIBS@ @PIPI_LIBS@
35testsuite_DEPENDENCIES = $(top_builddir)/src/liblol.a
36
37benchsuite_SOURCES = benchsuite.cpp \
38    benchmark/vector.cpp benchmark/half.cpp benchmark/trig.cpp \
39    benchmark/real.cpp
40benchsuite_CPPFLAGS = @LOL_CFLAGS@ @PIPI_CFLAGS@
41benchsuite_LDFLAGS = $(top_builddir)/src/liblol.a @LOL_LIBS@ @PIPI_LIBS@
42benchsuite_DEPENDENCIES = $(top_builddir)/src/liblol.a
43
44quad_SOURCES = debug/quad.cpp
45quad_CPPFLAGS = @LOL_CFLAGS@ @PIPI_CFLAGS@
46quad_LDFLAGS = $(top_builddir)/src/liblol.a @LOL_LIBS@ @PIPI_LIBS@
47quad_DEPENDENCIES = $(top_builddir)/src/liblol.a
48
49btphystest_SOURCES = BtPhysTest.cpp BtPhysTest.h \
50    Physics/Src/EasyPhysics.cpp Physics/Include/EasyPhysics.h \
51    Physics/Include/LolBtPhysicsIntegration.h Physics/Include/LolPhysics.h \
52    Physics/Src/EasyCharacterController.cpp Physics/Src/EasyConstraint.cpp \
53    Physics/Include/EasyCharacterController.h Physics/Include/EasyConstraint.h
54btphystest_CPPFLAGS = @LOL_CFLAGS@ @PIPI_CFLAGS@ -I$(top_builddir)/src/bullet \
55    -DHAVE_PHYS_USE_BULLET
56btphystest_LDFLAGS = $(top_builddir)/src/liblol.a @LOL_LIBS@ @PIPI_LIBS@
57btphystest_DEPENDENCIES = $(top_builddir)/src/liblol.a
58
Note: See TracBrowser for help on using the repository browser.