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