summaryrefslogtreecommitdiff
path: root/Examples
diff options
context:
space:
mode:
authorGu Weigang <guweigang@outlook.com>2013-12-13 13:29:34 +0800
committerGu Weigang <guweigang@outlook.com>2013-12-13 13:29:34 +0800
commit7c042cfcee984e16e7024a661c95d2cd3eb0b50b (patch)
tree1ea956b13fa9108c6b29e7505b998ea2d75954db /Examples
parente84fb687091e7093f9aa72f74ce4e678ab84e5f3 (diff)
add macros for PHP 5.3
Diffstat (limited to 'Examples')
-rw-r--r--Examples/simple/Makefile12
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