PageRenderTime 29ms CodeModel.GetById 0ms RepoModel.GetById 0ms app.codeStats 0ms

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

#
Autoconf | 56 lines | 34 code | 12 blank | 10 comment | 1 complexity | a052e7609f46cfc907623085253f85a4 MD5 | raw file
Possible License(s): LGPL-2.1, Cube, GPL-3.0, 0BSD, GPL-2.0
  1. #######################################################################
  2. # Makefile for guile test-suite
  3. #######################################################################
  4. LANGUAGE = guile
  5. VARIANT = _gh
  6. SCRIPTSUFFIX = _runme.scm
  7. srcdir = @srcdir@
  8. top_srcdir = @top_srcdir@
  9. top_builddir = @top_builddir@
  10. GUILE = @GUILE@
  11. GUILE_RUNTIME=-runtime
  12. C_TEST_CASES = long_long \
  13. list_vector \
  14. multivalue \
  15. pointer_in_out
  16. include $(srcdir)/../common.mk
  17. # Overridden variables here
  18. # none!
  19. # Custom tests - tests with additional commandline options
  20. %.multicpptest: SWIGOPT += $(GUILE_RUNTIME)
  21. # Rules for the different types of tests
  22. %.cpptest:
  23. $(setup)
  24. +$(swig_and_compile_cpp)
  25. $(run_testcase)
  26. %.ctest:
  27. $(setup)
  28. +$(swig_and_compile_c)
  29. $(run_testcase)
  30. %.multicpptest:
  31. $(setup)
  32. +$(swig_and_compile_multi_cpp)
  33. $(run_testcase)
  34. # Runs the testcase. A testcase is only run if
  35. # a file is found which has _runme.scm appended after the testcase name.
  36. run_testcase = \
  37. if [ -f $(srcdir)/$(SCRIPTPREFIX)$*$(SCRIPTSUFFIX) ]; then \
  38. env LD_LIBRARY_PATH=.:$$LD_LIBRARY_PATH $(RUNTOOL) $(GUILE) -l $(srcdir)/$(SCRIPTPREFIX)$*$(SCRIPTSUFFIX); \
  39. fi
  40. # Clean
  41. %.clean:
  42. @rm -f $*-guile
  43. clean:
  44. $(MAKE) -f $(top_builddir)/$(EXAMPLES)/Makefile guile_clean