Browse Source

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

tags/v0.9.3
Michael Brown 17 years ago
parent
commit
ed9ba18ec6
1 changed files with 5 additions and 1 deletions
  1. 5
    1
      src/Makefile

+ 5
- 1
src/Makefile View File

101
 #
101
 #
102
 CFLAGS		+= -I include -I arch/$(ARCH)/include -I . -DARCH=$(ARCH)
102
 CFLAGS		+= -I include -I arch/$(ARCH)/include -I . -DARCH=$(ARCH)
103
 CFLAGS		+= -Os -ffreestanding
103
 CFLAGS		+= -Os -ffreestanding
104
-CFLAGS		+= -Wall -W -Werror
104
+CFLAGS		+= -Wall -W
105
 CFLAGS		+= -g
105
 CFLAGS		+= -g
106
 CFLAGS		+= $(EXTRA_CFLAGS)
106
 CFLAGS		+= $(EXTRA_CFLAGS)
107
 ASFLAGS		+= $(EXTRA_ASFLAGS)
107
 ASFLAGS		+= $(EXTRA_ASFLAGS)
108
 LDFLAGS		+= $(EXTRA_LDFLAGS)
108
 LDFLAGS		+= $(EXTRA_LDFLAGS)
109
 
109
 
110
+ifneq ($(NO_WERROR),1)
111
+CFLAGS		+= -Werror
112
+endif
113
+
110
 # CFLAGS for specific object types
114
 # CFLAGS for specific object types
111
 #
115
 #
112
 CFLAGS_c	+= 
116
 CFLAGS_c	+= 

Loading…
Cancel
Save