diff options
author | Michael Brown <mcb30@etherboot.org> | 2007-07-24 14:01:14 +0100 |
---|---|---|
committer | Michael Brown <mcb30@etherboot.org> | 2007-07-24 14:01:14 +0100 |
commit | ed9ba18ec6ee7bf7f90dbaf940cc03003789c1a5 (patch) | |
tree | e9106e8fcdbaf4ea66a0312024cbdeed5585e7ba | |
parent | 75912b3b7719393d8d126b82c977f8f8464eaba3 (diff) | |
download | ipxe-ed9ba18ec6ee7bf7f90dbaf940cc03003789c1a5.tar.gz |
Allow -Werror to be temporarily disabled using "make NO_WERROR=1"
-rw-r--r-- | src/Makefile | 6 |
1 files changed, 5 insertions, 1 deletions
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 += |