1# From: @(#)bsd.prog.mk 5.26 (Berkeley) 6/25/91
2# $FreeBSD: head/sys/conf/kmod.mk 145404 2005-04-22 17:39:58Z ru $
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.
--- 315 unchanged lines hidden (view full) ---
326${_src}: @/tools/makeobjops.awk @/${_srcsrc}
327.endif
328 ${AWK} -f @/tools/makeobjops.awk @/${_srcsrc} -${_ext}
329.endif
330.endfor # _src
331.endfor # _ext
332.endfor # _srcsrc
333
334.if ${SRCS:Mvnode_if.c} != ""
335CLEANFILES+= vnode_if.c
336.if !exists(@)
337vnode_if.c: @
338.else
339vnode_if.c: @/tools/vnode_if.awk @/kern/vnode_if.src
340.endif
341 ${AWK} -f @/tools/vnode_if.awk @/kern/vnode_if.src -c
342.endif
343
344.if ${SRCS:Mvnode_if.h} != ""
345CLEANFILES+= vnode_if.h vnode_if_newproto.h vnode_if_typedef.h
346.if !exists(@)
347vnode_if.h vnode_if_newproto.h vnode_if_typedef.h: @
348.else
349vnode_if.h vnode_if_newproto.h vnode_if_typedef.h: @/tools/vnode_if.awk \
350 @/kern/vnode_if.src
351.endif
352vnode_if.h: vnode_if_newproto.h vnode_if_typedef.h
353 ${AWK} -f @/tools/vnode_if.awk @/kern/vnode_if.src -h
354vnode_if_newproto.h:
355 ${AWK} -f @/tools/vnode_if.awk @/kern/vnode_if.src -p
356vnode_if_typedef.h:
357 ${AWK} -f @/tools/vnode_if.awk @/kern/vnode_if.src -q
358.endif
359
360.for _i in mii pccard
361.if ${SRCS:M${_i}devs.h} != ""
362CLEANFILES+= ${_i}devs.h
363.if !exists(@)
364${_i}devs.h: @
365.else
366${_i}devs.h: @/tools/${_i}devs2h.awk @/dev/${_i}/${_i}devs
367.endif
368 ${AWK} -f @/tools/${_i}devs2h.awk @/dev/${_i}/${_i}devs
369.endif
370.endfor # _i
371
372.if ${SRCS:Musbdevs.h} != ""
373CLEANFILES+= usbdevs.h
374.if !exists(@)
375usbdevs.h: @
376.else
377usbdevs.h: @/tools/usbdevs2h.awk @/dev/usb/usbdevs
378.endif
379 ${AWK} -f @/tools/usbdevs2h.awk @/dev/usb/usbdevs -h
380.endif
381
382.if ${SRCS:Musbdevs_data.h} != ""
383CLEANFILES+= usbdevs_data.h
384.if !exists(@)
385usbdevs_data.h: @
386.else
387usbdevs_data.h: @/tools/usbdevs2h.awk @/dev/usb/usbdevs
388.endif
389 ${AWK} -f @/tools/usbdevs2h.awk @/dev/usb/usbdevs -d
390.endif
391
392.if ${SRCS:Macpi_quirks.h} != ""
393CLEANFILES+= acpi_quirks.h
394.if !exists(@)
395acpi_quirks.h: @
396.else
397acpi_quirks.h: @/tools/acpi_quirks2h.awk @/dev/acpica/acpi_quirks
398.endif
399 ${AWK} -f @/tools/acpi_quirks2h.awk @/dev/acpica/acpi_quirks
400.endif
401
402.if ${SRCS:Massym.s} != ""
403CLEANFILES+= assym.s genassym.o
404assym.s: genassym.o
405.if !exists(@)
406assym.s: @
407.else
408assym.s: @/kern/genassym.sh
409.endif
410 sh @/kern/genassym.sh genassym.o > ${.TARGET}
--- 16 unchanged lines hidden ---
2# $FreeBSD: head/sys/conf/kmod.mk 145404 2005-04-22 17:39:58Z ru $
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.
--- 315 unchanged lines hidden (view full) ---
326${_src}: @/tools/makeobjops.awk @/${_srcsrc}
327.endif
328 ${AWK} -f @/tools/makeobjops.awk @/${_srcsrc} -${_ext}
329.endif
330.endfor # _src
331.endfor # _ext
332.endfor # _srcsrc
333
334.if ${SRCS:Mvnode_if.c} != ""
335CLEANFILES+= vnode_if.c
336.if !exists(@)
337vnode_if.c: @
338.else
339vnode_if.c: @/tools/vnode_if.awk @/kern/vnode_if.src
340.endif
341 ${AWK} -f @/tools/vnode_if.awk @/kern/vnode_if.src -c
342.endif
343
344.if ${SRCS:Mvnode_if.h} != ""
345CLEANFILES+= vnode_if.h vnode_if_newproto.h vnode_if_typedef.h
346.if !exists(@)
347vnode_if.h vnode_if_newproto.h vnode_if_typedef.h: @
348.else
349vnode_if.h vnode_if_newproto.h vnode_if_typedef.h: @/tools/vnode_if.awk \
350 @/kern/vnode_if.src
351.endif
352vnode_if.h: vnode_if_newproto.h vnode_if_typedef.h
353 ${AWK} -f @/tools/vnode_if.awk @/kern/vnode_if.src -h
354vnode_if_newproto.h:
355 ${AWK} -f @/tools/vnode_if.awk @/kern/vnode_if.src -p
356vnode_if_typedef.h:
357 ${AWK} -f @/tools/vnode_if.awk @/kern/vnode_if.src -q
358.endif
359
360.for _i in mii pccard
361.if ${SRCS:M${_i}devs.h} != ""
362CLEANFILES+= ${_i}devs.h
363.if !exists(@)
364${_i}devs.h: @
365.else
366${_i}devs.h: @/tools/${_i}devs2h.awk @/dev/${_i}/${_i}devs
367.endif
368 ${AWK} -f @/tools/${_i}devs2h.awk @/dev/${_i}/${_i}devs
369.endif
370.endfor # _i
371
372.if ${SRCS:Musbdevs.h} != ""
373CLEANFILES+= usbdevs.h
374.if !exists(@)
375usbdevs.h: @
376.else
377usbdevs.h: @/tools/usbdevs2h.awk @/dev/usb/usbdevs
378.endif
379 ${AWK} -f @/tools/usbdevs2h.awk @/dev/usb/usbdevs -h
380.endif
381
382.if ${SRCS:Musbdevs_data.h} != ""
383CLEANFILES+= usbdevs_data.h
384.if !exists(@)
385usbdevs_data.h: @
386.else
387usbdevs_data.h: @/tools/usbdevs2h.awk @/dev/usb/usbdevs
388.endif
389 ${AWK} -f @/tools/usbdevs2h.awk @/dev/usb/usbdevs -d
390.endif
391
392.if ${SRCS:Macpi_quirks.h} != ""
393CLEANFILES+= acpi_quirks.h
394.if !exists(@)
395acpi_quirks.h: @
396.else
397acpi_quirks.h: @/tools/acpi_quirks2h.awk @/dev/acpica/acpi_quirks
398.endif
399 ${AWK} -f @/tools/acpi_quirks2h.awk @/dev/acpica/acpi_quirks
400.endif
401
402.if ${SRCS:Massym.s} != ""
403CLEANFILES+= assym.s genassym.o
404assym.s: genassym.o
405.if !exists(@)
406assym.s: @
407.else
408assym.s: @/kern/genassym.sh
409.endif
410 sh @/kern/genassym.sh genassym.o > ${.TARGET}
--- 16 unchanged lines hidden ---