From fbdf160f4a8bb0d2dca5051113f2a3ef5a8ac978 Mon Sep 17 00:00:00 2001 From: Marcelo Matus Date: Sat, 26 Feb 2005 20:24:01 +0000 Subject: [PATCH] update to use -export-runtime git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk/SWIG@7008 626c5289-ae23-0410-ae9c-e8d60b6d4f22 --- Examples/python/swigrun/Makefile | 7 ++----- Examples/python/swigrun/example.cxx | 5 +---- 2 files changed, 3 insertions(+), 9 deletions(-) diff --git a/Examples/python/swigrun/Makefile b/Examples/python/swigrun/Makefile index 70513034b..53bf701c9 100644 --- a/Examples/python/swigrun/Makefile +++ b/Examples/python/swigrun/Makefile @@ -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 diff --git a/Examples/python/swigrun/example.cxx b/Examples/python/swigrun/example.cxx index ef371d87e..daef52f79 100644 --- a/Examples/python/swigrun/example.cxx +++ b/Examples/python/swigrun/example.cxx @@ -1,10 +1,7 @@ /* File : example.cxx */ #include -#include "swigrun.swg" -#include "pyrun.swg" -#include "runtime.swg" - +#include "swigpyrun.h" #include "example.h"