summaryrefslogtreecommitdiff
path: root/trunk/Examples/php/cpointer/Makefile
diff options
context:
space:
mode:
Diffstat (limited to 'trunk/Examples/php/cpointer/Makefile')
-rw-r--r--trunk/Examples/php/cpointer/Makefile24
1 files changed, 24 insertions, 0 deletions
diff --git a/trunk/Examples/php/cpointer/Makefile b/trunk/Examples/php/cpointer/Makefile
new file mode 100644
index 000000000..0862ce5ec
--- /dev/null
+++ b/trunk/Examples/php/cpointer/Makefile
@@ -0,0 +1,24 @@
+TOP = ../..
+SWIG = $(TOP)/../preinst-swig
+SRCS = example.c
+TARGET = example
+INTERFACE = example.i
+LIBS =
+SWIGOPT =
+
+all::
+ $(MAKE) -f $(TOP)/Makefile SRCS='$(SRCS)' SWIG='$(SWIG)' \
+ SWIGOPT='$(SWIGOPT)' TARGET='$(TARGET)' INTERFACE='$(INTERFACE)' \
+ php
+
+static::
+ $(MAKE) -f $(TOP)/Makefile SRCS='$(SRCS)' SWIG='$(SWIG)' \
+ SWIGOPT='$(SWIGOPT)' TARGET='myphp' INTERFACE='$(INTERFACE)' \
+ php_static
+
+clean::
+ $(MAKE) -f $(TOP)/Makefile php_clean
+ rm -f $(TARGET).php
+
+check: all
+ $(MAKE) -f $(TOP)/Makefile php_run