aboutsummaryrefslogtreecommitdiff
path: root/Examples/GIFPlot/Python
diff options
context:
space:
mode:
authorDave Beazley <dave-swig@dabeaz.com>2002-11-30 22:01:28 +0000
committerDave Beazley <dave-swig@dabeaz.com>2002-11-30 22:01:28 +0000
commit12a43edc2df8853e8e0315f742e57be88f0c4269 (patch)
treee3237f5f8c0a67c9bfa9bb5d6d095a739a49e4b2 /Examples/GIFPlot/Python
parent5fcae5eb66d377e1c3f81da7465c44a62295a72b (diff)
downloadswig-12a43edc2df8853e8e0315f742e57be88f0c4269.tar.gz
The great merge
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk/SWIG@4141 626c5289-ae23-0410-ae9c-e8d60b6d4f22
Diffstat (limited to 'Examples/GIFPlot/Python')
-rw-r--r--Examples/GIFPlot/Python/check.list4
-rw-r--r--Examples/GIFPlot/Python/full/.cvsignore4
-rw-r--r--Examples/GIFPlot/Python/full/Makefile12
-rw-r--r--Examples/GIFPlot/Python/full/runme.py4
-rw-r--r--Examples/GIFPlot/Python/shadow/.cvsignore6
-rw-r--r--Examples/GIFPlot/Python/shadow/Makefile14
-rw-r--r--Examples/GIFPlot/Python/simple/.cvsignore4
-rw-r--r--Examples/GIFPlot/Python/simple/Makefile10
8 files changed, 42 insertions, 16 deletions
diff --git a/Examples/GIFPlot/Python/check.list b/Examples/GIFPlot/Python/check.list
new file mode 100644
index 000000000..13de977af
--- /dev/null
+++ b/Examples/GIFPlot/Python/check.list
@@ -0,0 +1,4 @@
+# see top-level Makefile.in
+full
+shadow
+simple
diff --git a/Examples/GIFPlot/Python/full/.cvsignore b/Examples/GIFPlot/Python/full/.cvsignore
new file mode 100644
index 000000000..c5d112b05
--- /dev/null
+++ b/Examples/GIFPlot/Python/full/.cvsignore
@@ -0,0 +1,4 @@
+gifplot_wrap.c
+*.so
+*.dll
+*.gif
diff --git a/Examples/GIFPlot/Python/full/Makefile b/Examples/GIFPlot/Python/full/Makefile
index 361717c5c..ae927b72b 100644
--- a/Examples/GIFPlot/Python/full/Makefile
+++ b/Examples/GIFPlot/Python/full/Makefile
@@ -1,23 +1,25 @@
TOP = ../../..
SWIG = $(TOP)/../swig
-SWIGOPT = -I../../Include
+SWIGOPT = -I../../Include
SRCS =
TARGET = gifplot
INTERFACE = gifplot.i
LIBS = -L../.. -lgifplot
-INCLUDE = -I../../Include
+INCLUDES = -I../../Include
all::
$(MAKE) -f $(TOP)/Makefile SRCS='$(SRCS)' SWIG='$(SWIG)' \
- INCLUDE='$(INCLUDE)' LIBS='$(LIBS)' SWIGOPT='$(SWIGOPT)' \
+ INCLUDES='$(INCLUDES)' LIBS='$(LIBS)' SWIGOPT='$(SWIGOPT)' \
TARGET='$(TARGET)' INTERFACE='$(INTERFACE)' python
static::
$(MAKE) -f $(TOP)/Makefile SRCS='$(SRCS)' SWIG='$(SWIG)' \
- INCLUDE='$(INCLUDE)' LIBS='$(LIBS)' SWIGOPT='$(SWIGOPT)' \
+ INCLUDES='$(INCLUDES)' LIBS='$(LIBS)' SWIGOPT='$(SWIGOPT)' \
TARGET='mypython' INTERFACE='$(INTERFACE)' python_static
clean::
- rm -f *_wrap* *.o *~ *.so mypython *.pyc .~* core *.gif
+ $(MAKE) -f $(TOP)/Makefile python_clean
+ rm -f $(TARGET).py
+ rm -f *.gif
check: all
diff --git a/Examples/GIFPlot/Python/full/runme.py b/Examples/GIFPlot/Python/full/runme.py
index 1c73cec69..9f4ada602 100644
--- a/Examples/GIFPlot/Python/full/runme.py
+++ b/Examples/GIFPlot/Python/full/runme.py
@@ -1,5 +1,7 @@
# Plot a 3D function
-from gifplot import *
+# This example uses the low-level C interface.
+
+from _gifplot import *
from math import *
# Here is the function to plot
diff --git a/Examples/GIFPlot/Python/shadow/.cvsignore b/Examples/GIFPlot/Python/shadow/.cvsignore
new file mode 100644
index 000000000..7533bf0c4
--- /dev/null
+++ b/Examples/GIFPlot/Python/shadow/.cvsignore
@@ -0,0 +1,6 @@
+gifplot.py
+gifplot.pyc
+gifplot_wrap.c
+*.so
+*.dll
+*.gif
diff --git a/Examples/GIFPlot/Python/shadow/Makefile b/Examples/GIFPlot/Python/shadow/Makefile
index 82097b7e9..1f5014895 100644
--- a/Examples/GIFPlot/Python/shadow/Makefile
+++ b/Examples/GIFPlot/Python/shadow/Makefile
@@ -1,23 +1,25 @@
TOP = ../../..
SWIG = $(TOP)/../swig
-SWIGOPT = -I../../Interface -shadow
+SWIGOPT = -I../../Interface
SRCS =
-TARGET = gifplotc
+TARGET = gifplot
INTERFACE = gifplot.i
LIBS = -L../.. -lgifplot
-INCLUDE = -I../../Include
+INCLUDES = -I../../Include
all::
$(MAKE) -f $(TOP)/Makefile SRCS='$(SRCS)' SWIG='$(SWIG)' \
- INCLUDE='$(INCLUDE)' LIBS='$(LIBS)' SWIGOPT='$(SWIGOPT)' \
+ INCLUDES='$(INCLUDES)' LIBS='$(LIBS)' SWIGOPT='$(SWIGOPT)' \
TARGET='$(TARGET)' INTERFACE='$(INTERFACE)' python
static::
$(MAKE) -f $(TOP)/Makefile SRCS='$(SRCS)' SWIG='$(SWIG)' \
- INCLUDE='$(INCLUDE)' LIBS='$(LIBS)' SWIGOPT='$(SWIGOPT)' \
+ INCLUDES='$(INCLUDES)' LIBS='$(LIBS)' SWIGOPT='$(SWIGOPT)' \
TARGET='mypython' INTERFACE='$(INTERFACE)' python_static
clean::
- rm -f *_wrap* *.o *~ *.so mypython *.pyc .~* core *.gif
+ $(MAKE) -f $(TOP)/Makefile python_clean
+ rm -f $(TARGET).py
+ rm -f *.gif
check: all
diff --git a/Examples/GIFPlot/Python/simple/.cvsignore b/Examples/GIFPlot/Python/simple/.cvsignore
new file mode 100644
index 000000000..0c4113eb0
--- /dev/null
+++ b/Examples/GIFPlot/Python/simple/.cvsignore
@@ -0,0 +1,4 @@
+simple_wrap.c
+*.so
+*.dll
+*.gif
diff --git a/Examples/GIFPlot/Python/simple/Makefile b/Examples/GIFPlot/Python/simple/Makefile
index e9b708633..5eb0344e8 100644
--- a/Examples/GIFPlot/Python/simple/Makefile
+++ b/Examples/GIFPlot/Python/simple/Makefile
@@ -5,19 +5,21 @@ SRCS =
TARGET = simple
INTERFACE = simple.i
LIBS = -L../.. -lgifplot
-INCLUDE = -I../../Include
+INCLUDES = -I../../Include
all::
$(MAKE) -f $(TOP)/Makefile SRCS='$(SRCS)' SWIG='$(SWIG)' \
- INCLUDE='$(INCLUDE)' LIBS='$(LIBS)' SWIGOPT='$(SWIGOPT)' \
+ INCLUDES='$(INCLUDES)' LIBS='$(LIBS)' SWIGOPT='$(SWIGOPT)' \
TARGET='$(TARGET)' INTERFACE='$(INTERFACE)' python
static::
$(MAKE) -f $(TOP)/Makefile SRCS='$(SRCS)' SWIG='$(SWIG)' \
- INCLUDE='$(INCLUDE)' LIBS='$(LIBS)' SWIGOPT='$(SWIGOPT)' \
+ INCLUDES='$(INCLUDES)' LIBS='$(LIBS)' SWIGOPT='$(SWIGOPT)' \
TARGET='mypython' INTERFACE='$(INTERFACE)' python_static
clean::
- rm -f *_wrap* *.o *~ *.so mypython *.pyc .~* core *.gif
+ $(MAKE) -f $(TOP)/Makefile python_clean
+ rm -f $(TARGET).py
+ rm -f *.gif
check: all