kern.pre.mk (153325) | kern.pre.mk (160043) |
---|---|
1# $FreeBSD: head/sys/conf/kern.pre.mk 153325 2005-12-12 01:14:59Z rodrigc $ | 1# $FreeBSD: head/sys/conf/kern.pre.mk 160043 2006-06-29 21:15:25Z obrien $ |
2 3# Part of a unified Makefile for building kernels. This part contains all 4# of the definitions that need to be before %BEFORE_DEPEND. 5 6# Can be overridden by makeoptions or /etc/make.conf 7KERNEL_KO?= kernel 8KERNEL?= kernel 9KODIR?= /boot/${KERNEL} --- 28 unchanged lines hidden (view full) --- 38COPTFLAGS+= ${_ICC_CPUCFLAGS:C/(-x[^M^K^W]+)[MKW]+|-x[MKW]+/\1/} 39. else 40COPTFLAGS+= ${_CPUCFLAGS} 41. endif 42.endif 43.if ${CC} == "icc" 44NOSTDINC= -X 45.else | 2 3# Part of a unified Makefile for building kernels. This part contains all 4# of the definitions that need to be before %BEFORE_DEPEND. 5 6# Can be overridden by makeoptions or /etc/make.conf 7KERNEL_KO?= kernel 8KERNEL?= kernel 9KODIR?= /boot/${KERNEL} --- 28 unchanged lines hidden (view full) --- 38COPTFLAGS+= ${_ICC_CPUCFLAGS:C/(-x[^M^K^W]+)[MKW]+|-x[MKW]+/\1/} 39. else 40COPTFLAGS+= ${_CPUCFLAGS} 41. endif 42.endif 43.if ${CC} == "icc" 44NOSTDINC= -X 45.else |
46C_DIALECT= -std=c99 |
|
46NOSTDINC= -nostdinc 47.endif 48 49INCLUDES= ${NOSTDINC} -I- ${INCLMAGIC} -I. -I$S 50 51# This hack lets us use the OpenBSD altq code without spamming a new 52# include path into contrib'ed source files. 53INCLUDES+= -I$S/contrib/altq --- 21 unchanged lines hidden (view full) --- 75# .. and the same for twa 76INCLUDES+= -I$S/dev/twa 77 78# ... and XFS 79INCLUDES+= -I$S/gnu/fs/xfs/FreeBSD -I$S/gnu/fs/xfs/FreeBSD/support -I$S/gnu/fs/xfs 80 81.endif 82 | 47NOSTDINC= -nostdinc 48.endif 49 50INCLUDES= ${NOSTDINC} -I- ${INCLMAGIC} -I. -I$S 51 52# This hack lets us use the OpenBSD altq code without spamming a new 53# include path into contrib'ed source files. 54INCLUDES+= -I$S/contrib/altq --- 21 unchanged lines hidden (view full) --- 76# .. and the same for twa 77INCLUDES+= -I$S/dev/twa 78 79# ... and XFS 80INCLUDES+= -I$S/gnu/fs/xfs/FreeBSD -I$S/gnu/fs/xfs/FreeBSD/support -I$S/gnu/fs/xfs 81 82.endif 83 |
83CFLAGS= ${COPTFLAGS} ${CWARNFLAGS} ${DEBUG} | 84CFLAGS= ${COPTFLAGS} ${C_DIALECT} ${DEBUG} ${CWARNFLAGS} |
84CFLAGS+= ${INCLUDES} -D_KERNEL -DHAVE_KERNEL_OPTION_HEADERS -include opt_global.h 85.if ${CC} != "icc" 86CFLAGS+= -fno-common -finline-limit=${INLINE_LIMIT} 87CFLAGS+= --param inline-unit-growth=100 88CFLAGS+= --param large-function-growth=1000 89WERROR?= -Werror 90.endif 91 --- 70 unchanged lines hidden --- | 85CFLAGS+= ${INCLUDES} -D_KERNEL -DHAVE_KERNEL_OPTION_HEADERS -include opt_global.h 86.if ${CC} != "icc" 87CFLAGS+= -fno-common -finline-limit=${INLINE_LIMIT} 88CFLAGS+= --param inline-unit-growth=100 89CFLAGS+= --param large-function-growth=1000 90WERROR?= -Werror 91.endif 92 --- 70 unchanged lines hidden --- |