summaryrefslogtreecommitdiff
path: root/Examples/python/docstrings/Makefile
diff options
context:
space:
mode:
Diffstat (limited to 'Examples/python/docstrings/Makefile')
-rw-r--r--Examples/python/docstrings/Makefile24
1 files changed, 24 insertions, 0 deletions
diff --git a/Examples/python/docstrings/Makefile b/Examples/python/docstrings/Makefile
new file mode 100644
index 0000000..f25450c
--- /dev/null
+++ b/Examples/python/docstrings/Makefile
@@ -0,0 +1,24 @@
+TOP = ../..
+SWIG = $(TOP)/../preinst-swig
+CXXSRCS = example.cxx
+TARGET = example
+INTERFACE = example.i
+LIBS = -lm
+SWIGOPT = -O
+
+all::
+ $(MAKE) -f $(TOP)/Makefile CXXSRCS='$(CXXSRCS)' SWIG='$(SWIG)' \
+ SWIGOPT='$(SWIGOPT)' \
+ TARGET='$(TARGET)' INTERFACE='$(INTERFACE)' python_cpp
+
+static::
+ $(MAKE) -f $(TOP)/Makefile 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
+ $(MAKE) -f $(TOP)/Makefile python_run