diff options
author | bde <bde@FreeBSD.org> | 2003-11-05 12:20:16 +0000 |
---|---|---|
committer | bde <bde@FreeBSD.org> | 2003-11-05 12:20:16 +0000 |
commit | 90bb80fc0c8c92a0764c742a794b506d1eb7b056 (patch) | |
tree | 04328da0e5177d7b19d59bfc65da2237bc1b4624 /sys/conf/kern.pre.mk | |
parent | 1c2b839e59f4523c53c0f7afe23e24d6bfffbfea (diff) | |
download | FreeBSD-src-90bb80fc0c8c92a0764c742a794b506d1eb7b056.zip FreeBSD-src-90bb80fc0c8c92a0764c742a794b506d1eb7b056.tar.gz |
Moved $FreeBSD$ to the beginning of the file.
Don't put the name of the file in a comment. $FreeBSD$ gives more than
enough about the file's pathname.
Fixed misdescription of the file. It isn't the whole unified Makefile...
Moved the settings of WERROR and of the standard extra CFLAGS
-finline-limit and -fno-strict-aliasing to a less wrong place. They
were in the section for profiling.
Diffstat (limited to 'sys/conf/kern.pre.mk')
-rw-r--r-- | sys/conf/kern.pre.mk | 16 |
1 files changed, 6 insertions, 10 deletions
diff --git a/sys/conf/kern.pre.mk b/sys/conf/kern.pre.mk index a0e34bc..9202d66 100644 --- a/sys/conf/kern.pre.mk +++ b/sys/conf/kern.pre.mk @@ -1,10 +1,7 @@ -# kern.pre.mk -# -# Unified Makefile for building kernels. This includes all the definitions -# that need to be included before %BEFORE_DEPEND -# # $FreeBSD$ -# + +# Part of a unified Makefile for building kernels. This part contains all +# of the definitions that need to be before %BEFORE_DEPEND. # Can be overridden by makeoptions or /etc/make.conf KERNEL_KO?= kernel @@ -39,7 +36,9 @@ INCLUDES+= -I$S/contrib/dev/ath -I$S/contrib/dev/ath/freebsd INCLUDES+= -I$S/contrib/ngatm COPTS= ${INCLUDES} -D_KERNEL -include opt_global.h -CFLAGS= ${COPTFLAGS} ${CWARNFLAGS} ${DEBUG} ${COPTS} -fno-common +CFLAGS= ${COPTFLAGS} ${CWARNFLAGS} ${DEBUG} ${COPTS} +CFLAGS+= -fno-common -finline-limit=${INLINE_LIMIT} -fno-strict-aliasing +WERROR?= -Werror # XXX LOCORE means "don't declare C stuff" not "for locore.s". ASM_CFLAGS= -x assembler-with-cpp -DLOCORE ${CFLAGS} @@ -55,9 +54,6 @@ PROF= -pg .endif .endif DEFINED_PROF= ${PROF} -WERROR?= -Werror -CFLAGS+= -finline-limit=${INLINE_LIMIT} -fno-strict-aliasing - # Put configuration-specific C flags last (except for ${PROF}) so that they # can override the others. |