Allow -Werror to be temporarily disabled using "make NO_WERROR=1"

This commit is contained in:
Michael Brown
2007-07-24 14:01:14 +01:00
parent 75912b3b77
commit ed9ba18ec6

View File

@@ -101,12 +101,16 @@ DOXYGEN ?= doxygen
# #
CFLAGS += -I include -I arch/$(ARCH)/include -I . -DARCH=$(ARCH) CFLAGS += -I include -I arch/$(ARCH)/include -I . -DARCH=$(ARCH)
CFLAGS += -Os -ffreestanding CFLAGS += -Os -ffreestanding
CFLAGS += -Wall -W -Werror CFLAGS += -Wall -W
CFLAGS += -g CFLAGS += -g
CFLAGS += $(EXTRA_CFLAGS) CFLAGS += $(EXTRA_CFLAGS)
ASFLAGS += $(EXTRA_ASFLAGS) ASFLAGS += $(EXTRA_ASFLAGS)
LDFLAGS += $(EXTRA_LDFLAGS) LDFLAGS += $(EXTRA_LDFLAGS)
ifneq ($(NO_WERROR),1)
CFLAGS += -Werror
endif
# CFLAGS for specific object types # CFLAGS for specific object types
# #
CFLAGS_c += CFLAGS_c +=