PageRenderTime 5ms CodeModel.GetById 2ms app.highlight 1ms RepoModel.GetById 1ms 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
 1#######################################################################
 2# Makefile for guile test-suite
 3#######################################################################
 4
 5LANGUAGE     = guile
 6VARIANT      = _gh
 7SCRIPTSUFFIX = _runme.scm
 8srcdir       = @srcdir@
 9top_srcdir   = @top_srcdir@
10top_builddir = @top_builddir@
11GUILE        = @GUILE@
12GUILE_RUNTIME=-runtime
13
14C_TEST_CASES = long_long \
15               list_vector \
16               multivalue \
17               pointer_in_out
18
19
20include $(srcdir)/../common.mk
21
22# Overridden variables here
23# none!
24
25# Custom tests - tests with additional commandline options
26%.multicpptest: SWIGOPT += $(GUILE_RUNTIME)
27
28# Rules for the different types of tests
29%.cpptest: 
30	$(setup)
31	+$(swig_and_compile_cpp)
32	$(run_testcase)
33
34%.ctest:
35	$(setup)
36	+$(swig_and_compile_c)
37	$(run_testcase)
38
39%.multicpptest: 
40	$(setup)
41	+$(swig_and_compile_multi_cpp)
42	$(run_testcase)
43
44# Runs the testcase. A testcase is only run if
45# a file is found which has _runme.scm appended after the testcase name.
46run_testcase = \
47	if [ -f $(srcdir)/$(SCRIPTPREFIX)$*$(SCRIPTSUFFIX) ]; then \
48	  env LD_LIBRARY_PATH=.:$$LD_LIBRARY_PATH $(RUNTOOL) $(GUILE) -l $(srcdir)/$(SCRIPTPREFIX)$*$(SCRIPTSUFFIX); \
49	fi
50
51# Clean
52%.clean:
53	@rm -f $*-guile
54
55clean:
56	$(MAKE) -f $(top_builddir)/$(EXAMPLES)/Makefile guile_clean