source: trunk/test/Makefile.am @ 1760

Last change on this file since 1760 was 1760, checked in by sam, 11 years ago

build: fix a few compilation and build errors.

File size: 2.1 KB
Line 
1
2SUBDIRS = math sandbox xolotl
3
4AM_CPPFLAGS = -I$(top_srcdir)/src
5
6bench: benchsuite$(EXEEXT)
7        ./benchsuite$(EXEEXT)
8
9all-local: $(PROGRAMS) $(noinst_PROGRAMS)
10        for x in $(^:%$(EXEEXT)=%); do \
11          test x$(MAKE_FSELF) = xno || make_fself $${x}$(EXEEXT) $${x}.self; \
12        done
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.