From ae524a6c76f207636e3b5e3e6ccb83dcefdb14d1 Mon Sep 17 00:00:00 2001 From: valmat Date: Fri, 21 Mar 2014 06:23:01 +0600 Subject: Small improvements Regained the ability to run the tests (script tests/test.sh) with option -m (Valgrind) added option -q (Quiet) Full range of options, see $ ./test.sh -h Some other improvements (see diff) --- tests/cpp/Makefile | 10 ++++------ 1 file changed, 4 insertions(+), 6 deletions(-) (limited to 'tests/cpp/Makefile') diff --git a/tests/cpp/Makefile b/tests/cpp/Makefile index 0b6800c..e0c32ba 100644 --- a/tests/cpp/Makefile +++ b/tests/cpp/Makefile @@ -42,8 +42,7 @@ NAME = extfortest # this with a different fixed directory # -#EXTENSION_DIR = $(shell php-config --extension-dir) -EXTENSION_DIR = ../.. +EXTENSION_DIR = $(shell php-config --extension-dir) # @@ -87,10 +86,9 @@ LINKER = g++ # one: the PHP-CPP library), you should update the LINKER_DEPENDENCIES variable # with a list of all flags that should be passed to the linker. # + LIB_DIR=$(shell cd ../.. && pwd) -#COMPILER_FLAGS = -Wall -c -O2 -std=c++11 -fpic -o -#COMPILER_FLAGS = -Wall -c -g -std=c++11 -fpic -o -COMPILER_FLAGS = -Wall -c -g -std=c++11 -fpic -I. -I"${LIB_DIR}/include" -o +COMPILER_FLAGS = -Wall -c -O2 -std=c++11 -fpic -I"${LIB_DIR}/include" -o LINKER_FLAGS = -shared -L"${LIB_DIR}" LINKER_DEPENDENCIES = -lphpcpp @@ -131,7 +129,7 @@ ${EXTENSION}: ${OBJECTS} ${OBJECTS}: ${COMPILER} ${COMPILER_FLAGS} $@ ${@:%.o=%.cpp} -# Do not install this extention +# Do not install this extension #install: # ${CP} ${EXTENSION} ${EXTENSION_DIR} # ${CP} ${INI} ${INI_DIR} -- cgit v1.2.3