PageRenderTime 64ms CodeModel.GetById 19ms RepoModel.GetById 0ms app.codeStats 0ms

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

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