source: trunk/test/Makefile.am @ 1923

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

build: add a common.am include file and a "make lolcheck" target that does
nothing for now except ensure that every makefile includes common.am.

File size: 2.0 KB
Line 
1
2include $(top_srcdir)/build/autotools/common.am
3
4SUBDIRS = math sandbox xolotl
5
6AM_CPPFLAGS = -I$(top_srcdir)/src
7
8bench: benchsuite$(EXEEXT)
9        ./benchsuite$(EXEEXT)
10
11all-local: $(PROGRAMS) $(noinst_PROGRAMS)
12        for x in $(^:%$(EXEEXT)=%); do \
13          test x$(MAKE_FSELF) = xno || make_fself $${x}$(EXEEXT) $${x}.self; \
14        done
15
16CLEANFILES = $(noinst_PROGRAMS:%$(EXEEXT)=%.self) \
17             $(noinst_PROGRAMS:%$(EXEEXT)=%.elf) \
18             $(noinst_PROGRAMS:%$(EXEEXT)=%.exe)
19
20EXTRA_DIST = data/gradient.png
21
22noinst_PROGRAMS = benchsuite $(testsuite) btphystest
23
24TESTS = $(testsuite)
25
26# Conditionally built for now because of STLport issues
27if !USE_ANDROID
28testsuite = testsuite
29endif
30
31testsuite_SOURCES = testsuite.cpp \
32    unit/vector.cpp unit/matrix.cpp unit/half.cpp unit/trig.cpp \
33    unit/build.cpp unit/real.cpp unit/image.cpp unit/quat.cpp unit/cmplx.cpp \
34    unit/array.cpp unit/rotation.cpp
35testsuite_CPPFLAGS = @LOL_CFLAGS@ @PIPI_CFLAGS@
36testsuite_LDFLAGS = $(top_builddir)/src/liblol.a @LOL_LIBS@ @PIPI_LIBS@
37testsuite_DEPENDENCIES = $(top_builddir)/src/liblol.a
38
39benchsuite_SOURCES = benchsuite.cpp \
40    benchmark/vector.cpp benchmark/half.cpp benchmark/trig.cpp \
41    benchmark/real.cpp
42benchsuite_CPPFLAGS = @LOL_CFLAGS@ @PIPI_CFLAGS@
43benchsuite_LDFLAGS = $(top_builddir)/src/liblol.a @LOL_LIBS@ @PIPI_LIBS@
44benchsuite_DEPENDENCIES = $(top_builddir)/src/liblol.a
45
46btphystest_SOURCES = BtPhysTest.cpp BtPhysTest.h \
47    Physics/Src/EasyPhysics.cpp Physics/Include/EasyPhysics.h \
48    Physics/Include/LolBtPhysicsIntegration.h Physics/Include/LolPhysics.h \
49    Physics/Src/EasyCharacterController.cpp Physics/Src/EasyConstraint.cpp \
50        Physics/Src/BulletCharacterController.cpp \
51    Physics/Include/EasyCharacterController.h Physics/Include/EasyConstraint.h \
52        Physics/Src/BulletCharacterController.h
53btphystest_CPPFLAGS = @LOL_CFLAGS@ @PIPI_CFLAGS@ -I$(top_builddir)/src/bullet \
54    -DHAVE_PHYS_USE_BULLET
55btphystest_LDFLAGS = $(top_builddir)/src/liblol.a @LOL_LIBS@ @PIPI_LIBS@
56btphystest_DEPENDENCIES = $(top_builddir)/src/liblol.a
57
Note: See TracBrowser for help on using the repository browser.