diff options
author | Gu Weigang <guweigang@outlook.com> | 2013-12-13 13:29:34 +0800 |
---|---|---|
committer | Gu Weigang <guweigang@outlook.com> | 2013-12-13 13:29:34 +0800 |
commit | 7c042cfcee984e16e7024a661c95d2cd3eb0b50b (patch) | |
tree | 1ea956b13fa9108c6b29e7505b998ea2d75954db /Examples/simple/Makefile | |
parent | e84fb687091e7093f9aa72f74ce4e678ab84e5f3 (diff) |
add macros for PHP 5.3
Diffstat (limited to 'Examples/simple/Makefile')
-rw-r--r-- | Examples/simple/Makefile | 12 |
1 files changed, 7 insertions, 5 deletions
diff --git a/Examples/simple/Makefile b/Examples/simple/Makefile index cfea8cf..a85c7f8 100644 --- a/Examples/simple/Makefile +++ b/Examples/simple/Makefile @@ -1,14 +1,16 @@ CPP = g++ RM = rm -f -CPP_FLAGS = -Wall -c -I. -O2 -std=c++11 +CPP_FLAGS = -Wall -c -I. -I/home/work/include/ -O2 -std=c++11 + +PREFIX = /home/work/ -PREFIX = /usr #Edit these lines to correspond with your own directories -LIBRARY_DIR = ${PREFIX}/lib/php5/20121212 -PHP_CONFIG_DIR = /etc/php5/cli/conf.d +LIBRARY_DIR = ${PREFIX}/local/php/lib/php/extensions/no-debug-non-zts-20090626/ + +PHP_CONFIG_DIR = /home/work/local/php/lib/ LD = g++ -LD_FLAGS = -Wall -shared -O2 +LD_FLAGS = -Wall -Wl,-rpath,/home/work/lib -shared -O2 -L/home/work/lib RESULT = simple.so PHPINIFILE = 30-phpcpp.ini |