summaryrefslogtreecommitdiff
path: root/tests/cpp/Makefile
diff options
context:
space:
mode:
Diffstat (limited to 'tests/cpp/Makefile')
-rw-r--r--tests/cpp/Makefile6
1 files changed, 3 insertions, 3 deletions
diff --git a/tests/cpp/Makefile b/tests/cpp/Makefile
index 2a3cbaf..0b6800c 100644
--- a/tests/cpp/Makefile
+++ b/tests/cpp/Makefile
@@ -87,11 +87,11 @@ 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"../../include" -o
-LINKER_FLAGS = -shared
+COMPILER_FLAGS = -Wall -c -g -std=c++11 -fpic -I. -I"${LIB_DIR}/include" -o
+LINKER_FLAGS = -shared -L"${LIB_DIR}"
LINKER_DEPENDENCIES = -lphpcpp