From 4dc382c63f4219cdbf5dd784f0d8025f6af68629 Mon Sep 17 00:00:00 2001 From: jvoisin Date: Tue, 26 Sep 2017 15:08:42 +0200 Subject: Simplify and improve the build system - CFLAGS are now set in the config.m4 file (and not in the Makefile anymore) - `make release` is added - `make debug` and `make coverage` are now simpler - hardening flags are added --- Makefile | 12 ++++++++++-- 1 file changed, 10 insertions(+), 2 deletions(-) (limited to 'Makefile') diff --git a/Makefile b/Makefile index 29cd02a..a6d9a90 100644 --- a/Makefile +++ b/Makefile @@ -2,15 +2,23 @@ clean: make -C src clean cd src; phpize --clean +release: + cd src; phpize + cd src; ./configure --enable-snuffleupagus + make -C src + +install: release + make -C install + debug: cd src; phpize - export CFLAGS="-Wall -Wextra -g3 -ggdb -O1 -g -Wno-unused-function"; cd src; ./configure --enable-snuffleupagus --enable-debug + export CFLAGS="-g3 -ggdb -O1 -g"; cd src; ./configure --enable-snuffleupagus --enable-debug make -C src TEST_PHP_ARGS='-q' REPORT_EXIT_STATUS=1 make -C src test coverage: cd src; phpize - export CFLAGS="--coverage"; cd src; ./configure --enable-snuffleupagus --enable-coverage + cd src; ./configure --enable-snuffleupagus --enable-coverage make -C src rm -Rf src/COV.html TEST_PHP_ARGS='-q' REPORT_EXIT_STATUS=1 make -C src test -- cgit v1.3