diff options
Diffstat (limited to 'Examples/FunctionVoid')
-rw-r--r-- | Examples/FunctionVoid/30-phpcpp.ini | 4 | ||||
-rw-r--r-- | Examples/FunctionVoid/Makefile | 11 | ||||
-rw-r--r-- | Examples/FunctionVoid/functionvoid.cpp | 2 |
3 files changed, 16 insertions, 1 deletions
diff --git a/Examples/FunctionVoid/30-phpcpp.ini b/Examples/FunctionVoid/30-phpcpp.ini new file mode 100644 index 0000000..16a8368 --- /dev/null +++ b/Examples/FunctionVoid/30-phpcpp.ini @@ -0,0 +1,4 @@ +; configuration for php PDO module +; priority=30 +extension=functionvoid.so + 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} diff --git a/Examples/FunctionVoid/functionvoid.cpp b/Examples/FunctionVoid/functionvoid.cpp index 7ec7129..3d0e85d 100644 --- a/Examples/FunctionVoid/functionvoid.cpp +++ b/Examples/FunctionVoid/functionvoid.cpp @@ -2,7 +2,7 @@ * functionvoid.cpp * @Author Jasper van Eck * - * An example file to show the working of a void fucntion call. + * An example file to show the working of a void function call. */ /** |