1 #######################################################################
2 # Makefile for guile test-suite
3 #######################################################################
7 SCRIPTSUFFIX = _runme.scm
9 top_srcdir = @top_srcdir@
10 top_builddir = @top_builddir@
12 GUILE_RUNTIME=-runtime
14 C_TEST_CASES = long_long \
20 include $(srcdir)/../common.mk
22 # Overridden variables here
25 # Custom tests - tests with additional commandline options
26 %.multicpptest: SWIGOPT += $(GUILE_RUNTIME)
28 # Rules for the different types of tests
31 +$(swig_and_compile_cpp)
36 +$(swig_and_compile_c)
41 +$(swig_and_compile_multi_cpp)
44 # Runs the testcase. A testcase is only run if
45 # a file is found which has _runme.scm appended after the testcase name.
47 if [ -f $(srcdir)/$(SCRIPTPREFIX)$*$(SCRIPTSUFFIX) ]; then \
48 env LD_LIBRARY_PATH=.:$$LD_LIBRARY_PATH $(RUNTOOL) $(GUILE) -l $(srcdir)/$(SCRIPTPREFIX)$*$(SCRIPTSUFFIX); \
56 $(MAKE) -f $(top_builddir)/$(EXAMPLES)/Makefile guile_clean