Changeset View
Changeset View
Standalone View
Standalone View
sys/conf/kmod.mk
Show First 20 Lines • Show All 115 Lines • ▼ Show 20 Lines | |||||
CFLAGS:= ${CFLAGS:N-I*} ${NOSTDINC} ${INCLMAGIC} ${CFLAGS:M-I*} | CFLAGS:= ${CFLAGS:N-I*} ${NOSTDINC} ${INCLMAGIC} ${CFLAGS:M-I*} | ||||
.if defined(KERNBUILDDIR) | .if defined(KERNBUILDDIR) | ||||
CFLAGS+= -DHAVE_KERNEL_OPTION_HEADERS -include ${KERNBUILDDIR}/opt_global.h | CFLAGS+= -DHAVE_KERNEL_OPTION_HEADERS -include ${KERNBUILDDIR}/opt_global.h | ||||
.else | .else | ||||
SRCS+= opt_global.h | SRCS+= opt_global.h | ||||
CFLAGS+= -include ${.OBJDIR}/opt_global.h | CFLAGS+= -include ${.OBJDIR}/opt_global.h | ||||
.endif | .endif | ||||
# These options produce more accurate results for analyze, e.g., by traversing | |||||
# into a __dead2 function if some invariant doesn't hold. | |||||
ANALYZE_OPTS+= INVARIANTS INVARIANT_SUPPORT | |||||
.if make(analyze) | |||||
.for opt in ${ANALYZE_OPTS} | |||||
# Avoid redefinitions if these options get introduced via more typical means. | |||||
.if ${KERN_OPTS:M${opt}} == "" | |||||
CFLAGS+= -D${opt} | |||||
KERN_OPTS+= ${opt} | |||||
.endif | |||||
.endfor | |||||
.endif | |||||
# Add -I paths for system headers. Individual module makefiles don't | # Add -I paths for system headers. Individual module makefiles don't | ||||
# need any -I paths for this. Similar defaults for .PATH can't be | # need any -I paths for this. Similar defaults for .PATH can't be | ||||
# set because there are no standard paths for non-headers. | # set because there are no standard paths for non-headers. | ||||
CFLAGS+= -I. -I${SYSDIR} -I${SYSDIR}/contrib/ck/include | CFLAGS+= -I. -I${SYSDIR} -I${SYSDIR}/contrib/ck/include | ||||
CFLAGS.gcc+= -finline-limit=${INLINE_LIMIT} | CFLAGS.gcc+= -finline-limit=${INLINE_LIMIT} | ||||
CFLAGS.gcc+= -fms-extensions | CFLAGS.gcc+= -fms-extensions | ||||
CFLAGS.gcc+= --param inline-unit-growth=100 | CFLAGS.gcc+= --param inline-unit-growth=100 | ||||
▲ Show 20 Lines • Show All 422 Lines • Show Last 20 Lines |