PageRenderTime 55ms CodeModel.GetById 17ms RepoModel.GetById 0ms app.codeStats 0ms

/trunk/Examples/test-suite/lua/Makefile.in

#
Autoconf | 64 lines | 37 code | 17 blank | 10 comment | 2 complexity | 102815ef33da0313338e47363fbc407a MD5 | raw file
Possible License(s): LGPL-2.1, Cube, GPL-3.0, 0BSD, GPL-2.0
  1. #######################################################################
  2. # Makefile for lua test-suite
  3. #######################################################################
  4. LANGUAGE = lua
  5. LUA = @LUABIN@
  6. SCRIPTSUFFIX = _runme.lua
  7. srcdir = @srcdir@
  8. top_srcdir = @top_srcdir@
  9. top_builddir = @top_builddir@
  10. # sorry, currently very few test cases work/have been written
  11. CPP_TEST_CASES += \
  12. lua_no_module_global \
  13. C_TEST_CASES += \
  14. lua_no_module_global \
  15. include $(srcdir)/../common.mk
  16. # Overridden variables here
  17. LIBS = -L.
  18. # Custom tests - tests with additional commandline options
  19. lua_no_module_global.%: SWIGOPT += -nomoduleglobal
  20. # Rules for the different types of tests
  21. %.cpptest:
  22. $(setup)
  23. +$(swig_and_compile_cpp)
  24. $(run_testcase)
  25. %.ctest:
  26. $(setup)
  27. +$(swig_and_compile_c)
  28. $(run_testcase)
  29. %.multicpptest:
  30. $(setup)
  31. +$(swig_and_compile_multi_cpp)
  32. $(run_testcase)
  33. # Runs the testcase. A testcase is only run if
  34. # a file is found which has _runme.lua appended after the testcase name.
  35. run_testcase = \
  36. if [ -f $(srcdir)/$(SCRIPTPREFIX)$*$(SCRIPTSUFFIX) ]; then \
  37. env LD_LIBRARY_PATH=.:$$LD_LIBRARY_PATH $(RUNTOOL) $(LUA) $(srcdir)/$(SCRIPTPREFIX)$*$(SCRIPTSUFFIX); \
  38. fi
  39. # Clean: (does nothing, we dont generate extra lua code)
  40. %.clean:
  41. clean:
  42. $(MAKE) -f $(top_builddir)/$(EXAMPLES)/Makefile lua_clean
  43. cvsignore:
  44. @echo '*wrap* *.so *.dll *.exp *.lib'
  45. @echo Makefile
  46. @for i in ${CPP_TEST_CASES} ${C_TEST_CASES}; do echo $$i.lua; done
  47. @for i in ${CPP_TEST_CASES} ${C_TEST_CASES}; do if grep -q $${i}_runme.lua CVS/Entries ; then echo $${i}_runme.lua; fi; done