1639a2e50SGarrett Wollman# From: @(#)bsd.prog.mk 5.26 (Berkeley) 6/25/91 27f3dea24SPeter Wemm# $FreeBSD$ 353996fadSWolfram Schneider# 41f089616SRuslan Ermilov# The include file <bsd.kmod.mk> handles building and installing loadable 51f089616SRuslan Ermilov# kernel modules. 653996fadSWolfram Schneider# 753996fadSWolfram Schneider# 853996fadSWolfram Schneider# +++ variables +++ 953996fadSWolfram Schneider# 1053996fadSWolfram Schneider# CLEANFILES Additional files to remove for the clean and cleandir targets. 1153996fadSWolfram Schneider# 121f089616SRuslan Ermilov# EXPORT_SYMS A list of symbols that should be exported from the module, 131f089616SRuslan Ermilov# or the name of a file containing a list of symbols, or YES 141f089616SRuslan Ermilov# to export all symbols. If not defined, no symbols are 151f089616SRuslan Ermilov# exported. 161f089616SRuslan Ermilov# 17fe3cac87SNick Hibma# KMOD The name of the kernel module to build. 1853996fadSWolfram Schneider# 193bdfa9e5SDavid E. O'Brien# KMODDIR Base path for kernel modules (see kld(4)). [/boot/kernel] 2053996fadSWolfram Schneider# 211f089616SRuslan Ermilov# KMODOWN Module file owner. [${BINOWN}] 2253996fadSWolfram Schneider# 231f089616SRuslan Ermilov# KMODGRP Module file group. [${BINGRP}] 2453996fadSWolfram Schneider# 251f089616SRuslan Ermilov# KMODMODE Module file mode. [${BINMODE}] 2653996fadSWolfram Schneider# 27fe3cac87SNick Hibma# KMODLOAD Command to load a kernel module [/sbin/kldload] 287bc830bbSWolfram Schneider# 29fe3cac87SNick Hibma# KMODUNLOAD Command to unload a kernel module [/sbin/kldunload] 307bc830bbSWolfram Schneider# 317fecffecSDoug Rabson# MFILES Optionally a list of interfaces used by the module. 327fecffecSDoug Rabson# This file contains a default list of interfaces. 3353996fadSWolfram Schneider# 341f089616SRuslan Ermilov# PROG The name of the kernel module to build. 351f089616SRuslan Ermilov# If not supplied, ${KMOD}.ko is used. 361f089616SRuslan Ermilov# 371f089616SRuslan Ermilov# SRCS List of source files. 381f089616SRuslan Ermilov# 391f089616SRuslan Ermilov# DESTDIR The tree where the module gets installed. [not set] 400b3178a4SMike Smith# 4153996fadSWolfram Schneider# +++ targets +++ 4253996fadSWolfram Schneider# 4353996fadSWolfram Schneider# install: 4417d6c636SRuslan Ermilov# install the kernel module; if the Makefile 4553996fadSWolfram Schneider# does not itself define the target install, the targets 4653996fadSWolfram Schneider# beforeinstall and afterinstall may also be used to cause 4753996fadSWolfram Schneider# actions immediately before and after the install target 4853996fadSWolfram Schneider# is executed. 4953996fadSWolfram Schneider# 5053996fadSWolfram Schneider# load: 511f089616SRuslan Ermilov# Load a module. 5253996fadSWolfram Schneider# 5353996fadSWolfram Schneider# unload: 541f089616SRuslan Ermilov# Unload a module. 5553996fadSWolfram Schneider# 56639a2e50SGarrett Wollman 57b7bbb709SDavid E. O'BrienAWK?= awk 58fe3cac87SNick HibmaKMODLOAD?= /sbin/kldload 59fe3cac87SNick HibmaKMODUNLOAD?= /sbin/kldunload 60f6611608SSheldon HearnOBJCOPY?= objcopy 617bc830bbSWolfram Schneider 6206639be7SPeter Wemm.if defined(KMODDEPS) 631f089616SRuslan Ermilov.error "Do not use KMODDEPS on 5.0+; use MODULE_VERSION/MODULE_DEPEND" 6406639be7SPeter Wemm.endif 6506639be7SPeter Wemm 660ac2fc87SRuslan Ermilov.include <bsd.init.mk> 67639a2e50SGarrett Wollman 68639a2e50SGarrett Wollman.SUFFIXES: .out .o .c .cc .cxx .C .y .l .s .S 69639a2e50SGarrett Wollman 7006d6e4fcSTom Rhodes.if ${CC} == "icc" 715a19f6d9STom RhodesCFLAGS:= ${CFLAGS:C/(-x[^M^K^W]+)[MKW]+|-x[MKW]+/\1/} 7206d6e4fcSTom Rhodes.endif 7348aea4daSRuslan ErmilovCFLAGS+= -D_KERNEL 748fe644b2SMike SmithCFLAGS+= -DKLD_MODULE 754a2d2630SBruce Evans 76021886ffSBruce Evans# Don't use any standard or source-relative include directories. 77021886ffSBruce Evans# Since -nostdinc will annull any previous -I paths, we repeat all 78021886ffSBruce Evans# such paths after -nostdinc. It doesn't seem to be possible to 79021886ffSBruce Evans# add to the front of `make' variable. 80021886ffSBruce Evans_ICFLAGS:= ${CFLAGS:M-I*} 8106d6e4fcSTom Rhodes.if ${CC} == "icc" 8206d6e4fcSTom RhodesNOSTDINC= -X 8306d6e4fcSTom Rhodes.else 8406d6e4fcSTom RhodesNOSTDINC= -nostdinc 8506d6e4fcSTom Rhodes.endif 8606d6e4fcSTom RhodesCFLAGS+= ${NOSTDINC} -I- ${INCLMAGIC} ${_ICFLAGS} 878fa793d0SBrian Feldman.if defined(KERNBUILDDIR) 8875504450SBrian FeldmanCFLAGS+= -include ${KERNBUILDDIR}/opt_global.h 898fa793d0SBrian Feldman.endif 90021886ffSBruce Evans 911f089616SRuslan Ermilov# Add -I paths for system headers. Individual module makefiles don't 92021886ffSBruce Evans# need any -I paths for this. Similar defaults for .PATH can't be 93021886ffSBruce Evans# set because there are no standard paths for non-headers. 9474455e55SWarner LoshCFLAGS+= -I. -I@ 954a2d2630SBruce Evans 9602b199f1SMax Laier# Add -I path for altq headers as they are included via net/if_var.h 9702b199f1SMax Laier# for example. 9802b199f1SMax LaierCFLAGS+= -I@/contrib/altq 9902b199f1SMax Laier 100a0b845feSBruce Evans# Add a -I path to standard headers like <stddef.h>. Use a relative 101a0b845feSBruce Evans# path to src/include if possible. If the @ symlink hasn't been built 102a0b845feSBruce Evans# yet, then we can't tell if the relative path exists. Add both the 103a0b845feSBruce Evans# potential relative path and an absolute path in that case. 104a0b845feSBruce Evans.if exists(@) 105a0b845feSBruce Evans.if exists(@/../include) 106a0b845feSBruce EvansCFLAGS+= -I@/../include 107a0b845feSBruce Evans.else 108b3e17ba2SSatoshi AsamiCFLAGS+= -I${DESTDIR}/usr/include 109b3e17ba2SSatoshi Asami.endif 110a0b845feSBruce Evans.else # !@ 111a0b845feSBruce EvansCFLAGS+= -I@/../include -I${DESTDIR}/usr/include 112a0b845feSBruce Evans.endif # @ 11356bac51bSPoul-Henning Kamp 11406d6e4fcSTom Rhodes.if ${CC} != "icc" 115a92a2144SPeter WemmCFLAGS+= -finline-limit=${INLINE_LIMIT} 11606d6e4fcSTom Rhodes.endif 1172a51529fSPeter Wemm 1180b3178a4SMike Smith# Disallow common variables, and if we end up with commons from 1190b3178a4SMike Smith# somewhere unexpected, allocate storage for them in the module itself. 12006d6e4fcSTom Rhodes.if ${CC} != "icc" 1210b3178a4SMike SmithCFLAGS+= -fno-common 12206d6e4fcSTom Rhodes.endif 1230b3178a4SMike SmithLDFLAGS+= -d -warn-common 1240b3178a4SMike Smith 1259e4be63dSBruce EvansCFLAGS+= ${DEBUG_FLAGS} 12683c457dcSIan Dowse.if ${MACHINE_ARCH} == amd64 12783c457dcSIan DowseCFLAGS+= -fno-omit-frame-pointer 12883c457dcSIan Dowse.endif 1299e4be63dSBruce Evans 130639a2e50SGarrett WollmanOBJS+= ${SRCS:N*.h:R:S/$/.o/g} 131639a2e50SGarrett Wollman 132639a2e50SGarrett Wollman.if !defined(PROG) 13390f60fc9SMike SmithPROG= ${KMOD}.ko 13490f60fc9SMike Smith.endif 135639a2e50SGarrett Wollman 136817b59bfSRuslan Ermilov.if !defined(DEBUG_FLAGS) 137f6611608SSheldon HearnFULLPROG= ${PROG} 138f6611608SSheldon Hearn.else 139f6611608SSheldon HearnFULLPROG= ${PROG}.debug 140f6611608SSheldon Hearn${PROG}: ${FULLPROG} 141f6611608SSheldon Hearn ${OBJCOPY} --strip-debug ${FULLPROG} ${PROG} 142f6611608SSheldon Hearn.endif 143f6611608SSheldon Hearn 1444d6bcc83SPeter Wemm.if ${MACHINE_ARCH} != amd64 145f6611608SSheldon Hearn${FULLPROG}: ${KMOD}.kld 14609be11baSPeter Wemm ${LD} -Bshareable ${LDFLAGS} -o ${.TARGET} ${KMOD}.kld 147817b59bfSRuslan Ermilov.if !defined(DEBUG_FLAGS) 148817b59bfSRuslan Ermilov ${OBJCOPY} --strip-debug ${.TARGET} 1494c293d35SRuslan Ermilov.endif 1504d6bcc83SPeter Wemm.endif 15109be11baSPeter Wemm 15293f03548SMike SmithEXPORT_SYMS?= NO 15393f03548SMike Smith.if ${EXPORT_SYMS} != YES 1541f089616SRuslan ErmilovCLEANFILES+= export_syms 1550b3178a4SMike Smith.endif 1560b3178a4SMike Smith 1574d6bcc83SPeter Wemm.if ${MACHINE_ARCH} != amd64 15809be11baSPeter Wemm${KMOD}.kld: ${OBJS} 1594d6bcc83SPeter Wemm.else 1604d6bcc83SPeter Wemm${FULLPROG}: ${OBJS} 1614d6bcc83SPeter Wemm.endif 1620b3178a4SMike Smith ${LD} ${LDFLAGS} -r -d -o ${.TARGET} ${OBJS} 1630b3178a4SMike Smith.if defined(EXPORT_SYMS) 16493f03548SMike Smith.if ${EXPORT_SYMS} != YES 1650b3178a4SMike Smith.if ${EXPORT_SYMS} == NO 1661f089616SRuslan Ermilov touch export_syms 1670b3178a4SMike Smith.elif !exists(${.CURDIR}/${EXPORT_SYMS}) 1681f089616SRuslan Ermilov echo ${EXPORT_SYMS} > export_syms 1690b3178a4SMike Smith.else 1701f089616SRuslan Ermilov grep -v '^#' < ${EXPORT_SYMS} > export_syms 1710b3178a4SMike Smith.endif 1720b3178a4SMike Smith awk -f ${SYSDIR}/conf/kmod_syms.awk ${.TARGET} \ 1731f089616SRuslan Ermilov export_syms | xargs -J% ${OBJCOPY} % ${.TARGET} 17493f03548SMike Smith.endif 1750b3178a4SMike Smith.endif 1764d6bcc83SPeter Wemm.if !defined(DEBUG_FLAGS) && ${MACHINE_ARCH} == amd64 1774d6bcc83SPeter Wemm ${OBJCOPY} --strip-debug ${.TARGET} 1784d6bcc83SPeter Wemm.endif 1790b3178a4SMike Smith 1804a2d2630SBruce Evans_ILINKS=@ machine 181639a2e50SGarrett Wollman 182b25a566dSRuslan Ermilovall: objwarn ${PROG} 1834a2d2630SBruce Evans 184985f41afSWarner Loshbeforedepend: ${_ILINKS} 185985f41afSWarner Losh 186f3cc9575SWarner Losh# Ensure that the links exist without depending on it when it exists which 187f3cc9575SWarner Losh# causes all the modules to be rebuilt when the directory pointed to changes. 188f3cc9575SWarner Losh.for _link in ${_ILINKS} 189f3cc9575SWarner Losh.if !exists(${.OBJDIR}/${_link}) 190f3cc9575SWarner Losh${OBJS}: ${_link} 191f3cc9575SWarner Losh.endif 192f3cc9575SWarner Losh.endfor 1934a2d2630SBruce Evans 1949a8631b3SWarner Losh# Search for kernel source tree in standard places. 1959a8631b3SWarner Losh.for _dir in ${.CURDIR}/../.. ${.CURDIR}/../../.. /sys /usr/src/sys 196776f50b9SRuslan Ermilov.if !defined(SYSDIR) && exists(${_dir}/kern/) 1979a8631b3SWarner LoshSYSDIR= ${_dir} 1989a8631b3SWarner Losh.endif 1999a8631b3SWarner Losh.endfor 200776f50b9SRuslan Ermilov.if !defined(SYSDIR) || !exists(${SYSDIR}/kern/) 2019a8631b3SWarner Losh.error "can't find kernel source tree" 2029a8631b3SWarner Losh.endif 2039a8631b3SWarner Losh 2044a2d2630SBruce Evans${_ILINKS}: 2059a8631b3SWarner Losh @case ${.TARGET} in \ 20608a04a89SPeter Wemm machine) \ 2079a8631b3SWarner Losh path=${SYSDIR}/${MACHINE_ARCH}/include ;; \ 20808a04a89SPeter Wemm @) \ 2099a8631b3SWarner Losh path=${SYSDIR} ;; \ 21008a04a89SPeter Wemm esac ; \ 21108a04a89SPeter Wemm path=`(cd $$path && /bin/pwd)` ; \ 21208a04a89SPeter Wemm ${ECHO} ${.TARGET} "->" $$path ; \ 21308a04a89SPeter Wemm ln -s $$path ${.TARGET} 2144a2d2630SBruce Evans 2151f089616SRuslan ErmilovCLEANFILES+= ${PROG} ${KMOD}.kld ${OBJS} ${_ILINKS} 216361186e5SMaxime Henrion 217817b59bfSRuslan Ermilov.if defined(DEBUG_FLAGS) 218361186e5SMaxime HenrionCLEANFILES+= ${FULLPROG} 219361186e5SMaxime Henrion.endif 220639a2e50SGarrett Wollman 221639a2e50SGarrett Wollman.if !target(install) 222639a2e50SGarrett Wollman 223ea87b3cbSDavid E. O'Brien_INSTALLFLAGS:= ${INSTALLFLAGS} 224e902c1bbSTim Vanderhoek.for ie in ${INSTALLFLAGS_EDIT} 225e902c1bbSTim Vanderhoek_INSTALLFLAGS:= ${_INSTALLFLAGS${ie}} 226e902c1bbSTim Vanderhoek.endfor 227e902c1bbSTim Vanderhoek 2281f089616SRuslan Ermilov.if !target(install.debug) && defined(DEBUG_FLAGS) 229b25a566dSRuslan Ermilovinstall.debug: 2302cbc81ffSRuslan Ermilov cd ${.CURDIR}; ${MAKE} -DINSTALL_DEBUG install 2312cbc81ffSRuslan Ermilov.endif 232a4c00586SDag-Erling Smørgrav 2332b06260dSRuslan Ermilov.if !target(realinstall) 2342b06260dSRuslan Ermilovrealinstall: _kmodinstall 2352b06260dSRuslan Ermilov.ORDER: beforeinstall _kmodinstall 2362b06260dSRuslan Ermilov_kmodinstall: 237817b59bfSRuslan Ermilov.if defined(DEBUG_FLAGS) && defined(INSTALL_DEBUG) 238d2893b16SRuslan Ermilov ${INSTALL} -o ${KMODOWN} -g ${KMODGRP} -m ${KMODMODE} \ 2392b06260dSRuslan Ermilov ${_INSTALLFLAGS} ${FULLPROG} ${DESTDIR}${KMODDIR} 2402cbc81ffSRuslan Ermilov.else 241d2893b16SRuslan Ermilov ${INSTALL} -o ${KMODOWN} -g ${KMODGRP} -m ${KMODMODE} \ 2422b06260dSRuslan Ermilov ${_INSTALLFLAGS} ${PROG} ${DESTDIR}${KMODDIR} 2432b06260dSRuslan Ermilov 2442b06260dSRuslan Ermilov.include <bsd.links.mk> 2452b06260dSRuslan Ermilov 2464875819cSJake Burkholder.if !defined(NO_XREF) 2472b06260dSRuslan Ermilovafterinstall: _kldxref 2482b06260dSRuslan Ermilov.ORDER: realinstall _kldxref 2492b06260dSRuslan Ermilov.ORDER: _installlinks _kldxref 2502b06260dSRuslan Ermilov_kldxref: 251be1d673dSRuslan Ermilov @if type kldxref >/dev/null 2>&1; then \ 252be1d673dSRuslan Ermilov ${ECHO} kldxref ${DESTDIR}${KMODDIR}; \ 253be1d673dSRuslan Ermilov kldxref ${DESTDIR}${KMODDIR}; \ 254be1d673dSRuslan Ermilov fi 255505222d3SPeter Wemm.endif 2562cbc81ffSRuslan Ermilov.endif 2572b06260dSRuslan Ermilov.endif !target(realinstall) 258639a2e50SGarrett Wollman 2592b06260dSRuslan Ermilov.endif !target(install) 260639a2e50SGarrett Wollman 261639a2e50SGarrett Wollman.if !target(load) 2629a8631b3SWarner Loshload: ${PROG} 2631f089616SRuslan Ermilov ${KMODLOAD} -v ${.OBJDIR}/${PROG} 264639a2e50SGarrett Wollman.endif 265639a2e50SGarrett Wollman 266639a2e50SGarrett Wollman.if !target(unload) 267fe3cac87SNick Hibmaunload: 2681f089616SRuslan Ermilov ${KMODUNLOAD} -v ${PROG} 26908a04a89SPeter Wemm.endif 2701aa57be3SGarrett Wollman 2716b1bb559SWarner Losh.if defined(KERNBUILDDIR) 2726b1bb559SWarner Losh.PATH: ${KERNBUILDDIR} 2736b1bb559SWarner LoshCFLAGS+= -I${KERNBUILDDIR} 2746b1bb559SWarner Losh.for _src in ${SRCS:Mopt_*.h} 2756b1bb559SWarner LoshCLEANFILES+= ${_src} 2766b1bb559SWarner Losh.if !target(${_src}) 2776b1bb559SWarner Losh${_src}: 27831e81ae4SJoerg Wunsch ln -s ${KERNBUILDDIR}/${_src} ${.TARGET} 2796b1bb559SWarner Losh.endif 2806b1bb559SWarner Losh.endfor 2816b1bb559SWarner Losh.else 2824fea6704SBruce Evans.for _src in ${SRCS:Mopt_*.h} 2834fea6704SBruce EvansCLEANFILES+= ${_src} 2844fea6704SBruce Evans.if !target(${_src}) 2854fea6704SBruce Evans${_src}: 2864fea6704SBruce Evans touch ${.TARGET} 2874fea6704SBruce Evans.endif 2884fea6704SBruce Evans.endfor 2896b1bb559SWarner Losh.endif 2904fea6704SBruce Evans 291268597acSMarcel MoolenaarMFILES?= dev/acpica/acpi_if.m dev/eisa/eisa_if.m dev/iicbus/iicbb_if.m \ 292268597acSMarcel Moolenaar dev/iicbus/iicbus_if.m dev/mii/miibus_if.m dev/ofw/ofw_bus_if.m \ 2937e820aaaSMike Smith dev/pccard/card_if.m dev/pccard/power_if.m dev/pci/pci_if.m \ 2947e820aaaSMike Smith dev/pci/pcib_if.m dev/ppbus/ppbus_if.m dev/smbus/smbus_if.m \ 295268597acSMarcel Moolenaar dev/sound/pcm/ac97_if.m dev/sound/pcm/channel_if.m \ 296268597acSMarcel Moolenaar dev/sound/pcm/feeder_if.m dev/sound/pcm/mixer_if.m dev/uart/uart_if.m \ 297268597acSMarcel Moolenaar dev/usb/usb_if.m isa/isa_if.m kern/bus_if.m kern/device_if.m \ 298268597acSMarcel Moolenaar libkern/iconv_converter_if.m opencrypto/crypto_if.m \ 299268597acSMarcel Moolenaar pc98/pc98/canbus_if.m pci/agp_if.m sparc64/pci/ofw_pci_if.m 3007fecffecSDoug Rabson 3017fecffecSDoug Rabson.for _srcsrc in ${MFILES} 3024fea6704SBruce Evans.for _ext in c h 3034fea6704SBruce Evans.for _src in ${SRCS:M${_srcsrc:T:R}.${_ext}} 3044fea6704SBruce EvansCLEANFILES+= ${_src} 3054fea6704SBruce Evans.if !target(${_src}) 306f3cc9575SWarner Losh.if !exists(@) 3074fea6704SBruce Evans${_src}: @ 308f3cc9575SWarner Losh.endif 3094fea6704SBruce Evans.if exists(@) 3109fa411aeSDavid E. O'Brien${_src}: @/tools/makeobjops.awk @/${_srcsrc} 3114fea6704SBruce Evans.endif 3129fa411aeSDavid E. O'Brien ${AWK} -f @/tools/makeobjops.awk @/${_srcsrc} -${_ext} 3134fea6704SBruce Evans.endif 3144fea6704SBruce Evans.endfor # _src 3154fea6704SBruce Evans.endfor # _ext 3164fea6704SBruce Evans.endfor # _srcsrc 3174fea6704SBruce Evans 3189029b644SPeter Wemm.for _ext in c h 3199029b644SPeter Wemm.if ${SRCS:Mvnode_if.${_ext}} != "" 3209029b644SPeter WemmCLEANFILES+= vnode_if.${_ext} 321f3cc9575SWarner Losh.if !exists(@) 3229029b644SPeter Wemmvnode_if.${_ext}: @ 323f3cc9575SWarner Losh.endif 3244fea6704SBruce Evans.if exists(@) 325b7bbb709SDavid E. O'Brienvnode_if.${_ext}: @/tools/vnode_if.awk @/kern/vnode_if.src 3264fea6704SBruce Evans.endif 327b7bbb709SDavid E. O'Brien ${AWK} -f @/tools/vnode_if.awk @/kern/vnode_if.src -${_ext} 3284fea6704SBruce Evans.endif 3299029b644SPeter Wemm.endfor 3301aa57be3SGarrett Wollman 331dba6dd17SWarner Losh.for _i in mii pccard usb 332dba6dd17SWarner Losh.if ${SRCS:M${_i}devs.h} != "" 333dba6dd17SWarner LoshCLEANFILES+= ${_i}devs.h 334743d0f66SRuslan Ermilov_i= ${_i:Musb} 335743d0f66SRuslan Ermilov.if !empty(_i) 336743d0f66SRuslan ErmilovCLEANFILES+= ${_i}devs_data.h 337743d0f66SRuslan Ermilov.endif 3382d3ce713SDavid E. O'Brien.if !exists(@) 339dba6dd17SWarner Losh${_i}devs.h: @ 3402d3ce713SDavid E. O'Brien.endif 3412d3ce713SDavid E. O'Brien.if exists(@) 342dba6dd17SWarner Losh${_i}devs.h: @/tools/${_i}devs2h.awk @/dev/${_i}/${_i}devs 3432d3ce713SDavid E. O'Brien.endif 344dba6dd17SWarner Losh ${AWK} -f @/tools/${_i}devs2h.awk @/dev/${_i}/${_i}devs 3452d3ce713SDavid E. O'Brien.endif 346dba6dd17SWarner Losh.endfor # _i 3472d3ce713SDavid E. O'Brien 348684c1c1dSNate Lawson.if ${SRCS:Macpi_quirks.h} != "" 349684c1c1dSNate LawsonCLEANFILES+= acpi_quirks.h 350684c1c1dSNate Lawson.if !exists(@) 351684c1c1dSNate Lawsonacpi_quirks.h: @ 352684c1c1dSNate Lawson.endif 353684c1c1dSNate Lawson.if exists(@) 354684c1c1dSNate Lawsonacpi_quirks.h: @/tools/acpi_quirks2h.awk @/dev/acpica/acpi_quirks 355684c1c1dSNate Lawson.endif 356684c1c1dSNate Lawson ${AWK} -f @/tools/acpi_quirks2h.awk @/dev/acpica/acpi_quirks 357684c1c1dSNate Lawson.endif 358684c1c1dSNate Lawson 359766f7d6eSMark Murraylint: ${SRCS} 360bbb467cdSRuslan Ermilov ${LINT} ${LINTKERNFLAGS} ${CFLAGS:M-[DILU]*} ${.ALLSRC:M*.c} 361766f7d6eSMark Murray 36268e00b92SJordan K. Hubbard.include <bsd.dep.mk> 36347da63c3SBruce Evans 364f2bffe0fSRuslan Ermilov.if !exists(${.OBJDIR}/${DEPENDFILE}) 365589d9341SBruce Evans${OBJS}: ${SRCS:M*.h} 36647da63c3SBruce Evans.endif 36747da63c3SBruce Evans 368afba897fSBruce Evans.include <bsd.obj.mk> 369ddc474a8SRuslan Ermilov.include "kern.mk" 370