kmod.mk (239272) | kmod.mk (240468) |
---|---|
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 239272 2012-08-15 03:21:56Z gonzo $ | 2# $FreeBSD: head/sys/conf/kmod.mk 240468 2012-09-13 16:00:46Z brooks $ |
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. --- 57 unchanged lines hidden (view full) --- 68KMODUNLOAD?= /sbin/kldunload 69OBJCOPY?= objcopy 70 71.if defined(KMODDEPS) 72.error "Do not use KMODDEPS on 5.0+; use MODULE_VERSION/MODULE_DEPEND" 73.endif 74 75.include <bsd.init.mk> | 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. --- 57 unchanged lines hidden (view full) --- 68KMODUNLOAD?= /sbin/kldunload 69OBJCOPY?= objcopy 70 71.if defined(KMODDEPS) 72.error "Do not use KMODDEPS on 5.0+; use MODULE_VERSION/MODULE_DEPEND" 73.endif 74 75.include <bsd.init.mk> |
76.include <bsd.compiler.mk> |
|
76 77.SUFFIXES: .out .o .c .cc .cxx .C .y .l .s .S 78 79# amd64 and mips use direct linking for kmod, all others use shared binaries 80.if ${MACHINE_CPUARCH} != amd64 && ${MACHINE_CPUARCH} != mips 81__KLD_SHARED=yes 82.else 83__KLD_SHARED=no --- 19 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 | 77 78.SUFFIXES: .out .o .c .cc .cxx .C .y .l .s .S 79 80# amd64 and mips use direct linking for kmod, all others use shared binaries 81.if ${MACHINE_CPUARCH} != amd64 && ${MACHINE_CPUARCH} != mips 82__KLD_SHARED=yes 83.else 84__KLD_SHARED=no --- 19 unchanged lines hidden (view full) --- 104# need any -I paths for this. Similar defaults for .PATH can't be 105# set because there are no standard paths for non-headers. 106CFLAGS+= -I. -I@ 107 108# Add -I path for altq headers as they are included via net/if_var.h 109# for example. 110CFLAGS+= -I@/contrib/altq 111 |
111.if ${MK_CLANG_IS_CC} == "no" && ${CC:T:Mclang} != "clang" | 112.if ${COMPILER_TYPE} != "clang" |
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 --- 362 unchanged lines hidden --- | 113CFLAGS+= -finline-limit=${INLINE_LIMIT} 114CFLAGS+= --param inline-unit-growth=100 115CFLAGS+= --param large-function-growth=1000 116.endif 117 118# Disallow common variables, and if we end up with commons from 119# somewhere unexpected, allocate storage for them in the module itself. 120CFLAGS+= -fno-common --- 362 unchanged lines hidden --- |