197 #
198 # CPPFLAGS is deliberatly set with a "=" and not a "+=". For the kernel
199 # the header include path should not look for header files outside of
200 # the kernel code. This "=" removes the search path built in
201 # Makefile.master inside CPPFLAGS. Ditto for AS_CPPFLAGS.
202 #
203 CPPFLAGS = $(ALWAYS_DEFS) $(ALL_DEFS) $(CONFIG_DEFS) \
204 $(INCLUDE_PATH) $(EXTRA_OPTIONS)
205 ASFLAGS += -P
206 AS_CPPFLAGS = $(ALWAYS_DEFS) $(ALL_DEFS) $(CONFIG_DEFS) $(AS_DEFS) \
207 $(AS_INC_PATH) $(EXTRA_OPTIONS)
208
209 #
210 # Make it (relatively) easy to share compilation options between
211 # all kernel implementations.
212 #
213
214 # Override the default, the kernel is squeaky clean
215 CERRWARN = -errtags=yes -errwarn=%all
216
217 CERRWARN += -_gcc=-Wno-missing-braces
218 CERRWARN += -_gcc=-Wno-sign-compare
219 CERRWARN += -_gcc=-Wno-unknown-pragmas
220 CERRWARN += -_gcc=-Wno-unused-parameter
221 CERRWARN += -_gcc=-Wno-missing-field-initializers
222
223 # DEBUG v. -nd make for frequent unused variables, empty conditions, etc. in
224 # -nd builds
225 $(RELEASE_BUILD)CERRWARN += -_gcc=-Wno-unused
226 $(RELEASE_BUILD)CERRWARN += -_gcc=-Wno-empty-body
227
228 C99MODE = $(C99_ENABLE)
229
230 CFLAGS_uts =
231 CFLAGS_uts += $(STAND_FLAGS_$(CLASS))
232 CFLAGS_uts += $(CCVERBOSE)
233 CFLAGS_uts += $(ILDOFF)
234 CFLAGS_uts += $(XAOPT)
235 CFLAGS_uts += $(CTF_FLAGS_$(CLASS))
236 CFLAGS_uts += $(CERRWARN)
237 CFLAGS_uts += $(CCNOAUTOINLINE)
|
197 #
198 # CPPFLAGS is deliberatly set with a "=" and not a "+=". For the kernel
199 # the header include path should not look for header files outside of
200 # the kernel code. This "=" removes the search path built in
201 # Makefile.master inside CPPFLAGS. Ditto for AS_CPPFLAGS.
202 #
203 CPPFLAGS = $(ALWAYS_DEFS) $(ALL_DEFS) $(CONFIG_DEFS) \
204 $(INCLUDE_PATH) $(EXTRA_OPTIONS)
205 ASFLAGS += -P
206 AS_CPPFLAGS = $(ALWAYS_DEFS) $(ALL_DEFS) $(CONFIG_DEFS) $(AS_DEFS) \
207 $(AS_INC_PATH) $(EXTRA_OPTIONS)
208
209 #
210 # Make it (relatively) easy to share compilation options between
211 # all kernel implementations.
212 #
213
214 # Override the default, the kernel is squeaky clean
215 CERRWARN = -errtags=yes -errwarn=%all
216
217 CERRWARN += -_gcc=-Wno-sign-compare
218 CERRWARN += -_gcc=-Wno-unknown-pragmas
219 CERRWARN += -_gcc=-Wno-unused-parameter
220 CERRWARN += -_gcc=-Wno-missing-field-initializers
221
222 # DEBUG v. -nd make for frequent unused variables, empty conditions, etc. in
223 # -nd builds
224 $(RELEASE_BUILD)CERRWARN += -_gcc=-Wno-unused
225 $(RELEASE_BUILD)CERRWARN += -_gcc=-Wno-empty-body
226
227 C99MODE = $(C99_ENABLE)
228
229 CFLAGS_uts =
230 CFLAGS_uts += $(STAND_FLAGS_$(CLASS))
231 CFLAGS_uts += $(CCVERBOSE)
232 CFLAGS_uts += $(ILDOFF)
233 CFLAGS_uts += $(XAOPT)
234 CFLAGS_uts += $(CTF_FLAGS_$(CLASS))
235 CFLAGS_uts += $(CERRWARN)
236 CFLAGS_uts += $(CCNOAUTOINLINE)
|