From bf6bbfae81f24045cd74ae28368931b8a9b3ea97 Mon Sep 17 00:00:00 2001 From: JasperVanEck Date: Thu, 28 Nov 2013 13:10:01 +0100 Subject: New Examples added, functionreturnvalue, functionnoparameters and functionwithparameters --- Examples/FunctionVoid/Makefile | 11 +++++++++++ 1 file changed, 11 insertions(+) (limited to 'Examples/FunctionVoid/Makefile') diff --git a/Examples/FunctionVoid/Makefile b/Examples/FunctionVoid/Makefile index 9adc142..4925cfd 100644 --- a/Examples/FunctionVoid/Makefile +++ b/Examples/FunctionVoid/Makefile @@ -2,10 +2,17 @@ CPP = g++ RM = rm -f CPP_FLAGS = -Wall -c -I. -O2 -std=c++11 +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 + LD = g++ LD_FLAGS = -Wall -shared -O2 RESULT = functionvoid.so +PHPINIFILE = 30-phpcpp.ini + SOURCES = $(wildcard *.cpp) OBJECTS = $(SOURCES:%.cpp=%.o) @@ -19,3 +26,7 @@ clean: ${OBJECTS}: ${CPP} ${CPP_FLAGS} -fpic -o $@ ${@:%.o=%.cpp} + +install: + cp -f ${RESULT} ${LIBRARY_DIR} + cp -f ${PHPINIFILE} ${PHP_CONFIG_DIR} -- cgit v1.2.3