From: Michael Brown Date: Tue, 24 Jul 2007 13:01:14 +0000 (+0100) Subject: Allow -Werror to be temporarily disabled using "make NO_WERROR=1" X-Git-Tag: v0.9.3~169 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=ed9ba18ec6ee7bf7f90dbaf940cc03003789c1a5;p=thirdparty%2Fipxe.git Allow -Werror to be temporarily disabled using "make NO_WERROR=1" --- diff --git a/src/Makefile b/src/Makefile index c313bb5e8..a567b922a 100644 --- a/src/Makefile +++ b/src/Makefile @@ -101,12 +101,16 @@ DOXYGEN ?= doxygen # CFLAGS += -I include -I arch/$(ARCH)/include -I . -DARCH=$(ARCH) CFLAGS += -Os -ffreestanding -CFLAGS += -Wall -W -Werror +CFLAGS += -Wall -W CFLAGS += -g CFLAGS += $(EXTRA_CFLAGS) ASFLAGS += $(EXTRA_ASFLAGS) LDFLAGS += $(EXTRA_LDFLAGS) +ifneq ($(NO_WERROR),1) +CFLAGS += -Werror +endif + # CFLAGS for specific object types # CFLAGS_c +=