summaryrefslogtreecommitdiffstats
path: root/src/Makefile
diff options
context:
space:
mode:
authorMichael Brown2007-07-24 15:01:14 +0200
committerMichael Brown2007-07-24 15:01:14 +0200
commited9ba18ec6ee7bf7f90dbaf940cc03003789c1a5 (patch)
treee9106e8fcdbaf4ea66a0312024cbdeed5585e7ba /src/Makefile
parentRemove some obsolete sections of librm.h and libkir.h. (diff)
downloadipxe-ed9ba18ec6ee7bf7f90dbaf940cc03003789c1a5.tar.gz
ipxe-ed9ba18ec6ee7bf7f90dbaf940cc03003789c1a5.tar.xz
ipxe-ed9ba18ec6ee7bf7f90dbaf940cc03003789c1a5.zip
Allow -Werror to be temporarily disabled using "make NO_WERROR=1"
Diffstat (limited to 'src/Makefile')
-rw-r--r--src/Makefile6
1 files changed, 5 insertions, 1 deletions
diff --git a/src/Makefile b/src/Makefile
index c313bb5e..a567b922 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 +=