1999-01-29 06:22:19 +00:00
|
|
|
# $Id: bsd.kern.mk,v 1.13 1999/01/27 22:53:58 dillon Exp $
|
1996-10-08 22:10:49 +00:00
|
|
|
|
|
|
|
#
|
|
|
|
# Warning flags for compiling the kernel and components of the kernel.
|
|
|
|
#
|
1999-01-29 06:22:19 +00:00
|
|
|
# Note that the newly added -Wcast-qual is responsible for generating
|
|
|
|
# most of the remaining warnings. Warnings introduced with -Wall
|
|
|
|
# will also pop up, but are easier to fix.
|
1999-01-27 22:53:58 +00:00
|
|
|
|
|
|
|
CWARNFLAGS?= -Wall -Wredundant-decls -Wnested-externs -Wstrict-prototypes \
|
|
|
|
-Wmissing-prototypes -Wpointer-arith -Winline -Wcast-qual \
|
1998-09-09 10:04:58 +00:00
|
|
|
-fformat-extensions -ansi
|
1999-01-27 22:53:58 +00:00
|
|
|
|
1998-12-17 22:36:21 +00:00
|
|
|
#
|
|
|
|
# On the alpha, make sure that we don't use floating-point registers and
|
|
|
|
# allow the use of EV56 instructions (only needed for low-level i/o).
|
|
|
|
#
|
|
|
|
.if ${MACHINE_ARCH} == "alpha"
|
|
|
|
CFLAGS+= -mno-fp-regs -Wa,-mev56
|
|
|
|
.endif
|