kern.pre.mk (276496) | kern.pre.mk (276696) |
---|---|
1# $FreeBSD: head/sys/conf/kern.pre.mk 276496 2015-01-01 08:18:08Z imp $ | 1# $FreeBSD: head/sys/conf/kern.pre.mk 276696 2015-01-05 12:28:22Z imp $ |
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# Allow user to configure things that only effect src tree builds. 7# Note: This is duplicated from src.sys.mk to ensure that we include 8# /etc/src.conf when building the kernel. Kernels can be built without 9# the rest of /usr/src, but they still always process SRCCONF even though --- 88 unchanged lines hidden (view full) --- 98CFLAGS.gcc+= --param inline-unit-growth=${CFLAGS_PARAM_INLINE_UNIT_GROWTH} 99CFLAGS.gcc+= --param large-function-growth=${CFLAGS_PARAM_LARGE_FUNCTION_GROWTH} 100.if defined(CFLAGS_ARCH_PARAMS) 101CFLAGS.gcc+=${CFLAGS_ARCH_PARAMS} 102.endif 103WERROR?= -Werror 104 105# XXX LOCORE means "don't declare C stuff" not "for locore.s". | 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# Allow user to configure things that only effect src tree builds. 7# Note: This is duplicated from src.sys.mk to ensure that we include 8# /etc/src.conf when building the kernel. Kernels can be built without 9# the rest of /usr/src, but they still always process SRCCONF even though --- 88 unchanged lines hidden (view full) --- 98CFLAGS.gcc+= --param inline-unit-growth=${CFLAGS_PARAM_INLINE_UNIT_GROWTH} 99CFLAGS.gcc+= --param large-function-growth=${CFLAGS_PARAM_LARGE_FUNCTION_GROWTH} 100.if defined(CFLAGS_ARCH_PARAMS) 101CFLAGS.gcc+=${CFLAGS_ARCH_PARAMS} 102.endif 103WERROR?= -Werror 104 105# XXX LOCORE means "don't declare C stuff" not "for locore.s". |
106ASM_CFLAGS= -x assembler-with-cpp -DLOCORE ${CFLAGS} | 106ASM_CFLAGS= -x assembler-with-cpp -DLOCORE ${CFLAGS} ${ASM_CFLAGS.${.IMPSRC}} |
107 | 107 |
108.if ${COMPILER_TYPE} == "clang" 109CLANG_NO_IAS= -no-integrated-as 110.else 111GCC_MS_EXTENSIONS= -fms-extensions 112.endif 113 | |
114.if defined(PROFLEVEL) && ${PROFLEVEL} >= 1 115CFLAGS+= -DGPROF 116CFLAGS.gcc+= -falign-functions=16 117.if ${PROFLEVEL} >= 2 118CFLAGS+= -DGPROF4 -DGUPROF 119PROF= -pg 120.if ${COMPILER_TYPE} == "gcc" 121PROF+= -mprofiler-epilogue --- 87 unchanged lines hidden --- | 108.if defined(PROFLEVEL) && ${PROFLEVEL} >= 1 109CFLAGS+= -DGPROF 110CFLAGS.gcc+= -falign-functions=16 111.if ${PROFLEVEL} >= 2 112CFLAGS+= -DGPROF4 -DGUPROF 113PROF= -pg 114.if ${COMPILER_TYPE} == "gcc" 115PROF+= -mprofiler-epilogue --- 87 unchanged lines hidden --- |