summaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
authorEmiel Bruijntjes <emiel.bruijntjes@copernica.com>2014-04-06 21:18:45 +0200
committerEmiel Bruijntjes <emiel.bruijntjes@copernica.com>2014-04-06 21:18:45 +0200
commitda4710512865e6816585ac4ab8edab2fa125e2d8 (patch)
tree2d2ad42235032db4160231d221babd6cb91f6371 /Makefile
parente8b7f9a5f80c0f296d05403a84a5259cb48f9329 (diff)
the exception.h header file no longer depends on the zend engine header files. TSRM macros are no longer used in any of the public PHPCPP header files so there is no more need for the phpcpp/config.h header file nor the config-create script
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile20
1 files changed, 2 insertions, 18 deletions
diff --git a/Makefile b/Makefile
index 6bac3de..9a66157 100644
--- a/Makefile
+++ b/Makefile
@@ -140,24 +140,13 @@ OBJECTS = $(SOURCES:%.cpp=%.o)
PHP_OBJECTS = $(PHP_SOURCES:%.cpp=%.o)
HHVM_OBJECTS = $(HHVM_SOURCES:%.cpp=%.o)
-#
-# Configuration program
-#
-# During installation, a configuration utility will be installed. It is
-# compiled with the following instructions
-#
-
-CONFIG_UTILITY = ./create_config
-CONFIG_SOURCES = $(wildcard config/*.cpp)
-CONFIG_FLAGS = `php-config --includes` -o
-
#
# End of the variables section. Here starts the list of instructions and
# dependencies that are used by the compiler.
#
-all: ${PHP_LIBRARY} ${CONFIG_UTILITY}
+all: ${PHP_LIBRARY}
${PHP_LIBRARY}: ${OBJECTS} ${PHP_OBJECTS}
${LINKER} ${PHP_LINKER_FLAGS} -o $@ ${OBJECTS} ${PHP_OBJECTS}
@@ -165,11 +154,8 @@ ${PHP_LIBRARY}: ${OBJECTS} ${PHP_OBJECTS}
${HHVM_LIBRARY}: ${OBJECTS} ${HHVM_OBJECTS}
${LINKER} ${HHVM_LINKER_FLAGS} -o $@ ${OBJECTS} ${HHVM_OBJECTS}
-${CONFIG_UTILITY}:
- ${COMPILER} ${CONFIG_FLAGS} $@ ${CONFIG_SOURCES}
-
clean:
- ${RM} ${OBJECTS} ${PHP_OBJECTS} ${HHVM_OBJECTS} ${PHP_LIBRARY} ${HHVM_LIBRARY} ${CONFIG_UTILITY}
+ ${RM} ${OBJECTS} ${PHP_OBJECTS} ${HHVM_OBJECTS} ${PHP_LIBRARY} ${HHVM_LIBRARY}
${OBJECTS}:
${COMPILER} ${PHP_COMPILER_FLAGS} -o $@ ${@:%.o=%.cpp}
@@ -186,10 +172,8 @@ install:
${CP} include/*.h ${INSTALL_HEADERS}/phpcpp
if [ -e ${PHP_LIBRARY} ]; then ${CP} ${PHP_LIBRARY} ${INSTALL_LIB}; fi
if [ -e ${HHVM_LIBRARY} ]; then ${CP} ${HHVM_LIBRARY} ${INSTALL_LIB}; fi
- ${CONFIG_UTILITY} > ${INSTALL_HEADERS}/phpcpp/config.h
test:
mkdir -p ./tests/include/zts/phpcpp
- ${CONFIG_UTILITY} > ./tests/include/zts/phpcpp/config.h
cd tests && ./test.sh -p "${PHP_BIN}"