Multiple build directory support

git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@5040 626c5289-ae23-0410-ae9c-e8d60b6d4f22
This commit is contained in:
William S Fulton 2003-09-01 15:15:50 +00:00
commit 0cc299f6d8
13 changed files with 126 additions and 83 deletions

View file

@ -1,13 +1,21 @@
#######################################################################
# $Header$
# Makefile for ocaml test-suite
#######################################################################
LANGUAGE = ocaml
VARIANT = _static
SCRIPTSUFFIX = _runme.ml
srcdir = @srcdir@
top_srcdir = @top_srcdir@
top_builddir = @top_builddir@
C_TEST_CASES =
run_testcase = \
if [ -f $*\_runme.ml ] ; then \
(ocamlc -c $*\_runme.ml ; \
ocamlc -custom -g -cc '$(CXX)' -o runme $*\.cmo $*\_runme.cmo $*\_wrap.o ; \
if [ -f $(srcdir)/$(SCRIPTPREFIX)$*$(SCRIPTSUFFIX) ]; then ( \
ocamlc -c $(srcdir)/$(SCRIPTPREFIX)$*$(SCRIPTSUFFIX); \
ocamlc -custom -g -cc '$(CXX)' -o runme $(srcdir)/$*\.cmo $(srcdir)/$*\_runme.cmo $(srcdir)/$*\_wrap.o ; \
./runme) ; \
fi ;
@ -27,8 +35,12 @@ check_quant:
echo "Success:" >> results
cat success >> results
include ../common.mk
include $(srcdir)/../common.mk
# Overridden variables here
# none!
# Rules for the different types of tests
%.cpptest:
echo $@ >> testing
$(setup) \
@ -56,9 +68,10 @@ include ../common.mk
echo $@ >> success ; \
fi
# Clean
%.clean:
@rm -f $*.ml $*.mli;
clean:
$(MAKE) -f $(TOP)/Makefile ocaml_clean
$(MAKE) -f $(top_builddir)/$(EXAMPLES)/Makefile ocaml_clean