Deleted Added
full compact
kmod.mk (232322) kmod.mk (232473)
1# From: @(#)bsd.prog.mk 5.26 (Berkeley) 6/25/91
1# From: @(#)bsd.prog.mk 5.26 (Berkeley) 6/25/91
2# $FreeBSD: head/sys/conf/kmod.mk 232322 2012-02-29 22:58:51Z dim $
2# $FreeBSD: head/sys/conf/kmod.mk 232473 2012-03-03 18:58:15Z dim $
3#
4# The include file <bsd.kmod.mk> handles building and installing loadable
5# kernel modules.
6#
7#
8# +++ variables +++
9#
10# CLEANFILES Additional files to remove for the clean and cleandir targets.

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

103# need any -I paths for this. Similar defaults for .PATH can't be
104# set because there are no standard paths for non-headers.
105CFLAGS+= -I. -I@
106
107# Add -I path for altq headers as they are included via net/if_var.h
108# for example.
109CFLAGS+= -I@/contrib/altq
110
3#
4# The include file <bsd.kmod.mk> handles building and installing loadable
5# kernel modules.
6#
7#
8# +++ variables +++
9#
10# CLEANFILES Additional files to remove for the clean and cleandir targets.

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

103# need any -I paths for this. Similar defaults for .PATH can't be
104# set because there are no standard paths for non-headers.
105CFLAGS+= -I. -I@
106
107# Add -I path for altq headers as they are included via net/if_var.h
108# for example.
109CFLAGS+= -I@/contrib/altq
110
111.if ${MK_CLANG_IS_CC} == "no" && ${CC:T:Mclang} != "clang"
111.if ${CC:T:Mclang} != "clang" && (!defined(MK_CLANG_IS_CC) || ${MK_CLANG_IS_CC} == "no")
112CFLAGS+= -finline-limit=${INLINE_LIMIT}
113CFLAGS+= --param inline-unit-growth=100
114CFLAGS+= --param large-function-growth=1000
115.endif
116
117# Disallow common variables, and if we end up with commons from
118# somewhere unexpected, allocate storage for them in the module itself.
119CFLAGS+= -fno-common

--- 363 unchanged lines hidden ---
112CFLAGS+= -finline-limit=${INLINE_LIMIT}
113CFLAGS+= --param inline-unit-growth=100
114CFLAGS+= --param large-function-growth=1000
115.endif
116
117# Disallow common variables, and if we end up with commons from
118# somewhere unexpected, allocate storage for them in the module itself.
119CFLAGS+= -fno-common

--- 363 unchanged lines hidden ---