kern.pre.mk (53e0bebaca4f073e7dec262c6b74dd2e79a2c10d) kern.pre.mk (cdd89b9897bab7002b3fdbe3977357e01dc8546d)
1# $FreeBSD$
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

--- 100 unchanged lines hidden (view full) ---

109.endif
110.endif
111DEFINED_PROF= ${PROF}
112
113# Put configuration-specific C flags last (except for ${PROF}) so that they
114# can override the others.
115CFLAGS+= ${CONF_CFLAGS}
116
1# $FreeBSD$
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

--- 100 unchanged lines hidden (view full) ---

109.endif
110.endif
111DEFINED_PROF= ${PROF}
112
113# Put configuration-specific C flags last (except for ${PROF}) so that they
114# can override the others.
115CFLAGS+= ${CONF_CFLAGS}
116
117.if ${LINKER_TYPE} != "bfd" || ${LINKER_VERSION} > 21750
117.if ${LINKER_FEATURES:Mbuild-id}
118LDFLAGS+= -Wl,--build-id=sha1
119.endif
120
121# Optional linting. This can be overridden in /etc/make.conf.
122LINTFLAGS= ${LINTOBJKERNFLAGS}
123
124NORMAL_C= ${CC} -c ${CFLAGS} ${WERROR} ${PROF} ${.IMPSRC}
125NORMAL_S= ${CC:N${CCACHE_BIN}} -c ${ASM_CFLAGS} ${WERROR} ${.IMPSRC}

--- 139 unchanged lines hidden ---
118LDFLAGS+= -Wl,--build-id=sha1
119.endif
120
121# Optional linting. This can be overridden in /etc/make.conf.
122LINTFLAGS= ${LINTOBJKERNFLAGS}
123
124NORMAL_C= ${CC} -c ${CFLAGS} ${WERROR} ${PROF} ${.IMPSRC}
125NORMAL_S= ${CC:N${CCACHE_BIN}} -c ${ASM_CFLAGS} ${WERROR} ${.IMPSRC}

--- 139 unchanged lines hidden ---