which does -runtime. git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk/SWIG@7270 626c5289-ae23-0410-ae9c-e8d60b6d4f22
33 lines
1.3 KiB
Makefile
33 lines
1.3 KiB
Makefile
#######################################################################
|
|
# $Header$
|
|
# Makefile for guile test-suite (with SCM API)
|
|
#######################################################################
|
|
|
|
include ../guile/Makefile
|
|
|
|
VARIANT =
|
|
# Refer to the guile directory for the run scripts
|
|
SCRIPTPREFIX = ../guile/
|
|
|
|
# Runs the testcase. A testcase is only run if
|
|
# a file is found which has _runme.scm appended after the testcase name.
|
|
run_testcase = \
|
|
if [ -f $(srcdir)/$(SCRIPTPREFIX)$*$(SCRIPTSUFFIX) ]; then ( \
|
|
env LD_LIBRARY_PATH=.:$$LD_LIBRARY_PATH $(GUILE) -l $(srcdir)/$(SCRIPTPREFIX)$*$(SCRIPTSUFFIX);) \
|
|
fi;
|
|
|
|
setup = \
|
|
if [ -f $(srcdir)/$(SCRIPTPREFIX)$*$(SCRIPTSUFFIX) ]; then \
|
|
echo "Checking testcase $* (with run test) under $(LANGUAGE) (with SCM API)" ; \
|
|
else \
|
|
echo "Checking testcase $* under $(LANGUAGE) (with SCM API)" ; \
|
|
fi;
|
|
|
|
swig_and_compile_multi_cpp = \
|
|
for f in `cat $(top_srcdir)/$(EXAMPLES)/$(TEST_SUITE)/$*.list` ; do \
|
|
$(MAKE) -f $(top_builddir)/$(EXAMPLES)/Makefile CXXSRCS="$(CXXSRCS)" \
|
|
SWIG_LIB="$(SWIG_LIB)" SWIG="$(SWIG)" LIBS='$(LIBS)' \
|
|
INCLUDES="$(INCLUDES)" SWIGOPT="$(SWIGOPT) $$SWIGOPT" NOLINK=true \
|
|
TARGET="$(TARGETPREFIX)$${f}$(TARGETSUFFIX)" INTERFACE="$$f.i" \
|
|
$(LANGUAGE)$(VARIANT)_cpp; \
|
|
done
|