back to original makefile, the changes didn't speed things up at all and it is better not to duplicate the build code.
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk/SWIG@8697 626c5289-ae23-0410-ae9c-e8d60b6d4f22
This commit is contained in:
parent
72f6688a6b
commit
9738e8da5a
1 changed files with 3 additions and 19 deletions
|
|
@ -3,9 +3,6 @@
|
||||||
# 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@
|
||||||
|
|
@ -13,6 +10,7 @@ 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@
|
||||||
|
|
||||||
|
|
@ -70,28 +68,14 @@ LIBS = -L.
|
||||||
# Rules for the different types of tests
|
# Rules for the different types of tests
|
||||||
%.cpptest:
|
%.cpptest:
|
||||||
$(setup) \
|
$(setup) \
|
||||||
$(SWIG) -c++ -python $(SWIGOPT) $*.i && \
|
($(swig_and_compile_cpp); ) &&\
|
||||||
$(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) -python $(SWIGOPT) $*.i && \
|
($(swig_and_compile_c); ) &&\
|
||||||
$(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