1 | |
---|
2 | include $(top_srcdir)/build/autotools/common.am |
---|
3 | |
---|
4 | SUBDIRS = math sandbox xolotl |
---|
5 | |
---|
6 | AM_CPPFLAGS = -I$(top_srcdir)/src |
---|
7 | |
---|
8 | bench: benchsuite$(EXEEXT) |
---|
9 | ./benchsuite$(EXEEXT) |
---|
10 | |
---|
11 | all-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 | |
---|
16 | CLEANFILES = $(noinst_PROGRAMS:%$(EXEEXT)=%.self) \ |
---|
17 | $(noinst_PROGRAMS:%$(EXEEXT)=%.elf) \ |
---|
18 | $(noinst_PROGRAMS:%$(EXEEXT)=%.exe) |
---|
19 | |
---|
20 | EXTRA_DIST = data/gradient.png |
---|
21 | |
---|
22 | noinst_PROGRAMS = benchsuite $(testsuite) btphystest |
---|
23 | |
---|
24 | TESTS = $(testsuite) |
---|
25 | |
---|
26 | # Conditionally built for now because of STLport issues |
---|
27 | if !USE_ANDROID |
---|
28 | testsuite = testsuite |
---|
29 | endif |
---|
30 | |
---|
31 | testsuite_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 |
---|
35 | testsuite_CPPFLAGS = @LOL_CFLAGS@ @PIPI_CFLAGS@ |
---|
36 | testsuite_LDFLAGS = $(top_builddir)/src/liblol.a @LOL_LIBS@ @PIPI_LIBS@ |
---|
37 | testsuite_DEPENDENCIES = $(top_builddir)/src/liblol.a |
---|
38 | |
---|
39 | benchsuite_SOURCES = benchsuite.cpp \ |
---|
40 | benchmark/vector.cpp benchmark/half.cpp benchmark/trig.cpp \ |
---|
41 | benchmark/real.cpp |
---|
42 | benchsuite_CPPFLAGS = @LOL_CFLAGS@ @PIPI_CFLAGS@ |
---|
43 | benchsuite_LDFLAGS = $(top_builddir)/src/liblol.a @LOL_LIBS@ @PIPI_LIBS@ |
---|
44 | benchsuite_DEPENDENCIES = $(top_builddir)/src/liblol.a |
---|
45 | |
---|
46 | btphystest_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 |
---|
53 | btphystest_CPPFLAGS = @LOL_CFLAGS@ @PIPI_CFLAGS@ -I$(top_builddir)/src/bullet \ |
---|
54 | -DHAVE_PHYS_USE_BULLET |
---|
55 | btphystest_LDFLAGS = $(top_builddir)/src/liblol.a @LOL_LIBS@ @PIPI_LIBS@ |
---|
56 | btphystest_DEPENDENCIES = $(top_builddir)/src/liblol.a |
---|
57 | |
---|