File tree Expand file tree Collapse file tree 16 files changed +93
-69
lines changed Expand file tree Collapse file tree 16 files changed +93
-69
lines changed Original file line number Diff line number Diff line change 11CPP = g++
22RM = rm -f
33CPP_FLAGS = -Wall -c -I. -O2 -std=c++11
4-
5- PREFIX = /usr
6- # Edit these lines to correspond with your own directories
4+ PHP_CONFIG = $(shell which php-config)
75LIBRARY_DIR = $(shell ${PHP_CONFIG} --extension-dir)
8- PHP_CONFIG_DIR = /etc/php5/cli/conf.d
6+ PHP_CONFIG_DIR = $( shell ${PHP_CONFIG} --ini-dir)
97
108LD = g++
119LD_FLAGS = -Wall -shared -O2
@@ -28,5 +26,9 @@ ${OBJECTS}:
2826 ${CPP} ${CPP_FLAGS} -fpic -o $@ ${@:% .o=% .cpp}
2927
3028install :
31- cp -f ${RESULT} ${LIBRARY_DIR}
32- cp -f ${PHPINIFILE} ${PHP_CONFIG_DIR}
29+ cp -f ${RESULT} ${LIBRARY_DIR} /
30+ cp -f ${PHPINIFILE} ${PHP_CONFIG_DIR} /
31+
32+ uninstall :
33+ rm ${LIBRARY_DIR} /${RESULT}
34+ rm ${PHP_CONFIG_DIR} /${PHPINIFILE}
Original file line number Diff line number Diff line change @@ -2,10 +2,9 @@ CPP = g++
22RM = rm -f
33CPP_FLAGS = -Wall -c -I. -O2 -std=c++11
44
5- PREFIX = /usr
6- # Edit these lines to correspond with your own directories
5+ PHP_CONFIG = $(shell which php-config)
76LIBRARY_DIR = $(shell ${PHP_CONFIG} --extension-dir)
8- PHP_CONFIG_DIR = /etc/php5/cli/conf.d
7+ PHP_CONFIG_DIR = $( shell ${PHP_CONFIG} --ini-dir)
98
109LD = g++
1110LD_FLAGS = -Wall -shared -O2
@@ -28,5 +27,9 @@ ${OBJECTS}:
2827 ${CPP} ${CPP_FLAGS} -fpic -o $@ ${@:% .o=% .cpp}
2928
3029install :
31- cp -f ${RESULT} ${LIBRARY_DIR}
32- cp -f ${PHPINIFILE} ${PHP_CONFIG_DIR}
30+ cp -f ${RESULT} ${LIBRARY_DIR} /
31+ cp -f ${PHPINIFILE} ${PHP_CONFIG_DIR} /
32+
33+ uninstall :
34+ rm ${LIBRARY_DIR} /${RESULT}
35+ rm ${PHP_CONFIG_DIR} /${PHPINIFILE}
Original file line number Diff line number Diff line change @@ -29,7 +29,7 @@ NAME = cppclassinphp
2929# one for each extension. Use this variable to specify this directory.
3030#
3131
32- INI_DIR = /etc/php5/conf.d
32+ INI_DIR = $( shell php-config --ini-dir)
3333
3434
3535#
Original file line number Diff line number Diff line change @@ -29,7 +29,7 @@ NAME = dlunrestricted
2929# one for each extension. Use this variable to specify this directory.
3030#
3131
32- INI_DIR = /etc/php5/mods-available
32+ INI_DIR = $( shell php-config --ini-dir)
3333
3434
3535#
Original file line number Diff line number Diff line change @@ -29,7 +29,7 @@ NAME = yourextension
2929# one for each extension. Use this variable to specify this directory.
3030#
3131
32- INI_DIR = /etc/php5/mods-available/
32+ INI_DIR = $( shell php-config --ini-dir)
3333
3434
3535#
Original file line number Diff line number Diff line change @@ -2,10 +2,9 @@ CPP = g++
22RM = rm -f
33CPP_FLAGS = -Wall -c -I. -O2 -std=c++11
44
5- PREFIX = /usr
6- # Edit these lines to correspond with your own directories
5+ PHP_CONFIG = $(shell which php-config)
76LIBRARY_DIR = $(shell ${PHP_CONFIG} --extension-dir)
8- PHP_CONFIG_DIR = /etc/php5/cli/conf.d
7+ PHP_CONFIG_DIR = $( shell ${PHP_CONFIG} --ini-dir)
98
109LD = g++
1110LD_FLAGS = -Wall -shared -O2
@@ -28,5 +27,9 @@ ${OBJECTS}:
2827 ${CPP} ${CPP_FLAGS} -fpic -o $@ ${@:% .o=% .cpp}
2928
3029install :
31- cp -f ${RESULT} ${LIBRARY_DIR}
32- cp -f ${PHPINIFILE} ${PHP_CONFIG_DIR}
30+ cp -f ${RESULT} ${LIBRARY_DIR} /
31+ cp -f ${PHPINIFILE} ${PHP_CONFIG_DIR} /
32+
33+ uninstall :
34+ rm ${LIBRARY_DIR} /${RESULT}
35+ rm ${PHP_CONFIG_DIR} /${PHPINIFILE}
Original file line number Diff line number Diff line change @@ -2,10 +2,9 @@ CPP = g++
22RM = rm -f
33CPP_FLAGS = -Wall -c -I. -O2 -std=c++11
44
5- PREFIX = /usr
6- # Edit these lines to correspond with your own directories
5+ PHP_CONFIG = $(shell which php-config)
76LIBRARY_DIR = $(shell ${PHP_CONFIG} --extension-dir)
8- PHP_CONFIG_DIR = /etc/php5/cli/conf.d
7+ PHP_CONFIG_DIR = $( shell ${PHP_CONFIG} --ini-dir)
98
109LD = g++
1110LD_FLAGS = -Wall -shared -O2
@@ -28,5 +27,9 @@ ${OBJECTS}:
2827 ${CPP} ${CPP_FLAGS} -fpic -o $@ ${@:% .o=% .cpp}
2928
3029install :
31- cp -f ${RESULT} ${LIBRARY_DIR}
32- cp -f ${PHPINIFILE} ${PHP_CONFIG_DIR}
30+ cp -f ${RESULT} ${LIBRARY_DIR} /
31+ cp -f ${PHPINIFILE} ${PHP_CONFIG_DIR} /
32+
33+ uninstall :
34+ rm ${LIBRARY_DIR} /${RESULT}
35+ rm ${PHP_CONFIG_DIR} /${PHPINIFILE}
Original file line number Diff line number Diff line change @@ -2,10 +2,9 @@ CPP = g++
22RM = rm -f
33CPP_FLAGS = -Wall -c -I. -O2 -std=c++11
44
5- PREFIX = /usr
6- # Edit these lines to correspond with your own directories
5+ PHP_CONFIG = $(shell which php-config)
76LIBRARY_DIR = $(shell ${PHP_CONFIG} --extension-dir)
8- PHP_CONFIG_DIR = /etc/php5/cli/conf.d
7+ PHP_CONFIG_DIR = $( shell ${PHP_CONFIG} --ini-dir)
98
109LD = g++
1110LD_FLAGS = -Wall -shared -O2
@@ -28,5 +27,9 @@ ${OBJECTS}:
2827 ${CPP} ${CPP_FLAGS} -fpic -o $@ ${@:% .o=% .cpp}
2928
3029install :
31- cp -f ${RESULT} ${LIBRARY_DIR}
32- cp -f ${PHPINIFILE} ${PHP_CONFIG_DIR}
30+ cp -f ${RESULT} ${LIBRARY_DIR} /
31+ cp -f ${PHPINIFILE} ${PHP_CONFIG_DIR} /
32+
33+ uninstall :
34+ rm ${LIBRARY_DIR} /${RESULT}
35+ rm ${PHP_CONFIG_DIR} /${PHPINIFILE}
Original file line number Diff line number Diff line change @@ -2,10 +2,9 @@ CPP = g++
22RM = rm -f
33CPP_FLAGS = -Wall -c -I. -O2 -std=c++11
44
5- PREFIX = /usr
6- # Edit these lines to correspond with your own directories
5+ PHP_CONFIG = $(shell which php-config)
76LIBRARY_DIR = $(shell ${PHP_CONFIG} --extension-dir)
8- PHP_CONFIG_DIR = /etc/php5/cli/conf.d
7+ PHP_CONFIG_DIR = $( shell ${PHP_CONFIG} --ini-dir)
98
109LD = g++
1110LD_FLAGS = -Wall -shared -O2
@@ -28,5 +27,9 @@ ${OBJECTS}:
2827 ${CPP} ${CPP_FLAGS} -fpic -o $@ ${@:% .o=% .cpp}
2928
3029install :
31- cp -f ${RESULT} ${LIBRARY_DIR}
32- cp -f ${PHPINIFILE} ${PHP_CONFIG_DIR}
30+ cp -f ${RESULT} ${LIBRARY_DIR} /
31+ cp -f ${PHPINIFILE} ${PHP_CONFIG_DIR} /
32+
33+ uninstall :
34+ rm ${LIBRARY_DIR} /${RESULT}
35+ rm ${PHP_CONFIG_DIR} /${PHPINIFILE}
Original file line number Diff line number Diff line change @@ -2,10 +2,9 @@ CPP = g++
22RM = rm -f
33CPP_FLAGS = -Wall -c -I. -O2 -std=c++11
44
5- PREFIX = /usr
6- # Edit these lines to correspond with your own directories
5+ PHP_CONFIG = $(shell which php-config)
76LIBRARY_DIR = $(shell ${PHP_CONFIG} --extension-dir)
8- PHP_CONFIG_DIR = /etc/php5/cli/conf.d
7+ PHP_CONFIG_DIR = $( shell ${PHP_CONFIG} --ini-dir)
98
109LD = g++
1110LD_FLAGS = -Wall -shared -O2
@@ -28,5 +27,9 @@ ${OBJECTS}:
2827 ${CPP} ${CPP_FLAGS} -fpic -o $@ ${@:% .o=% .cpp}
2928
3029install :
31- cp -f ${RESULT} ${LIBRARY_DIR}
32- cp -f ${PHPINIFILE} ${PHP_CONFIG_DIR}
30+ cp -f ${RESULT} ${LIBRARY_DIR} /
31+ cp -f ${PHPINIFILE} ${PHP_CONFIG_DIR} /
32+
33+ uninstall :
34+ rm ${LIBRARY_DIR} /${RESULT}
35+ rm ${PHP_CONFIG_DIR} /${PHPINIFILE}
You can’t perform that action at this time.
0 commit comments