You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 

58 lines
2.0 KiB

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