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
#######################################################################
srcdir = @srcdir@
include $(srcdir)/../../Makefile
LANGUAGE = python
ifneq (,$(USE_VALGRIND))
PYTHON = valgrind --leak-check=full --suppressions=pyswig.supp @PYTHON@
@ -13,6 +10,7 @@ else
PYTHON = @PYTHON@
endif
SCRIPTSUFFIX = _runme.py
srcdir = @srcdir@
top_srcdir = @top_srcdir@
top_builddir = @top_builddir@
@ -70,28 +68,14 @@ LIBS = -L.
# Rules for the different types of tests
%.cpptest:
$(setup) \
$(SWIG) -c++ -python $(SWIGOPT) $*.i && \
$(CXX) -c $(CCSHARED) $(CFLAGS) $*_wrap.cxx $(INCLUDES) $(PYTHON_INCLUDE) && \
$(CXXSHARED) $(OBJS) $*_wrap.o $(PYTHON_DLNK) $(LIBS) -o _$*$(PYTHON_SO) && \
($(swig_and_compile_cpp); ) &&\
$(run_testcase)
#%.cpptest:
# $(setup) \
# ($(swig_and_compile_cpp); ) &&\
# $(run_testcase)
%.ctest:
$(setup) \
$(SWIG) -python $(SWIGOPT) $*.i && \
$(CC) -c $(CCSHARED) $(CFLAGS) $*_wrap.c $(INCLUDES) $(PYTHON_INCLUDE) && \
$(LDSHARED) $(OBJS) $*_wrap.o $(PYTHON_DLNK) $(LIBS) -o _$*$(PYTHON_SO) && \
($(swig_and_compile_c); ) &&\
$(run_testcase)
#%.ctest:
# $(setup) \
# ($(swig_and_compile_c); ) &&\
# $(run_testcase)
%.multicpptest:
$(setup) \
($(swig_and_compile_multi_cpp); ) &&\