PHP examples makefiles clean target fixed and use RUNPIPE and tidyup
This commit is contained in:
parent
92ffedceb5
commit
0fa791d1ea
18 changed files with 108 additions and 126 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue