summaryrefslogtreecommitdiff
path: root/Examples/python/callback/Makefile
diff options
context:
space:
mode:
authorMark Rose <mrose@stm.lbl.gov>2003-03-07 10:26:56 +0000
committerMark Rose <mrose@stm.lbl.gov>2003-03-07 10:26:56 +0000
commit8db3f9e8dfc2ca25464d4d72727757690c681197 (patch)
tree31d57dc96da1086cc063cd5142ba0756cb0be448 /Examples/python/callback/Makefile
parentc8b971fd33d82129cee5810929c532ec92f2124a (diff)
downloadswig-8db3f9e8dfc2ca25464d4d72727757690c681197.tar.gz
two director examples for python
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk/SWIG@4447 626c5289-ae23-0410-ae9c-e8d60b6d4f22
Diffstat (limited to 'Examples/python/callback/Makefile')
-rw-r--r--Examples/python/callback/Makefile22
1 files changed, 22 insertions, 0 deletions
diff --git a/Examples/python/callback/Makefile b/Examples/python/callback/Makefile
new file mode 100644
index 000000000..2906b3d74
--- /dev/null
+++ b/Examples/python/callback/Makefile
@@ -0,0 +1,22 @@
+TOP = ../..
+SWIG = $(TOP)/../swig
+CXXSRCS = example.cxx
+TARGET = example
+INTERFACE = example.i
+LIBS = -lm
+SWIGOPT =
+SWIGLIB = SWIG_LIB=/b/mrose/projects/swig/SWIG/Lib
+
+all::
+ $(MAKE) -f $(TOP)/Makefile $(SWIGLIB) CXXSRCS='$(CXXSRCS)' SWIG='$(SWIG)' \
+ SWIGOPT='$(SWIGOPT)' TARGET='$(TARGET)' INTERFACE='$(INTERFACE)' python_cpp
+
+static::
+ $(MAKE) -f $(TOP)/Makefile $(SWIGLIB) CXXSRCS='$(CXXSRCS)' SWIG='$(SWIG)' \
+ SWIGOPT='$(SWIGOPT)' TARGET='mypython' INTERFACE='$(INTERFACE)' python_cpp_static
+
+clean::
+ $(MAKE) -f $(TOP)/Makefile python_clean
+ rm -f $(TARGET).py
+
+check: all