Changeset View
Changeset View
Standalone View
Standalone View
sys/conf/kern.pre.mk
Show First 20 Lines • Show All 58 Lines • ▼ Show 20 Lines | |||||
.endif | .endif | ||||
.if !defined(NO_CPU_COPTFLAGS) | .if !defined(NO_CPU_COPTFLAGS) | ||||
COPTFLAGS+= ${_CPUCFLAGS} | COPTFLAGS+= ${_CPUCFLAGS} | ||||
.endif | .endif | ||||
NOSTDINC= -nostdinc | NOSTDINC= -nostdinc | ||||
INCLUDES= ${NOSTDINC} ${INCLMAGIC} -I. -I$S | INCLUDES= ${NOSTDINC} ${INCLMAGIC} -I. -I$S | ||||
.if ${MK_FAST_DEPEND} == "no" && (make(depend) || make(kernel-depend)) | |||||
# This hack lets us use the ipfilter code without spamming a new | |||||
# include path into contrib'ed source files. | |||||
INCLUDES+= -I$S/contrib/ipfilter | |||||
# ... and the same for ath | |||||
INCLUDES+= -I$S/dev/ath -I$S/dev/ath/ath_hal -I$S/contrib/dev/ath/ath_hal | |||||
# ... and the same for the NgATM stuff | |||||
INCLUDES+= -I$S/contrib/ngatm | |||||
# ... and the same for vchiq | |||||
INCLUDES+= -I$S/contrib/vchiq | |||||
# ... and the same for twa | |||||
INCLUDES+= -I$S/dev/twa | |||||
# ... and the same for cxgb and cxgbe | |||||
INCLUDES+= -I$S/dev/cxgb -I$S/dev/cxgbe | |||||
.endif | |||||
CFLAGS= ${COPTFLAGS} ${DEBUG} | CFLAGS= ${COPTFLAGS} ${DEBUG} | ||||
CFLAGS+= ${INCLUDES} -D_KERNEL -DHAVE_KERNEL_OPTION_HEADERS -include opt_global.h | CFLAGS+= ${INCLUDES} -D_KERNEL -DHAVE_KERNEL_OPTION_HEADERS -include opt_global.h | ||||
CFLAGS_PARAM_INLINE_UNIT_GROWTH?=100 | CFLAGS_PARAM_INLINE_UNIT_GROWTH?=100 | ||||
CFLAGS_PARAM_LARGE_FUNCTION_GROWTH?=1000 | CFLAGS_PARAM_LARGE_FUNCTION_GROWTH?=1000 | ||||
.if ${MACHINE_CPUARCH} == "mips" | .if ${MACHINE_CPUARCH} == "mips" | ||||
CFLAGS_ARCH_PARAMS?=--param max-inline-insns-single=1000 | CFLAGS_ARCH_PARAMS?=--param max-inline-insns-single=1000 | ||||
.endif | .endif | ||||
CFLAGS.gcc+= -fno-common -fms-extensions -finline-limit=${INLINE_LIMIT} | CFLAGS.gcc+= -fno-common -fms-extensions -finline-limit=${INLINE_LIMIT} | ||||
▲ Show 20 Lines • Show All 170 Lines • Show Last 20 Lines |