summaryrefslogtreecommitdiff
path: root/Examples/Exceptions
diff options
context:
space:
mode:
authorEmiel Bruijntjes <emiel.bruijntjes@copernica.com>2015-04-03 09:28:38 +0200
committerEmiel Bruijntjes <emiel.bruijntjes@copernica.com>2015-04-03 09:28:38 +0200
commite1dc57a131fe297882a9d6dbf2d20fc7be662123 (patch)
treef64ecd33a5bba9d82b939fe75fcf7cf8d55c71dc /Examples/Exceptions
parent3335c6c9aad6a276533a055f269c8ff12af0e4a7 (diff)
added DlUnrestricted example extension, modified makefiles to use php-config to find out the extension-dir
Diffstat (limited to 'Examples/Exceptions')
-rw-r--r--Examples/Exceptions/ExceptionCatch/Makefile2
-rw-r--r--Examples/Exceptions/ExceptionThrow/Makefile2
2 files changed, 2 insertions, 2 deletions
diff --git a/Examples/Exceptions/ExceptionCatch/Makefile b/Examples/Exceptions/ExceptionCatch/Makefile
index d8d2c74..83537dd 100644
--- a/Examples/Exceptions/ExceptionCatch/Makefile
+++ b/Examples/Exceptions/ExceptionCatch/Makefile
@@ -4,7 +4,7 @@ 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
+LIBRARY_DIR = $(shell ${PHP_CONFIG} --extension-dir)
PHP_CONFIG_DIR = /etc/php5/cli/conf.d
LD = g++
diff --git a/Examples/Exceptions/ExceptionThrow/Makefile b/Examples/Exceptions/ExceptionThrow/Makefile
index b153a3f..c8571ca 100644
--- a/Examples/Exceptions/ExceptionThrow/Makefile
+++ b/Examples/Exceptions/ExceptionThrow/Makefile
@@ -4,7 +4,7 @@ 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
+LIBRARY_DIR = $(shell ${PHP_CONFIG} --extension-dir)
PHP_CONFIG_DIR = /etc/php5/cli/conf.d
LD = g++