update to use -export-runtime

git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk/SWIG@7008 626c5289-ae23-0410-ae9c-e8d60b6d4f22
This commit is contained in:
Marcelo Matus 2005-02-26 20:24:01 +00:00
commit fbdf160f4a
2 changed files with 3 additions and 9 deletions

View file

@ -7,12 +7,9 @@ LIBS = -lm
SWIGOPT =
all::
$(SWIG) -co swigrun.swg
$(SWIG) -o pyrun.swg -co python/pyrun.swg
$(SWIG) -o runtime.swg -co runtime.swg
$(SWIG) -python -external-runtime
$(MAKE) -f $(TOP)/Makefile $(SWIGLIB) CXXSRCS='$(CXXSRCS)' SWIG='$(SWIG)' \
SWIGOPT='$(SWIGOPT)' TARGET='$(TARGET)' INTERFACE='$(INTERFACE)' python_cpp
rm -f *.swg
static::
$(MAKE) -f $(TOP)/Makefile $(SWIGLIB) CXXSRCS='$(CXXSRCS)' SWIG='$(SWIG)' \
@ -21,7 +18,7 @@ static::
clean::
$(MAKE) -f $(TOP)/Makefile python_clean
rm -f $(TARGET).py
rm -f *.swg
rm -f swigpyrun.h
check: all

View file

@ -1,10 +1,7 @@
/* File : example.cxx */
#include <Python.h>
#include "swigrun.swg"
#include "pyrun.swg"
#include "runtime.swg"
#include "swigpyrun.h"
#include "example.h"