GNUmakefile: removes -Werror instead of -Wall and -Wextra
This commit is contained in:
@@ -17,13 +17,13 @@
|
|||||||
# nowarn: compile with no -Wall and -Wextra, and run all predefined tests
|
# nowarn: compile with no -Wall and -Wextra, and run all predefined tests
|
||||||
# debug: compile with -DDEBUG and run all predefined tests
|
# debug: compile with -DDEBUG and run all predefined tests
|
||||||
# mem: perform memcheck with all tests enabled
|
# mem: perform memcheck with all tests enabled
|
||||||
# unit: build standalone (unit) binary
|
# unit: build standalone (unit) bimary
|
||||||
# unitnowarn: build standalone binary with -Wall and -Wextra disabled
|
# unitnowarn: build standalone (unit) binary with -Wall and -Wextra disabled
|
||||||
# unitdebug: build standalone binary with -DDEBUG
|
# unitdebug: build standalone binary with -DDEBUG
|
||||||
#
|
#
|
||||||
# Original 'makefile' targets can be used (test, memcheck, clean, ...)
|
# Original 'makefile' targets can be used (test, memcheck, clean, ...)
|
||||||
|
|
||||||
.PHONY: default all nowarn debug mem unitnowarn unitdebug unit
|
.PHONY: default all nowarn debug mem unit unitnowarn unitdebug standalone
|
||||||
|
|
||||||
default: all
|
default: all
|
||||||
|
|
||||||
@@ -32,8 +32,8 @@ include makefile
|
|||||||
all: CFLAGS+=-DTESTALL
|
all: CFLAGS+=-DTESTALL
|
||||||
all: clean test
|
all: clean test
|
||||||
|
|
||||||
nowarn: CFLAGS:=$(filter-out -Wextra -Wall,$(CFLAGS))
|
nowarn: CFLAGS:=$(filter-out -Werror,$(CFLAGS))
|
||||||
nowarn: all
|
nowarn: clean all
|
||||||
|
|
||||||
debug: CFLAGS+=-DDEBUG
|
debug: CFLAGS+=-DDEBUG
|
||||||
debug: all
|
debug: all
|
||||||
@@ -41,7 +41,7 @@ debug: all
|
|||||||
mem: CFLAGS+=-DTESTALL
|
mem: CFLAGS+=-DTESTALL
|
||||||
mem: clean memcheck
|
mem: clean memcheck
|
||||||
|
|
||||||
unitnowarn: CFLAGS:=$(filter-out -Wextra -Wall,$(CFLAGS))
|
unitnowarn: CFLAGS:=$(filter-out -Werror,$(CFLAGS))
|
||||||
unitnowarn: clean unit
|
unitnowarn: clean unit
|
||||||
|
|
||||||
unitdebug: CFLAGS+=-DDEBUG
|
unitdebug: CFLAGS+=-DDEBUG
|
||||||
|
Reference in New Issue
Block a user