Remove pca and speaker device remains (both deleted).
[dragonfly.git] / sys / conf / bsd.kern.mk
CommitLineData
984263bc
MD
1# $FreeBSD: src/share/mk/bsd.kern.mk,v 1.17.2.1 2001/08/01 16:56:56 obrien Exp $
2
984263bc
MD
3# Warning flags for compiling the kernel and components of the kernel.
4#
a7fe2b82 5# Note that -Werror is on by default. To turn it off, e.g. when working
be203f75
SW
6# on adding new warning options, NO_WERROR in make.conf (or on make(1)'s
7# command line) should be of material assistance.
984263bc 8#
be203f75 9
984263bc
MD
10CWARNFLAGS?= -Wall -Wredundant-decls -Wnested-externs -Wstrict-prototypes \
11 -Wmissing-prototypes -Wpointer-arith -Winline -Wcast-qual \
11116d3f 12 -Wold-style-definition -Wold-style-declaration -Wno-inline \
df0fdfc9
SW
13 -Wno-pointer-sign -std=c99
14
15.if ${CCVER} == "gcc47"
16CWARNFLAGS+= -Wno-unused-but-set-variable
17.endif
984263bc 18
2a1b3304
SS
19CFLAGS+= -finline-limit=${INLINE_LIMIT}
20CFLAGS+= --param inline-unit-growth=100
21CFLAGS+= --param large-function-growth=1000
22
a4786b57
MD
23# Require the proper use of 'extern' for variables. -fno-common will
24# cause duplicate declarations to generate a link error.
25#
26CFLAGS+= -fno-common
27
6b08710e
MD
28# Prevent GCC 3.x from making certain libc based inline optimizations
29#
30CFLAGS+= -ffreestanding
edbe133c 31
0955fd91 32.include "../platform/${MACHINE_PLATFORM}/conf/kern.mk"