summaryrefslogtreecommitdiff
path: root/devel
diff options
context:
space:
mode:
authorXuefer <xuefer@gmail.com>2014-05-27 04:53:34 +0000
committerXuefer <xuefer@gmail.com>2014-05-27 04:53:34 +0000
commita35afeb482fdff2096b014f5039abbec40a43d7b (patch)
tree6856b28fc58849eadc9fe4c5b446e20e7fe02d36 /devel
parent028aafe3c4653f7eba5634a05b2b154c3f06810a (diff)
downloadxcache-a35afeb482fdff2096b014f5039abbec40a43d7b.tar.gz
xcache-a35afeb482fdff2096b014f5039abbec40a43d7b.zip
WIP PHP_5_6 support
git-svn-id: svn://svn.lighttpd.net/xcache/trunk@1486 c26eb9a1-5813-0410-bd6c-c2e55f420ca7
Diffstat (limited to 'devel')
-rw-r--r--devel/prepare.cfg.example3
-rw-r--r--devel/prepare.mak10
2 files changed, 12 insertions, 1 deletions
diff --git a/devel/prepare.cfg.example b/devel/prepare.cfg.example
index 0968403..368543d 100644
--- a/devel/prepare.cfg.example
+++ b/devel/prepare.cfg.example
@@ -5,9 +5,10 @@ PHP5_1_DIR=
PHP5_3_DIR=
PHP5_4_DIR=
PHP5_5_DIR=
+PHP5_6_DIR=
PHP6_x_DIR=
-PHP_DEVEL_DIR=
+PHP_DEVEL_DIR=$(PHP5_6_DIR)
# path to eaccelerator source dir
EA_DIR=
diff --git a/devel/prepare.mak b/devel/prepare.mak
index 141e4a0..25ab836 100644
--- a/devel/prepare.mak
+++ b/devel/prepare.mak
@@ -24,6 +24,7 @@ xc_const_string: \
xcache/xc_const_string_opcodes_php5.3.h \
xcache/xc_const_string_opcodes_php5.4.h \
xcache/xc_const_string_opcodes_php5.5.h \
+ xcache/xc_const_string_opcodes_php5.6.h \
xcache/xc_const_string_opcodes_php6.x.h
ifeq (${EA_DIR},)
@@ -98,6 +99,15 @@ xcache/xc_const_string_opcodes_php5.5.h: ${PHP5_5_DIR}/Zend/zend_vm_def.h
mv "$@.tmp" "$@"
endif
+ifeq (${PHP5_6_DIR},)
+xcache/xc_const_string_opcodes_php5.6.h: dummy
+ @echo "Skipped $@: PHP_5_6_DIR not set"
+else
+xcache/xc_const_string_opcodes_php5.6.h: ${PHP5_6_DIR}/Zend/zend_vm_def.h
+ $(AWK) -f ./devel/gen_const_string_opcodes.awk < "$<" > "$@.tmp"
+ mv "$@.tmp" "$@"
+endif
+
ifeq (${PHP6_x_DIR},)
xcache/xc_const_string_opcodes_php6.x.h: dummy
@echo "Skipped $@: PHP_6_x_DIR not set"