PHP examples makefiles clean target fixed and use RUNPIPE and tidyup

This commit is contained in:
William S Fulton 2013-04-13 01:12:36 +01:00
commit 0fa791d1ea
18 changed files with 108 additions and 126 deletions

View file

@ -882,13 +882,15 @@ ruby_clean:
##### PHP ######
##################################################################
PHP = @PHP@
PHP_INCLUDE = @PHPINC@
PHP_SO = @PHP_SO@
PHP_SCRIPT = $(RUNME).php
# -------------------------------------------------------------------
# Build a PHP dynamically loadable module (C)
# -------------------------------------------------------------------
PHP_INCLUDE = @PHPINC@
PHP_SO = @PHP_SO@
php: $(SRCS)
$(SWIG) -php $(SWIGOPT) $(INTERFACEPATH)
$(CC) -c $(CCSHARED) $(CFLAGS) $(SRCS) $(ISRCS) $(INCLUDES) $(PHP_INCLUDE)
@ -907,11 +909,8 @@ php_cpp: $(SRCS)
# Running a PHP example
# -----------------------------------------------------------------
PHP=@PHP@
PHPSCRIPT ?= runme.php
php_run:
$(RUNTOOL) $(PHP) -n -q -d extension_dir=. -d safe_mode=Off $(PHPSCRIPT)
$(RUNTOOL) $(PHP) -n -q -d extension_dir=. -d safe_mode=Off $(PHP_SCRIPT) $(RUNPIPE)
# -----------------------------------------------------------------
# Version display