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:
William S Fulton 2006-02-03 22:16:01 +00:00
commit 9738e8da5a

View file

@ -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); ) &&\