summaryrefslogtreecommitdiff
path: root/Examples/python/libffi/Makefile
diff options
context:
space:
mode:
Diffstat (limited to 'Examples/python/libffi/Makefile')
-rw-r--r--Examples/python/libffi/Makefile20
1 files changed, 20 insertions, 0 deletions
diff --git a/Examples/python/libffi/Makefile b/Examples/python/libffi/Makefile
new file mode 100644
index 0000000..fafb7de
--- /dev/null
+++ b/Examples/python/libffi/Makefile
@@ -0,0 +1,20 @@
+TOP = ../..
+SWIG = $(TOP)/../preinst-swig
+SRCS =
+TARGET = example
+INTERFACE = example.i
+
+all::
+ $(MAKE) -f $(TOP)/Makefile SRCS='$(SRCS)' SWIG='$(SWIG)' \
+ TARGET='$(TARGET)' INTERFACE='$(INTERFACE)' LIBS='-L/usr/local/lib -lffi' python
+
+static::
+ $(MAKE) -f $(TOP)/Makefile SRCS='$(SRCS)' SWIG='$(SWIG)' \
+ TARGET='mypython' INTERFACE='$(INTERFACE)' python_static
+
+clean::
+ $(MAKE) -f $(TOP)/Makefile python_clean
+ rm -f $(TARGET).py
+
+check: all
+ $(MAKE) -f $(TOP)/Makefile python_run