Changeset View
Changeset View
Standalone View
Standalone View
head/sys/conf/kern.pre.mk
Show First 20 Lines • Show All 133 Lines • ▼ Show 20 Lines | |||||
NORMAL_M= ${AWK} -f $S/tools/makeobjops.awk ${.IMPSRC} -c ; \ | NORMAL_M= ${AWK} -f $S/tools/makeobjops.awk ${.IMPSRC} -c ; \ | ||||
${CC} -c ${CFLAGS} ${WERROR} ${PROF} ${.PREFIX}.c | ${CC} -c ${CFLAGS} ${WERROR} ${PROF} ${.PREFIX}.c | ||||
NORMAL_FW= uudecode -o ${.TARGET} ${.ALLSRC} | NORMAL_FW= uudecode -o ${.TARGET} ${.ALLSRC} | ||||
NORMAL_FWO= ${LD} -b binary --no-warn-mismatch -d -warn-common -r \ | NORMAL_FWO= ${LD} -b binary --no-warn-mismatch -d -warn-common -r \ | ||||
-o ${.TARGET} ${.ALLSRC:M*.fw} | -o ${.TARGET} ${.ALLSRC:M*.fw} | ||||
# Common for dtrace / zfs | |||||
CDDL_CFLAGS= -DFREEBSD_NAMECACHE -nostdinc -I$S/cddl/compat/opensolaris -I$S/cddl/contrib/opensolaris/uts/common -I$S -I$S/cddl/contrib/opensolaris/common ${CFLAGS} -Wno-unknown-pragmas -Wno-missing-prototypes -Wno-undef -Wno-strict-prototypes -Wno-cast-qual -Wno-parentheses -Wno-redundant-decls -Wno-missing-braces -Wno-uninitialized -Wno-unused -Wno-inline -Wno-switch -Wno-pointer-arith -Wno-unknown-pragmas | |||||
CDDL_CFLAGS+= -include $S/cddl/compat/opensolaris/sys/debug_compat.h | |||||
CDDL_C= ${CC} -c ${CDDL_CFLAGS} ${WERROR} ${PROF} ${.IMPSRC} | |||||
# Special flags for managing the compat compiles for ZFS | # Special flags for managing the compat compiles for ZFS | ||||
ZFS_CFLAGS= -DFREEBSD_NAMECACHE -DBUILDING_ZFS -nostdinc -I$S/cddl/compat/opensolaris -I$S/cddl/contrib/opensolaris/uts/common/fs/zfs -I$S/cddl/contrib/opensolaris/uts/common/zmod -I$S/cddl/contrib/opensolaris/uts/common -I$S -I$S/cddl/contrib/opensolaris/common/zfs -I$S/cddl/contrib/opensolaris/common ${CFLAGS} -Wno-unknown-pragmas -Wno-missing-prototypes -Wno-undef -Wno-strict-prototypes -Wno-cast-qual -Wno-parentheses -Wno-redundant-decls -Wno-missing-braces -Wno-uninitialized -Wno-unused -Wno-inline -Wno-switch -Wno-pointer-arith -Wno-unknown-pragmas | ZFS_CFLAGS= -DBUILDING_ZFS -I$S/cddl/contrib/opensolaris/uts/common/fs/zfs -I$S/cddl/contrib/opensolaris/uts/common/zmod -I$S/cddl/contrib/opensolaris/common/zfs ${CDDL_CFLAGS} | ||||
ZFS_CFLAGS+= -include $S/cddl/compat/opensolaris/sys/debug_compat.h | |||||
ZFS_ASM_CFLAGS= -x assembler-with-cpp -DLOCORE ${ZFS_CFLAGS} | ZFS_ASM_CFLAGS= -x assembler-with-cpp -DLOCORE ${ZFS_CFLAGS} | ||||
ZFS_C= ${CC} -c ${ZFS_CFLAGS} ${WERROR} ${PROF} ${.IMPSRC} | ZFS_C= ${CC} -c ${ZFS_CFLAGS} ${WERROR} ${PROF} ${.IMPSRC} | ||||
ZFS_S= ${CC} -c ${ZFS_ASM_CFLAGS} ${WERROR} ${.IMPSRC} | ZFS_S= ${CC} -c ${ZFS_ASM_CFLAGS} ${WERROR} ${.IMPSRC} | ||||
# Special flags for managing the compat compiles for DTrace | |||||
DTRACE_CFLAGS= -DBUILDING_DTRACE ${CDDL_CFLAGS} -I$S/cddl/dev/dtrace -I$S/cddl/dev/dtrace/${MACHINE_CPUARCH} | |||||
.if ${MACHINE_CPUARCH} == "amd64" || ${MACHINE_CPUARCH} == "i386" | |||||
DTRACE_CFLAGS+= -I$S/cddl/contrib/opensolaris/uts/intel -I$S/cddl/dev/dtrace/x86 | |||||
.endif | |||||
DTRACE_CFLAGS+= -I$S/cddl/contrib/opensolaris/common/util -I$S -DDIS_MEM -DSMP | |||||
DTRACE_ASM_CFLAGS= -x assembler-with-cpp -DLOCORE ${DTRACE_CFLAGS} | |||||
DTRACE_C= ${CC} -c ${DTRACE_CFLAGS} ${CDDL_CFLAGS} ${WERROR} ${PROF} ${.IMPSRC} | |||||
DTRACE_S= ${CC} -c ${DTRACE_ASM_CFLAGS} ${CDDL_CFLAGS} ${WERROR} ${.IMPSRC} | |||||
# Special flags for managing the compat compiles for DTrace/FBT | |||||
FBT_CFLAGS= -DBUILDING_DTRACE -nostdinc -I$S/cddl/dev/fbt/${MACHINE_CPUARCH} -I$S/cddl/dev/fbt -I$S/cddl/compat/opensolaris -I$S/cddl/contrib/opensolaris/uts/common -I$S ${CDDL_CFLAGS} | |||||
.if ${MACHINE_CPUARCH} == "amd64" || ${MACHINE_CPUARCH} == "i386" | |||||
FBT_CFLAGS+= -I$S/cddl/dev/fbt/x86 | |||||
.endif | |||||
FBT_C= ${CC} -c ${FBT_CFLAGS} ${CDDL_CFLAGS} ${WERROR} ${PROF} ${.IMPSRC} | |||||
.if ${MK_CTF} != "no" | .if ${MK_CTF} != "no" | ||||
NORMAL_CTFCONVERT= ${CTFCONVERT} ${CTFFLAGS} ${.TARGET} | NORMAL_CTFCONVERT= ${CTFCONVERT} ${CTFFLAGS} ${.TARGET} | ||||
.elif ${MAKE_VERSION} >= 5201111300 | .elif ${MAKE_VERSION} >= 5201111300 | ||||
NORMAL_CTFCONVERT= | NORMAL_CTFCONVERT= | ||||
.else | .else | ||||
NORMAL_CTFCONVERT= @: | NORMAL_CTFCONVERT= @: | ||||
.endif | .endif | ||||
▲ Show 20 Lines • Show All 45 Lines • Show Last 20 Lines |