XCache is a fast, stable PHP opcode cacher that has been proven and is now running on production servers under high load.
https://xcache.lighttpd.net/
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
99 lines
2.8 KiB
99 lines
2.8 KiB
![]()
10 years ago
|
CTAGS=$(shell which ctags 2>/dev/null || which exuberant-ctags 2>/dev/null)
|
||
|
AWK=$(shell which gawk 2>/dev/null || which awk 2>/dev/null)
|
||
|
|
||
|
include devel/prepare.cfg
|
||
|
|
||
|
.PHONY: dummy
|
||
|
.PHONY: all
|
||
|
all: xcache/xc_opcode_spec_def.h xc_const_string tags
|
||
|
|
||
|
.PHONY: clean
|
||
|
clean: clean_xc_const_string
|
||
|
rm -f tags xcache/xc_opcode_spec_def.h
|
||
|
|
||
|
.PHONY: clean_xc_const_string
|
||
|
clean_xc_const_string:
|
||
|
rm -f xcache/xc_const_string_opcodes_php*.h
|
||
|
|
||
|
.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 \
|
||
|
xcache/xc_const_string_opcodes_php5.4.h \
|
||
|
xcache/xc_const_string_opcodes_php6.x.h
|
||
|
|
||
|
ifeq (${EA_DIR},)
|
||
|
xcache/xc_opcode_spec_def.h: dummy
|
||
|
@echo "Skipped $@: EA_DIR not set"
|
||
|
else
|
||
|
xcache/xc_opcode_spec_def.h: ${EA_DIR}/opcodes.c
|
||
|
$(AWK) -f ./devel/gen_xc_opcode_spec.awk < "$<" > "$@".tmp
|
||
|
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"
|
||
|
else
|
||
|
xcache/xc_const_string_opcodes_php5.0.h: ${PHP5_0_DIR}/Zend/zend_compile.h
|
||
|
$(AWK) -f ./devel/gen_const_string_opcodes.awk < "$<" > "$@.tmp"
|
||
|
mv "$@.tmp" "$@"
|
||
|
endif
|
||
|
|
||
|
ifeq (${PHP5_1_DIR},)
|
||
|
xcache/xc_const_string_opcodes_php5.1.h: dummy
|
||
|
@echo "Skipped $@: PHP_5_1_DIR not set"
|
||
|
else
|
||
|
xcache/xc_const_string_opcodes_php5.1.h: ${PHP5_1_DIR}/Zend/zend_vm_def.h
|
||
|
$(AWK) -f ./devel/gen_const_string_opcodes.awk < "$<" > "$@.tmp"
|
||
|
mv "$@.tmp" "$@"
|
||
|
endif
|
||
|
|
||
|
ifeq (${PHP5_3_DIR},)
|
||
|
xcache/xc_const_string_opcodes_php5.3.h: dummy
|
||
|
@echo "Skipped $@: PHP_5_3_DIR not set"
|
||
|
else
|
||
|
xcache/xc_const_string_opcodes_php5.3.h: ${PHP5_3_DIR}/Zend/zend_vm_def.h
|
||
|
$(AWK) -f ./devel/gen_const_string_opcodes.awk < "$<" > "$@.tmp"
|
||
|
mv "$@.tmp" "$@"
|
||
|
endif
|
||
|
|
||
|
ifeq (${PHP5_4_DIR},)
|
||
|
xcache/xc_const_string_opcodes_php5.4.h: dummy
|
||
|
@echo "Skipped $@: PHP_5_4_DIR not set"
|
||
|
else
|
||
|
xcache/xc_const_string_opcodes_php5.4.h: ${PHP5_4_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"
|
||
|
else
|
||
|
xcache/xc_const_string_opcodes_php6.x.h: ${PHP6_x_DIR}/Zend/zend_vm_def.h
|
||
|
$(AWK) -f ./devel/gen_const_string_opcodes.awk < "$<" > "$@.tmp"
|
||
|
mv "$@.tmp" "$@"
|
||
|
endif
|
||
|
|
||
|
ifeq (${PHP_DEVEL_DIR},)
|
||
|
tags:
|
||
|
echo "* Making tags without php source files"
|
||
|
"$(CTAGS)" -R .
|
||
|
else
|
||
|
tags:
|
||
|
echo "* Making tags with ${PHP_DEVEL_DIR}"
|
||
|
"$(CTAGS)" -R . "${PHP_DEVEL_DIR}/main" "${PHP_DEVEL_DIR}/Zend" "${PHP_DEVEL_DIR}/TSRM" "${PHP_DEVEL_DIR}/ext/standard"
|
||
|
endif
|