avoid to call MAKE when building a .ccptes or .ctest case. This allows to use make -j2, and also it should reduce the running time in windows where forking another MAKE process is expensive
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk/SWIG@8620 626c5289-ae23-0410-ae9c-e8d60b6d4f22
This commit is contained in:
parent
7d3476fe2f
commit
d3fbe6779f
1 changed files with 19 additions and 3 deletions
|
|
@ -3,6 +3,9 @@
|
||||||
# Makefile for python test-suite
|
# Makefile for python test-suite
|
||||||
#######################################################################
|
#######################################################################
|
||||||
|
|
||||||
|
srcdir = @srcdir@
|
||||||
|
include $(srcdir)/../../Makefile
|
||||||
|
|
||||||
LANGUAGE = python
|
LANGUAGE = python
|
||||||
ifneq (,$(USE_VALGRIND))
|
ifneq (,$(USE_VALGRIND))
|
||||||
PYTHON = valgrind --leak-check=full --suppressions=pyswig.supp @PYTHON@
|
PYTHON = valgrind --leak-check=full --suppressions=pyswig.supp @PYTHON@
|
||||||
|
|
@ -10,7 +13,6 @@ else
|
||||||
PYTHON = @PYTHON@
|
PYTHON = @PYTHON@
|
||||||
endif
|
endif
|
||||||
SCRIPTSUFFIX = _runme.py
|
SCRIPTSUFFIX = _runme.py
|
||||||
srcdir = @srcdir@
|
|
||||||
top_srcdir = @top_srcdir@
|
top_srcdir = @top_srcdir@
|
||||||
top_builddir = @top_builddir@
|
top_builddir = @top_builddir@
|
||||||
|
|
||||||
|
|
@ -68,14 +70,28 @@ LIBS = -L.
|
||||||
# Rules for the different types of tests
|
# Rules for the different types of tests
|
||||||
%.cpptest:
|
%.cpptest:
|
||||||
$(setup) \
|
$(setup) \
|
||||||
($(swig_and_compile_cpp); ) &&\
|
$(SWIG) -c++ -python $(SWIGOPT) $*.i && \
|
||||||
|
$(CXX) -c $(CCSHARED) $(CFLAGS) $*_wrap.cxx $(INCLUDES) $(PYTHON_INCLUDE) && \
|
||||||
|
$(CXXSHARED) $(OBJS) $*_wrap.o $(PYTHON_DLNK) $(LIBS) -o _$*$(PYTHON_SO) && \
|
||||||
$(run_testcase)
|
$(run_testcase)
|
||||||
|
|
||||||
|
#%.cpptest:
|
||||||
|
# $(setup) \
|
||||||
|
# ($(swig_and_compile_cpp); ) &&\
|
||||||
|
# $(run_testcase)
|
||||||
|
|
||||||
%.ctest:
|
%.ctest:
|
||||||
$(setup) \
|
$(setup) \
|
||||||
($(swig_and_compile_c); ) &&\
|
$(SWIG) -python $(SWIGOPT) $*.i && \
|
||||||
|
$(CC) -c $(CCSHARED) $(CFLAGS) $*_wrap.c $(INCLUDES) $(PYTHON_INCLUDE) && \
|
||||||
|
$(LDSHARED) $(OBJS) $*_wrap.o $(PYTHON_DLNK) $(LIBS) -o _$*$(PYTHON_SO) && \
|
||||||
$(run_testcase)
|
$(run_testcase)
|
||||||
|
|
||||||
|
#%.ctest:
|
||||||
|
# $(setup) \
|
||||||
|
# ($(swig_and_compile_c); ) &&\
|
||||||
|
# $(run_testcase)
|
||||||
|
|
||||||
%.multicpptest:
|
%.multicpptest:
|
||||||
$(setup) \
|
$(setup) \
|
||||||
($(swig_and_compile_multi_cpp); ) &&\
|
($(swig_and_compile_multi_cpp); ) &&\
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue