source: trunk/make.devel @ 1

Last change on this file since 1 was 1, checked in by moo, 9 years ago

initial import to online

File size: 1.5 KB
Line 
1#!/usr/bin/make -if
2# vim:syntax=make
3SELF=MAKELEVEL=0 ./make.devel
4
5# You should copy make.inc from make.inc.default
6include make.inc
7
8all: opcode_spec_def const_string tags
9
10clean: clean_const_string
11    rm -f tags opcode_spec_def.h
12
13const_string:
14    @-$(SELF) const_string_opcodes_php4.x.h
15    @-$(SELF) const_string_opcodes_php5.0.h
16    @-$(SELF) const_string_opcodes_php5.1.h
17    @-$(SELF) const_string_opcodes_php6.x.h
18
19clean_const_string:
20    rm -f const_string_opcodes_php4.x.h const_string_opcodes_php5.0.h const_string_opcodes_php5.1.h const_string_opcodes_php6.x.h
21
22const_string_opcodes_php4.x.h: $(PHP4_x_DIR)/Zend/zend_compile.h
23    ./mkopcode.awk <       $(PHP4_x_DIR)/Zend/zend_compile.h > const_string_opcodes_php4.x.h
24
25const_string_opcodes_php5.0.h: $(PHP5_0_DIR)/Zend/zend_vm_def.h
26    ./mkopcode.awk <       $(PHP5_0_DIR)/Zend/zend_vm_def.h  > const_string_opcodes_php5.0.h
27
28const_string_opcodes_php5.1.h: $(PHP5_1_DIR)/Zend/zend_vm_def.h
29    ./mkopcode.awk <       $(PHP5_1_DIR)/Zend/zend_vm_def.h  > const_string_opcodes_php5.1.h
30
31const_string_opcodes_php6.x.h: $(PHP6_x_DIR)/Zend/zend_vm_def.h
32    ./mkopcode.awk <       $(PHP6_x_DIR)/Zend/zend_vm_def.h  > const_string_opcodes_php6.x.h
33
34tags:
35    test -d $(PHP_DEVEL_DIR) && ctags -R . $(PHP_DEVEL_DIR)/main $(PHP_DEVEL_DIR)/Zend $(PHP_DEVEL_DIR)/TSRM $(PHP_DEVEL_DIR)/ext/standard || ctags -R .
36
37opcode_spec_def:
38    @-$(SELF) opcode_spec_def.h
39
40opcode_spec_def.h: $(EA_DIR)/opcodes.c
41    ./mkopcode_spec.awk < $(EA_DIR)/opcodes.c > opcode_spec_def.h \
42
43.PHONY: const_string opcode_spec_def
Note: See TracBrowser for help on using the repository browser.