summaryrefslogtreecommitdiff
path: root/devel
diff options
context:
space:
mode:
authorXuefer <xuefer@gmail.com>2013-07-15 17:37:57 +0000
committerXuefer <xuefer@gmail.com>2013-07-15 17:37:57 +0000
commit02eb6beda4627c219a98ea35cb66375fee6d8d9d (patch)
treeb98438f3e2177a5650fe31fda4edd5e67e56b228 /devel
parentb166cbc63e1e972149085e7a512256f3fca385cd (diff)
downloadxcache-02eb6beda4627c219a98ea35cb66375fee6d8d9d.tar.gz
xcache-02eb6beda4627c219a98ea35cb66375fee6d8d9d.zip
add back PHP_4 code for disassembler
git-svn-id: svn://svn.lighttpd.net/xcache/trunk@1321 c26eb9a1-5813-0410-bd6c-c2e55f420ca7
Diffstat (limited to 'devel')
-rw-r--r--devel/prepare.cfg.example1
-rw-r--r--devel/prepare.mak10
2 files changed, 11 insertions, 0 deletions
diff --git a/devel/prepare.cfg.example b/devel/prepare.cfg.example
index 78382d3..0968403 100644
--- a/devel/prepare.cfg.example
+++ b/devel/prepare.cfg.example
@@ -1,4 +1,5 @@
# copy this file as prepare.cfg before modifying
+PHP4_x_DIR=
PHP5_0_DIR=
PHP5_1_DIR=
PHP5_3_DIR=
diff --git a/devel/prepare.mak b/devel/prepare.mak
index 4f74ce7..2f826c0 100644
--- a/devel/prepare.mak
+++ b/devel/prepare.mak
@@ -17,6 +17,7 @@ clean_xc_const_string:
.PHONY: xc_const_string
xc_const_string: \
+ xcache/xc_const_string_opcodes_php4.x.h \
xcache/xc_const_string_opcodes_php5.0.h \
xcache/xc_const_string_opcodes_php5.1.h \
xcache/xc_const_string_opcodes_php5.3.h \
@@ -33,6 +34,15 @@ xcache/xc_opcode_spec_def.h: ${EA_DIR}/opcodes.c
mv "$@".tmp "$@"
endif
+ifeq (${PHP4_x_DIR},)
+xcache/xc_const_string_opcodes_php4.x.h: dummy
+ @echo "Skipped $@: PHP_4_x_DIR not set"
+else
+xcache/xc_const_string_opcodes_php4.x.h: ${PHP4_x_DIR}/Zend/zend_compile.h
+ $(AWK) -f ./devel/gen_const_string_opcodes.awk < "$<" > "$@.tmp"
+ mv "$@.tmp" "$@"
+endif
+
ifeq (${PHP5_0_DIR},)
xcache/xc_const_string_opcodes_php5.0.h: dummy
@echo "Skipped $@: PHP_5_0_DIR not set"