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"