Removed special rules for building and cleaning device interface files

and empty options files.  The rules are now generated automatically in
bsd.kmod.mk.  Cleaned up related things ($S and ${CLEANFILES}).
This commit is contained in:
Bruce Evans 1999-11-28 18:53:47 +00:00
parent bc019cca2f
commit 6f940b3847
61 changed files with 45 additions and 619 deletions

View File

@ -1,29 +1,16 @@
# $FreeBSD$
S = ${.CURDIR}/../..
.PATH: $S/dev/aha
.PATH: ${.CURDIR}/../../dev/aha
KMOD = aha
SRCS = aha.c aha_isa.c ahareg.h opt_cam.h device_if.h bus_if.h aha.h \
opt_scsi.h isa_if.h
CLEANFILES += aha.h device_if.h bus_if.h opt_cam.h opt_scsi.h isa_if.h
CLEANFILES = aha.h
CFLAGS += ${DEBUG_FLAGS}
aha.h:
echo "#define NAHA 1" > aha.h
opt_cam.h:
touch opt_cam.h
opt_scsi.h:
echo "#define SCSI_DELAY 15000" > opt_scsi.h
device_if.h: $S/kern/makedevops.pl $S/kern/device_if.m
perl $S/kern/makedevops.pl -h $S/kern/device_if.m
bus_if.h: $S/kern/makedevops.pl $S/kern/bus_if.m
perl $S/kern/makedevops.pl -h $S/kern/bus_if.m
isa_if.h: $S/kern/makedevops.pl $S/isa/isa_if.m
perl $S/kern/makedevops.pl -h $S/isa/isa_if.m
.include <bsd.kmod.mk>

View File

@ -1,28 +1,10 @@
# $FreeBSD$
S = ${.CURDIR}/../..
.PATH: $S/pci
.PATH: ${.CURDIR}/../../pci
KMOD = al
SRCS = if_al.c opt_bdg.h device_if.h bus_if.h pci_if.h
SRCS += miibus_if.h
CLEANFILES += opt_bdg.h device_if.h bus_if.h pci_if.h
CLEANFILES += miibus_if.h
CFLAGS += ${DEBUG_FLAGS}
KMODDEPS = miibus
opt_bdg.h:
touch opt_bdg.h
device_if.h: $S/kern/makedevops.pl $S/kern/device_if.m
perl $S/kern/makedevops.pl -h $S/kern/device_if.m
bus_if.h: $S/kern/makedevops.pl $S/kern/bus_if.m
perl $S/kern/makedevops.pl -h $S/kern/bus_if.m
pci_if.h: $S/kern/makedevops.pl $S/pci/pci_if.m
perl $S/kern/makedevops.pl -h $S/pci/pci_if.m
miibus_if.h: $S/kern/makedevops.pl $S/dev/mii/miibus_if.m
perl $S/kern/makedevops.pl -h $S/dev/mii/miibus_if.m
.include <bsd.kmod.mk>

View File

@ -1,22 +1,12 @@
# $FreeBSD$
S = ${.CURDIR}/../..
.PATH: $S/dev/amr
.PATH: ${.CURDIR}/../../dev/amr
KMOD = amr
SRCS = amr.c amr_pci.c amr_disk.c device_if.h bus_if.h pci_if.h
CLEANFILES += amr.h device_if.h bus_if.h pci_if.h
CLEANFILES = amr.h
CFLAGS += ${DEBUG_FLAGS}
amr.h:
echo "#define NAMR 1" > amr.h
device_if.h: $S/kern/makedevops.pl $S/kern/device_if.m
perl $S/kern/makedevops.pl -h $S/kern/device_if.m
bus_if.h: $S/kern/makedevops.pl $S/kern/bus_if.m
perl $S/kern/makedevops.pl -h $S/kern/bus_if.m
pci_if.h: $S/kern/makedevops.pl $S/pci/pci_if.m
perl $S/kern/makedevops.pl -h $S/pci/pci_if.m
.include <bsd.kmod.mk>

View File

@ -5,7 +5,7 @@ KMOD = atapi
SRCS = atapi.c wdc.h opt_atapi.h #wcd.h
NOMAN =
CFLAGS += -DATAPI_MODULE
CLEANFILES += wdc.h wcd.h opt_atapi.h
CLEANFILES = wcd.h wdc.h
EXPORT_SYMS = _atapi_mod _atapi_debug_ptr _atapi_intr_ptr \
_atapi_request_callback_ptr _atapi_request_immediate_ptr \
_atapi_request_wait_ptr _atapi_start_ptr

View File

@ -1,22 +1,8 @@
# $FreeBSD$
S = ${.CURDIR}/../..
.PATH: $S/pci
.PATH: ${.CURDIR}/../../pci
KMOD = if_ax
SRCS = if_ax.c opt_bdg.h device_if.h bus_if.h pci_if.h
CLEANFILES += opt_bdg.h device_if.h bus_if.h pci_if.h
CFLAGS += ${DEBUG_FLAGS}
opt_bdg.h:
touch opt_bdg.h
device_if.h: $S/kern/makedevops.pl $S/kern/device_if.m
perl $S/kern/makedevops.pl -h $S/kern/device_if.m
bus_if.h: $S/kern/makedevops.pl $S/kern/bus_if.m
perl $S/kern/makedevops.pl -h $S/kern/bus_if.m
pci_if.h: $S/kern/makedevops.pl $S/pci/pci_if.m
perl $S/kern/makedevops.pl -h $S/pci/pci_if.m
.include <bsd.kmod.mk>

View File

@ -11,14 +11,12 @@
# $FreeBSD$
S= ${.CURDIR}/../..
.PATH: $S/dev/bktr
.PATH: ${.CURDIR}/../../dev/bktr
KMOD= bktr
SRCS= bktr_core.c bktr_os.c bktr_audio.c bktr_tuner.c bktr_card.c \
bktr.h opt_devfs.h opt_bktr.h smbus.h bus_if.h device_if.h \
pci_if.h vnode_if.h
CLEANFILES += bktr.h opt_devfs.h opt_bktr.h smbus.h bus_if.h device_if.h \
pci_if.h vnode_if.h vnode_if.c
CLEANFILES= bktr.h smbus.h
bktr.h:
echo "#define NBKTR 1" > bktr.h
@ -28,19 +26,4 @@ bktr.h:
smbus.h:
echo "#define NSMBUS 0" > smbus.h
opt_devfs.h:
touch opt_devfs.h
opt_bktr.h:
touch opt_bktr.h
device_if.h: $S/kern/makedevops.pl $S/kern/device_if.m
perl $S/kern/makedevops.pl -h $S/kern/device_if.m
bus_if.h: $S/kern/makedevops.pl $S/kern/bus_if.m
perl $S/kern/makedevops.pl -h $S/kern/bus_if.m
pci_if.h: $S/kern/makedevops.pl $S/pci/pci_if.m
perl $S/kern/makedevops.pl -h $S/pci/pci_if.m
.include <bsd.kmod.mk>

View File

@ -1,17 +1,9 @@
# $FreeBSD$
S = ${.CURDIR}/../..
.PATH: ${.CURDIR}/../../dev/cardbus
KMOD= cardbus
SRCS= cardbus.c \
device_if.h bus_if.h
CLEANFILES+= device_if.h bus_if.h
NOMAN=
device_if.h: $S/kern/makedevops.pl $S/kern/device_if.m
perl $S/kern/makedevops.pl -h $S/kern/device_if.m
bus_if.h: $S/kern/makedevops.pl $S/kern/bus_if.m
perl $S/kern/makedevops.pl -h $S/kern/bus_if.m
.include <bsd.kmod.mk>

View File

@ -1,17 +1,9 @@
# $FreeBSD$
S = ${.CURDIR}/../..
.PATH: ${.CURDIR}/../../pci
KMOD= cbb
SRCS= pccbb.c \
device_if.h bus_if.h
CLEANFILES+= device_if.h bus_if.h
NOMAN=
device_if.h: $S/kern/makedevops.pl $S/kern/device_if.m
perl $S/kern/makedevops.pl -h $S/kern/device_if.m
bus_if.h: $S/kern/makedevops.pl $S/kern/bus_if.m
perl $S/kern/makedevops.pl -h $S/kern/bus_if.m
.include <bsd.kmod.mk>

View File

@ -6,7 +6,7 @@ SRCS= ccd.c ccd.h vnode_if.h
NOMAN=
NCCD?= 4
CLEANFILES+= ccd.h vnode_if.h vnode_if.c
CLEANFILES= ccd.h
ccd.h:
echo "#define NCCD ${NCCD}" > ccd.h

View File

@ -7,10 +7,7 @@ SRCS= coda_fbsd.c coda_namecache.c coda_psdev.c coda_subr.c \
NOMAN=
VFS_KLD=
CLEANFILES+= vcoda.h opt_devfs.h
opt_devfs.h:
touch opt_devfs.h
CLEANFILES= vcoda.h
vcoda.h:
echo "#define NVCODA 4" > vcoda.h

View File

@ -4,7 +4,6 @@
KMOD= ibcs2_coff
SRCS= imgact_coff.c vnode_if.h
NOMAN=
CLEANFILES+= vnode_if.h vnode_if.c
CFLAGS+= -DCOMPAT_IBCS2
KMODDEPS= ibcs2

View File

@ -1,28 +1,10 @@
# $FreeBSD$
S = ${.CURDIR}/../..
.PATH: $S/pci
.PATH: ${.CURDIR}/../../pci
KMOD = if_dm
SRCS = if_dm.c opt_bdg.h device_if.h bus_if.h pci_if.h
SRCS += miibus_if.h
CLEANFILES += opt_bdg.h device_if.h bus_if.h pci_if.h
CLEANFILES += miibus_if.h
CFLAGS += ${DEBUG_FLAGS}
KMODDEPS = miibus
opt_bdg.h:
touch opt_bdg.h
device_if.h: $S/kern/makedevops.pl $S/kern/device_if.m
perl $S/kern/makedevops.pl -h $S/kern/device_if.m
bus_if.h: $S/kern/makedevops.pl $S/kern/bus_if.m
perl $S/kern/makedevops.pl -h $S/kern/bus_if.m
pci_if.h: $S/kern/makedevops.pl $S/pci/pci_if.m
perl $S/kern/makedevops.pl -h $S/pci/pci_if.m
miibus_if.h: $S/kern/makedevops.pl $S/dev/mii/miibus_if.m
perl $S/kern/makedevops.pl -h $S/dev/mii/miibus_if.m
.include <bsd.kmod.mk>

View File

@ -1,22 +1,8 @@
# $FreeBSD$
S = ${.CURDIR}/../..
.PATH: $S/pci
.PATH: ${.CURDIR}/../../pci
KMOD = if_fxp
SRCS = if_fxp.c opt_bdg.h device_if.h bus_if.h pci_if.h
CLEANFILES += opt_bdg.h device_if.h bus_if.h pci_if.h
CFLAGS += ${DEBUG_FLAGS}
opt_bdg.h:
touch opt_bdg.h
device_if.h: $S/kern/makedevops.pl $S/kern/device_if.m
perl $S/kern/makedevops.pl -h $S/kern/device_if.m
bus_if.h: $S/kern/makedevops.pl $S/kern/bus_if.m
perl $S/kern/makedevops.pl -h $S/kern/bus_if.m
pci_if.h: $S/kern/makedevops.pl $S/pci/pci_if.m
perl $S/kern/makedevops.pl -h $S/pci/pci_if.m
.include <bsd.kmod.mk>

View File

@ -11,12 +11,8 @@ SRCS= ibcs2_errno.c ibcs2_ipc.c ibcs2_stat.c ibcs2_misc.c \
MAN8= ibcs2.8
CFLAGS+= -DCOMPAT_IBCS2
CLEANFILES+= vnode_if.h vnode_if.c opt_spx_hack.h
EXPORT_SYMS= _ibcs2_mod _ibcs2_emul_path _ibcs2_svr3_sysvec
opt_spx_hack.h:
touch opt_spx_hack.h
afterinstall:
${INSTALL} -c -o ${BINOWN} -g ${BINGRP} -m ${BINMODE} \
${.CURDIR}/ibcs2.sh ${DESTDIR}/usr/sbin/ibcs2

View File

@ -8,7 +8,6 @@ NOMAN=
NBPF?= 1
CFLAGS+= ${PROTOS}
CLEANFILES+= opt_inet.h
opt_inet.h:
echo "#define INET 1" > opt_inet.h

View File

@ -5,7 +5,6 @@ KMOD= if_ppp
SRCS= if_ppp.c ppp_tty.c slcompress.c \
ppp.h opt_inet.h opt_ipx.h opt_ppp.h vnode_if.h
NOMAN=
CLEANFILES+= vnode_if.c vnode_if.h
NPPP?= 2
PPP_BSDCOMP?= 1 # 0/1
@ -23,7 +22,7 @@ SRCS+= bsd_comp.c
SRCS+= ppp_deflate.c zlib.c
.endif
CLEANFILES+= opt_inet.h opt_ipx.h opt_ppp.h ppp.h
CLEANFILES= ppp.h
ppp.h:
echo "#define NPPP ${NPPP}" > ppp.h

View File

@ -9,7 +9,7 @@ NSL?= 2
PROTOS?= -DINET
CFLAGS+= ${PROTOS}
CLEANFILES+= opt_inet.h sl.h
CLEANFILES= sl.h
opt_inet.h:
echo "#define INET 1" > opt_inet.h

View File

@ -4,16 +4,11 @@
KMOD= if_tun
SRCS= if_tun.c opt_devfs.h opt_inet.h vnode_if.h
NOMAN=
CLEANFILES+= vnode_if.h vnode_if.c
NBPF?= 1
NTUN?= 2
CFLAGS+= ${PROTOS}
CLEANFILES+= opt_devfs.h opt_inet.h
opt_devfs.h:
touch opt_devfs.h
opt_inet.h:
echo "#define INET 1" > opt_inet.h

View File

@ -6,11 +6,6 @@ SRCS = joy.c opt_devfs.h
MAN8 = joy.8
CFLAGS += -DJOY_MODULE
CLEANFILES += opt_devfs.h
opt_devfs.h:
touch opt_devfs.h
afterinstall:
${INSTALL} -c -o ${BINOWN} -g ${BINGRP} -m ${BINMODE} \

View File

@ -14,8 +14,7 @@ MAN8= linux.8
# CFLAGS+= -DDEBUG
EXPORT_SYMS=_linux_mod
CLEANFILES+= vnode_if.h vnode_if.c linux_genassym.o linux_genassym \
linux_assym.h opt_compat.h opt_linux.h opt_vmpage.h
CLEANFILES= linux_assym.h linux_genassym linux_genassym.o
build-tools: linux_genassym
@ -35,9 +34,6 @@ linux_genassym: linux_genassym.o
opt_compat.h:
echo "#define COMPAT_43 1" > opt_compat.h
opt_linux.h opt_vmpage.h:
touch ${.TARGET}
afterinstall:
${INSTALL} -c -o ${BINOWN} -g ${BINGRP} -m ${BINMODE} \
${.CURDIR}/linux.sh ${DESTDIR}/usr/sbin/linux

View File

@ -4,14 +4,5 @@
KMOD= md
SRCS= md.c opt_mfs.h opt_md.h
NOMAN=
CLEANFILES += opt_mfs.h opt_md.h
opt_md.h:
touch opt_md.h
opt_mfs.h:
touch opt_mfs.h
.include <bsd.kmod.mk>

View File

@ -5,9 +5,5 @@ KMOD= mfs
SRCS= mfs_vfsops.c mfs_vnops.c opt_mfs.h
NOMAN=
VFS_KLD=
CLEANFILES+= opt_mfs.h
opt_mfs.h:
touch ${.TARGET}
.include <bsd.kmod.mk>

View File

@ -1,24 +1,10 @@
# $FreeBSD$
S = ${.CURDIR}/../..
.PATH: $S/dev/mii
.PATH: ${.CURDIR}/../../dev/mii
KMOD = miibus
SRCS = mii.c mii_physubr.c ukphy.c ukphy_subr.c bus_if.h
SRCS += miibus_if.h device_if.h miibus_if.c exphy.c nsphy.c
SRCS += mlphy.c tlphy.c rlphy.c amphy.c mxphy.c
CLEANFILES += device_if.h bus_if.h miibus_if.h miibus_if.c
CFLAGS += ${DEBUG_FLAGS}
device_if.h: $S/kern/makedevops.pl $S/kern/device_if.m
perl $S/kern/makedevops.pl -h $S/kern/device_if.m
bus_if.h: $S/kern/makedevops.pl $S/kern/bus_if.m
perl $S/kern/makedevops.pl -h $S/kern/bus_if.m
miibus_if.h: $S/kern/makedevops.pl $S/dev/mii/miibus_if.m
perl $S/kern/makedevops.pl -h $S/dev/mii/miibus_if.m
miibus_if.c: $S/kern/makedevops.pl $S/dev/mii/miibus_if.m
perl $S/kern/makedevops.pl -c $S/dev/mii/miibus_if.m
.include <bsd.kmod.mk>

View File

@ -1,22 +1,12 @@
# $FreeBSD$
S = ${.CURDIR}/../..
.PATH: $S/dev/mlx
.PATH: ${.CURDIR}/../../dev/mlx
KMOD = mlx
SRCS = mlx.c mlx_pci.c mlx_disk.c device_if.h bus_if.h pci_if.h
CLEANFILES += mlx.h device_if.h bus_if.h pci_if.h
CLEANFILES = mlx.h
CFLAGS += ${DEBUG_FLAGS}
mlx.h:
echo "#define NMLX 1" > mlx.h
device_if.h: $S/kern/makedevops.pl $S/kern/device_if.m
perl $S/kern/makedevops.pl -h $S/kern/device_if.m
bus_if.h: $S/kern/makedevops.pl $S/kern/bus_if.m
perl $S/kern/makedevops.pl -h $S/kern/bus_if.m
pci_if.h: $S/kern/makedevops.pl $S/pci/pci_if.m
perl $S/kern/makedevops.pl -h $S/pci/pci_if.m
.include <bsd.kmod.mk>

View File

@ -1,25 +1,8 @@
# $FreeBSD$
S = ${.CURDIR}/../..
.PATH: $S/pci
.PATH: ${.CURDIR}/../../pci
KMOD = if_mx
SRCS = if_mx.c opt_bdg.h device_if.h bus_if.h pci_if.h miibus_if.h
CLEANFILES += opt_bdg.h device_if.h bus_if.h pci_if.h miibus_if.h
CFLAGS += ${DEBUG_FLAGS}
opt_bdg.h:
touch opt_bdg.h
device_if.h: $S/kern/makedevops.pl $S/kern/device_if.m
perl $S/kern/makedevops.pl -h $S/kern/device_if.m
bus_if.h: $S/kern/makedevops.pl $S/kern/bus_if.m
perl $S/kern/makedevops.pl -h $S/kern/bus_if.m
pci_if.h: $S/kern/makedevops.pl $S/pci/pci_if.m
perl $S/kern/makedevops.pl -h $S/pci/pci_if.m
miibus_if.h: $S/kern/makedevops.pl $S/dev/mii/miibus_if.m
perl $S/kern/makedevops.pl -h $S/dev/mii/miibus_if.m
.include <bsd.kmod.mk>

View File

@ -19,12 +19,8 @@ CFLAGS+= -DNCPBURST
.endif
NOMAN=
CLEANFILES= opt_ncp.h opt_inet.h opt_ipx.h
CFLAGS+= -DNCP
opt_ncp.h:
touch ${.TARGET}
opt_inet.h:
touch ${.TARGET}
.if ${NCP_INET} > 0

View File

@ -12,8 +12,6 @@ IFACE_IPX?= 0 # 0/1 - requires IPX configured in kernel
CFLAGS+= ${PROTOS}
CLEANFILES+= opt_inet.h opt_atalk.h opt_ipx.h
opt_inet.h:
touch opt_inet.h
.if ${IFACE_INET} > 0

View File

@ -12,8 +12,6 @@ IFACE_IPX?= 0 # 0/1 - requires IPX configured in kernel
CFLAGS+= ${PROTOS}
CLEANFILES+= opt_inet.h opt_atalk.h opt_ipx.h
opt_inet.h:
touch opt_inet.h
.if ${IFACE_INET} > 0

View File

@ -9,7 +9,6 @@ NFS_INET?= 1 # 0/1 - requires INET to be configured in kernel
NOMAN=
VFS_KLD=
CFLAGS+= -DNFS
CLEANFILES= opt_inet.h opt_nfs.h opt_vmpage.h opt_posix.h opt_bootp.h
opt_inet.h:
touch ${.TARGET}
@ -17,7 +16,4 @@ opt_inet.h:
echo "#define INET 1" > ${.TARGET}
.endif
opt_nfs.h opt_vmpage.h opt_posix.h opt_bootp.h:
touch ${.TARGET}
.include <bsd.kmod.mk>

View File

@ -9,7 +9,6 @@ NFS_INET?= 1 # 0/1 - requires INET to be configured in kernel
NOMAN=
VFS_KLD=
CFLAGS+= -DNFS
CLEANFILES= opt_inet.h opt_nfs.h opt_vmpage.h opt_posix.h opt_bootp.h
opt_inet.h:
touch ${.TARGET}
@ -17,7 +16,4 @@ opt_inet.h:
echo "#define INET 1" > ${.TARGET}
.endif
opt_nfs.h opt_vmpage.h opt_posix.h opt_bootp.h:
touch ${.TARGET}
.include <bsd.kmod.mk>

View File

@ -9,7 +9,6 @@ NFS_INET?= 1 # 0/1 - requires INET to be configured in kernel
NOMAN=
VFS_KLD=
CFLAGS+= -DNFS
CLEANFILES= opt_inet.h opt_nfs.h opt_vmpage.h opt_posix.h opt_bootp.h
opt_inet.h:
touch ${.TARGET}
@ -17,7 +16,4 @@ opt_inet.h:
echo "#define INET 1" > ${.TARGET}
.endif
opt_nfs.h opt_vmpage.h opt_posix.h opt_bootp.h:
touch ${.TARGET}
.include <bsd.kmod.mk>

View File

@ -7,9 +7,5 @@ SRCS= ntfs_vfsops.c ntfs_vnops.c ntfs_subr.c ntfs_ihash.c \
NOMAN=
VFS_KLD=
CFLAGS+= -DNTFS
CLEANFILES= opt_vmpage.h
opt_vmpage.h:
touch ${.TARGET}
.include <bsd.kmod.mk>

View File

@ -10,8 +10,6 @@ SRCS= nwfs_node.c nwfs_ioctl.c nwfs_io.c nwfs_vfsops.c nwfs_vnops.c \
VFS_KLD=true
CLEANFILES= opt_ncp.h opt_nwfs.h opt_vmpage.h
NOMAN=true
CFLAGS+= -DNWFS
@ -23,9 +21,6 @@ CFLAGS+= -DVNPRINT
opt_ncp.h:
echo "#define NCP 1" > ${.TARGET}
opt_nwfs.h opt_vmpage.h:
touch ${.TARGET}
load: nwfs.ko
kldload ./nwfs.ko

View File

@ -1,20 +1,9 @@
# $FreeBSD$
S = ${.CURDIR}/../..
.PATH: ${.CURDIR}/../../dev/pccard
KMOD= pccard
SRCS= pccard.c pccard_cis.c pccard_cis_quirks.c \
device_if.h bus_if.h isa_if.h
CLEANFILES+= device_if.h bus_if.h isa_if.h
NOMAN=
device_if.h: $S/kern/makedevops.pl $S/kern/device_if.m
perl $S/kern/makedevops.pl -h $S/kern/device_if.m
bus_if.h: $S/kern/makedevops.pl $S/kern/bus_if.m
perl $S/kern/makedevops.pl -h $S/kern/bus_if.m
isa_if.h: $S/kern/makedevops.pl $S/isa/isa_if.m
perl $S/kern/makedevops.pl -h $S/isa/isa_if.m
.include <bsd.kmod.mk>

View File

@ -1,20 +1,9 @@
# $FreeBSD$
S = ${.CURDIR}/../..
.PATH: ${.CURDIR}/../../dev/pcic
KMOD= pcic
SRCS= i82365.c i82365_isa.c i82365_isasubr.c \
device_if.h bus_if.h isa_if.h
CLEANFILES+= device_if.h bus_if.h isa_if.h
NOMAN=
device_if.h: $S/kern/makedevops.pl $S/kern/device_if.m
perl $S/kern/makedevops.pl -h $S/kern/device_if.m
bus_if.h: $S/kern/makedevops.pl $S/kern/bus_if.m
perl $S/kern/makedevops.pl -h $S/kern/bus_if.m
isa_if.h: $S/kern/makedevops.pl $S/isa/isa_if.m
perl $S/kern/makedevops.pl -h $S/isa/isa_if.m
.include <bsd.kmod.mk>

View File

@ -1,22 +1,8 @@
# $FreeBSD$
S = ${.CURDIR}/../..
.PATH: $S/pci
.PATH: ${.CURDIR}/../../pci
KMOD = if_pn
SRCS = if_pn.c opt_bdg.h device_if.h bus_if.h pci_if.h
CLEANFILES += opt_bdg.h device_if.h bus_if.h pci_if.h
CFLAGS += ${DEBUG_FLAGS}
opt_bdg.h:
touch opt_bdg.h
device_if.h: $S/kern/makedevops.pl $S/kern/device_if.m
perl $S/kern/makedevops.pl -h $S/kern/device_if.m
bus_if.h: $S/kern/makedevops.pl $S/kern/bus_if.m
perl $S/kern/makedevops.pl -h $S/kern/bus_if.m
pci_if.h: $S/kern/makedevops.pl $S/pci/pci_if.m
perl $S/kern/makedevops.pl -h $S/pci/pci_if.m
.include <bsd.kmod.mk>

View File

@ -8,9 +8,5 @@ SRCS= opt_vmpage.h procfs_ctl.c procfs_map.c procfs_note.c procfs_rlimit.c \
NOMAN=
VFS_KLD=
CFLAGS+= -DPROCFS
CLEANFILES+= opt_vmpage.h
opt_vmpage.h:
touch ${.TARGET}
.include <bsd.kmod.mk>

View File

@ -1,29 +1,11 @@
# $FreeBSD$
S = ${.CURDIR}/../..
.PATH: $S/pci
.PATH: ${.CURDIR}/../../pci
KMOD = if_rl
SRCS = if_rl.c opt_bdg.h device_if.h bus_if.h pci_if.h
SRCS += miibus_if.h
CLEANFILES += opt_bdg.h device_if.h bus_if.h pci_if.h
CLEANFILES += miibus_if.h
KMODDEPS = miibus
CFLAGS += ${DEBUG_FLAGS}
opt_bdg.h:
touch opt_bdg.h
device_if.h: $S/kern/makedevops.pl $S/kern/device_if.m
perl $S/kern/makedevops.pl -h $S/kern/device_if.m
bus_if.h: $S/kern/makedevops.pl $S/kern/bus_if.m
perl $S/kern/makedevops.pl -h $S/kern/bus_if.m
pci_if.h: $S/kern/makedevops.pl $S/pci/pci_if.m
perl $S/kern/makedevops.pl -h $S/pci/pci_if.m
miibus_if.h: $S/kern/makedevops.pl $S/dev/mii/miibus_if.m
perl $S/kern/makedevops.pl -h $S/dev/mii/miibus_if.m
.include <bsd.kmod.mk>

View File

@ -1,29 +1,11 @@
# $FreeBSD$
S = ${.CURDIR}/../..
.PATH: $S/pci
.PATH: ${.CURDIR}/../../pci
KMOD = if_sf
SRCS = if_sf.c opt_bdg.h device_if.h bus_if.h pci_if.h
SRCS += miibus_if.h
CLEANFILES += opt_bdg.h device_if.h bus_if.h pci_if.h
CLEANFILES += miibus_if.h
KMODDEPS = miibus
CFLAGS += ${DEBUG_FLAGS}
opt_bdg.h:
touch opt_bdg.h
device_if.h: $S/kern/makedevops.pl $S/kern/device_if.m
perl $S/kern/makedevops.pl -h $S/kern/device_if.m
bus_if.h: $S/kern/makedevops.pl $S/kern/bus_if.m
perl $S/kern/makedevops.pl -h $S/kern/bus_if.m
pci_if.h: $S/kern/makedevops.pl $S/pci/pci_if.m
perl $S/kern/makedevops.pl -h $S/pci/pci_if.m
miibus_if.h: $S/kern/makedevops.pl $S/dev/mii/miibus_if.m
perl $S/kern/makedevops.pl -h $S/dev/mii/miibus_if.m
.include <bsd.kmod.mk>

View File

@ -1,28 +1,10 @@
# $FreeBSD$
S = ${.CURDIR}/../..
.PATH: $S/pci
.PATH: ${.CURDIR}/../../pci
KMOD = if_sis
SRCS = if_sis.c opt_bdg.h device_if.h bus_if.h pci_if.h
SRCS += miibus_if.h
CLEANFILES += opt_bdg.h device_if.h bus_if.h pci_if.h
CLEANFILES += miibus_if.h
CFLAGS += ${DEBUG_FLAGS}
KMODDEPS = miibus
opt_bdg.h:
touch opt_bdg.h
device_if.h: $S/kern/makedevops.pl $S/kern/device_if.m
perl $S/kern/makedevops.pl -h $S/kern/device_if.m
bus_if.h: $S/kern/makedevops.pl $S/kern/bus_if.m
perl $S/kern/makedevops.pl -h $S/kern/bus_if.m
pci_if.h: $S/kern/makedevops.pl $S/pci/pci_if.m
perl $S/kern/makedevops.pl -h $S/pci/pci_if.m
miibus_if.h: $S/kern/makedevops.pl $S/dev/mii/miibus_if.m
perl $S/kern/makedevops.pl -h $S/dev/mii/miibus_if.m
.include <bsd.kmod.mk>

View File

@ -1,22 +1,8 @@
# $FreeBSD$
S = ${.CURDIR}/../..
.PATH: $S/pci
.PATH: ${.CURDIR}/../../pci
KMOD = if_sk
SRCS = if_sk.c opt_bdg.h device_if.h bus_if.h pci_if.h
CLEANFILES += opt_bdg.h device_if.h bus_if.h pci_if.h
CFLAGS += ${DEBUG_FLAGS}
opt_bdg.h:
touch opt_bdg.h
device_if.h: $S/kern/makedevops.pl $S/kern/device_if.m
perl $S/kern/makedevops.pl -h $S/kern/device_if.m
bus_if.h: $S/kern/makedevops.pl $S/kern/bus_if.m
perl $S/kern/makedevops.pl -h $S/kern/bus_if.m
pci_if.h: $S/kern/makedevops.pl $S/pci/pci_if.m
perl $S/kern/makedevops.pl -h $S/pci/pci_if.m
.include <bsd.kmod.mk>

View File

@ -1,28 +1,10 @@
# $FreeBSD$
S = ${.CURDIR}/../..
.PATH: $S/pci
.PATH: ${.CURDIR}/../../pci
KMOD = if_ste
SRCS = if_ste.c opt_bdg.h device_if.h bus_if.h pci_if.h
SRCS += miibus_if.h
CLEANFILES += opt_bdg.h device_if.h bus_if.h pci_if.h
CLEANFILES += miibus_if.h
CFLAGS += ${DEBUG_FLAGS}
KMODDEPS = miibus
opt_bdg.h:
touch opt_bdg.h
device_if.h: $S/kern/makedevops.pl $S/kern/device_if.m
perl $S/kern/makedevops.pl -h $S/kern/device_if.m
bus_if.h: $S/kern/makedevops.pl $S/kern/bus_if.m
perl $S/kern/makedevops.pl -h $S/kern/bus_if.m
pci_if.h: $S/kern/makedevops.pl $S/pci/pci_if.m
perl $S/kern/makedevops.pl -h $S/pci/pci_if.m
miibus_if.h: $S/kern/makedevops.pl $S/dev/mii/miibus_if.m
perl $S/kern/makedevops.pl -h $S/dev/mii/miibus_if.m
.include <bsd.kmod.mk>

View File

@ -1,12 +1,11 @@
# $FreeBSD$
MAINTAINER = newton@atdot.dotat.org
SOURCE= ${.CURDIR}/../../dev/streams
.if defined(DEBUG)
CFLAGS+= -DDEBUG_SVR4
.endif
.PATH: ${SOURCE}
.PATH: ${.CURDIR}/../../dev/streams
KMOD= streams
SRCS= streams.c opt_streams.h opt_devfs.h
@ -14,12 +13,4 @@ NOMAN=
CFLAGS+= -O
CLEANFILES+= vnode_if.h vnode_if.c opt_streams.h opt_devfs.h
opt_streams.h:
@touch opt_streams.h
opt_devfs.h:
@touch opt_devfs.h
.include <bsd.kmod.mk>

View File

@ -19,8 +19,7 @@ CFLAGS+= -DDEBUG_SVR4
.endif
EXPORT_SYMS=_svr4_mod
CLEANFILES+= vnode_if.h vnode_if.c svr4_genassym.o svr4_genassym \
svr4_assym.h opt_compat.h opt_vmpage.h
CLEANFILES= svr4_assym.h svr4_genassym svr4_genassym.o
build-tools: svr4_genassym
@ -40,9 +39,6 @@ svr4_genassym: svr4_genassym.o
opt_compat.h:
echo "#define COMPAT_43 1" > opt_compat.h
opt_vmpage.h:
touch opt_vmpage.h
afterinstall:
${INSTALL} -c -o ${BINOWN} -g ${BINGRP} -m ${BINMODE} \
${.CURDIR}/svr4.sh ${DESTDIR}/usr/sbin/svr4

View File

@ -1,25 +1,12 @@
# $FreeBSD$
S = ${.CURDIR}/../..
.PATH: $S/pci
.PATH: ${.CURDIR}/../../pci
KMOD = if_ti
SRCS = if_ti.c opt_bdg.h vlan.h device_if.h bus_if.h pci_if.h
CLEANFILES += opt_bdg.h vlan.h device_if.h bus_if.h pci_if.h
CLEANFILES = vlan.h
CFLAGS += ${DEBUG_FLAGS}
opt_bdg.h:
touch opt_bdg.h
vlan.h:
touch vlan.h
device_if.h: $S/kern/makedevops.pl $S/kern/device_if.m
perl $S/kern/makedevops.pl -h $S/kern/device_if.m
bus_if.h: $S/kern/makedevops.pl $S/kern/bus_if.m
perl $S/kern/makedevops.pl -h $S/kern/bus_if.m
pci_if.h: $S/kern/makedevops.pl $S/pci/pci_if.m
perl $S/kern/makedevops.pl -h $S/pci/pci_if.m
.include <bsd.kmod.mk>

View File

@ -1,28 +1,10 @@
# $FreeBSD$
S = ${.CURDIR}/../..
.PATH: $S/pci
.PATH: ${.CURDIR}/../../pci
KMOD = if_tl
SRCS = if_tl.c opt_bdg.h device_if.h bus_if.h pci_if.h
SRCS += miibus_if.h
CLEANFILES += opt_bdg.h device_if.h bus_if.h pci_if.h
CLEANFILES += miibus_if.h
CFLAGS += ${DEBUG_FLAGS}
KMODDEPS = miibus
opt_bdg.h:
touch opt_bdg.h
device_if.h: $S/kern/makedevops.pl $S/kern/device_if.m
perl $S/kern/makedevops.pl -h $S/kern/device_if.m
bus_if.h: $S/kern/makedevops.pl $S/kern/bus_if.m
perl $S/kern/makedevops.pl -h $S/kern/bus_if.m
pci_if.h: $S/kern/makedevops.pl $S/pci/pci_if.m
perl $S/kern/makedevops.pl -h $S/pci/pci_if.m
miibus_if.h: $S/kern/makedevops.pl $S/dev/mii/miibus_if.m
perl $S/kern/makedevops.pl -h $S/dev/mii/miibus_if.m
.include <bsd.kmod.mk>

View File

@ -1,21 +1,10 @@
# $FreeBSD$
MAINTAINER = n_hibma@freebsd.org
S = ${.CURDIR}/../..
.PATH: $S/dev/usb
.PATH: ${.CURDIR}/../../dev/usb
KMOD = ugen
SRCS = bus_if.h device_if.h vnode_if.h opt_usb.h ugen.c
NOMAN =
CLEANFILES += bus_if.h device_if.h vnode_if.h opt_usb.h \
vnode_if.c
opt_usb.h:
echo > opt_usb.h
bus_if.h:
perl $S/kern/makedevops.pl -h $S/kern/bus_if.m
device_if.h:
perl $S/kern/makedevops.pl -h $S/kern/device_if.m
.include <bsd.kmod.mk>

View File

@ -1,21 +1,10 @@
# $FreeBSD$
MAINTAINER = n_hibma@freebsd.org
S = ${.CURDIR}/../..
.PATH: $S/dev/usb
.PATH: ${.CURDIR}/../../dev/usb
KMOD = uhid
SRCS = bus_if.h device_if.h vnode_if.h opt_usb.h uhid.c
NOMAN =
CLEANFILES += bus_if.h device_if.h vnode_if.h opt_usb.h \
vnode_if.c
opt_usb.h:
echo > opt_usb.h
bus_if.h:
perl $S/kern/makedevops.pl -h $S/kern/bus_if.m
device_if.h:
perl $S/kern/makedevops.pl -h $S/kern/device_if.m
.include <bsd.kmod.mk>

View File

@ -1,29 +1,19 @@
# $FreeBSD$
MAINTAINER = n_hibma@freebsd.org
S = ${.CURDIR}/../..
.PATH: $S/dev/usb
.PATH: ${.CURDIR}/../../dev/usb
KMOD = ukbd
SRCS = bus_if.h device_if.h vnode_if.h \
opt_usb.h ukbd.h opt_kbd.h \
ukbd.c
NOMAN =
CLEANFILES += bus_if.h device_if.h vnode_if.h \
opt_usb.h ukbd.h opt_kbd.h \
vnode_if.c
opt_usb.h:
echo > opt_usb.h
CLEANFILES = ukbd.h opt_kbd.h
ukbd.h:
echo > ukbd.h
opt_kbd.h:
echo '#define KBD_INSTALL_CDEV 1' > opt_kbd.h
bus_if.h:
perl $S/kern/makedevops.pl -h $S/kern/bus_if.m
device_if.h:
perl $S/kern/makedevops.pl -h $S/kern/device_if.m
.include <bsd.kmod.mk>

View File

@ -1,21 +1,10 @@
# $FreeBSD$
MAINTAINER = n_hibma@freebsd.org
S = ${.CURDIR}/../..
.PATH: $S/dev/usb
.PATH: ${.CURDIR}/../../dev/usb
KMOD = ulpt
SRCS = bus_if.h device_if.h vnode_if.h opt_usb.h ulpt.c
NOMAN =
CLEANFILES += bus_if.h device_if.h vnode_if.h opt_usb.h \
vnode_if.c
opt_usb.h:
echo >opt_usb.h
bus_if.h:
perl $S/kern/makedevops.pl -h $S/kern/bus_if.m
device_if.h:
perl $S/kern/makedevops.pl -h $S/kern/device_if.m
.include <bsd.kmod.mk>

View File

@ -1,27 +1,15 @@
# $FreeBSD$
MAINTAINER = n_hibma@freebsd.org
S = ${.CURDIR}/../..
.PATH: $S/dev/usb
.PATH: ${.CURDIR}/../../dev/usb
KMOD = umass
SRCS = bus_if.h device_if.h \
opt_usb.h opt_cam.h opt_scsi.h \
umass.c
NOMAN =
CLEANFILES += bus_if.h device_if.h \
opt_usb.h opt_cam.h opt_scsi.h
opt_usb.h:
echo > opt_usb.h
opt_scsi.h:
echo '#define SCSI_DELAY 15000' > opt_scsi.h
opt_cam.h:
echo > opt_cam.h
bus_if.h:
perl $S/kern/makedevops.pl -h $S/kern/bus_if.m
device_if.h:
perl $S/kern/makedevops.pl -h $S/kern/device_if.m
.include <bsd.kmod.mk>

View File

@ -1,21 +1,10 @@
# $FreeBSD$
MAINTAINER = n_hibma@freebsd.org
S = ${.CURDIR}/../..
.PATH: $S/dev/usb
.PATH: ${.CURDIR}/../../dev/usb
KMOD = umodem
SRCS = bus_if.h device_if.h vnode_if.h opt_usb.h umodem.c
NOMAN =
CLEANFILES += bus_if.h device_if.h vnode_if.h opt_usb.h \
vnode_if.c
opt_usb.h:
echo > opt_usb.h
bus_if.h:
perl $S/kern/makedevops.pl -h $S/kern/bus_if.m
device_if.h:
perl $S/kern/makedevops.pl -h $S/kern/device_if.m
.include <bsd.kmod.mk>

View File

@ -1,21 +1,10 @@
# $FreeBSD$
MAINTAINER = n_hibma@freebsd.org
S = ${.CURDIR}/../..
.PATH: $S/dev/usb
.PATH: ${.CURDIR}/../../dev/usb
KMOD = ums
SRCS = bus_if.h device_if.h vnode_if.h opt_usb.h ums.c
NOMAN =
CLEANFILES += bus_if.h device_if.h vnode_if.h opt_usb.h \
vnode_if.c
opt_usb.h:
echo > opt_usb.h
bus_if.h:
perl $S/kern/makedevops.pl -h $S/kern/bus_if.m
device_if.h:
perl $S/kern/makedevops.pl -h $S/kern/device_if.m
.include <bsd.kmod.mk>

View File

@ -25,30 +25,12 @@ SRCS += opt_bus.h pci_if.h
NOMAN =
CFLAGS += -g
CLEANFILES += bus_if.h device_if.h pci_if.h usb_if.h usb_if.c \
vnode_if.c vnode_if.h \
uhci_pci.o uhci.o \
ohci_pci.o ohci.o \
opt_usb.h opt_bus.h
opt_usb.h:
echo > opt_usb.h
# echo "#define USB_DEBUG 1" >> opt_usb.h
# echo "#define UHCI_DEBUG 1" >> opt_usb.h
# echo "#define OHCI_DEBUG 1" >> opt_usb.h
opt_bus.h:
echo > opt_bus.h
bus_if.h:
perl $S/kern/makedevops.pl -h $S/kern/bus_if.m
device_if.h:
perl $S/kern/makedevops.pl -h $S/kern/device_if.m
usb_if.h:
perl $S/kern/makedevops.pl -h $S/dev/usb/usb_if.m
usb_if.c:
perl $S/kern/makedevops.pl -c $S/dev/usb/usb_if.m
pci_if.h:
perl $S/kern/makedevops.pl -h $S/pci/pci_if.m
usb_devs.h:
perl $S/kern/makedevlist.pl -h $S/dev/usb/usb.devs

View File

@ -5,7 +5,7 @@ KMOD = vesa
SRCS = vesa.c scvesactl.c sc.h vga.h opt_syscons.h opt_vga.h \
opt_vesa.h opt_fb.h
NOMAN =
CLEANFILES += sc.h vga.h opt_syscons.h opt_vga.h opt_vesa.h opt_fb.h
CLEANFILES = sc.h vga.h
sc.h:
echo "#define NSC 1" > sc.h
@ -13,16 +13,7 @@ sc.h:
vga.h:
echo "#define NVGA 1" > vga.h
opt_syscons.h:
touch opt_syscons.h
opt_vga.h:
touch opt_vga.h
opt_vesa.h:
echo "#define VESA 1" > opt_vesa.h
opt_fb.h:
touch opt_fb.h
.include <bsd.kmod.mk>

View File

@ -1,9 +1,8 @@
# $FreeBSD$
MAINTAINER = grog@FreeBSD.org
SOURCE= ${.CURDIR}/../../dev/vinum
.PATH: ${SOURCE}
.PATH: ${.CURDIR}/../../dev/vinum
KMOD= vinum
SRCS= vnode_if.h opt_vinum.h vinumstate.h vinumvar.h \
vinumhdr.h request.h vinumext.h vinumio.h vinumkw.h \
@ -17,13 +16,8 @@ NOMAN=
# Otherwise a number of ioctls will fail.
CFLAGS+= -DVINUMDEBUG -g -O
CLEANFILES+= vnode_if.h vnode_if.c opt_vinum.h
all:
opt_vinum.h:
@touch opt_vinum.h
state.h: maketabs vinumstate.h
./maketabs >state.h

View File

@ -5,9 +5,4 @@ KMOD= vn
SRCS= vn.c vnode_if.h opt_devfs.h
NOMAN=
CLEANFILES+= vnode_if.h vnode_if.c opt_devfs.h
opt_devfs.h:
touch opt_devfs.h
.include <bsd.kmod.mk>

View File

@ -1,29 +1,11 @@
# $FreeBSD$
S = ${.CURDIR}/../..
.PATH: $S/pci
.PATH: ${.CURDIR}/../../pci
KMOD = if_vr
SRCS = if_vr.c opt_bdg.h device_if.h bus_if.h pci_if.h
SRCS += miibus_if.h
CLEANFILES += opt_bdg.h device_if.h bus_if.h pci_if.h
CLEANFILES += miibus_if.h
KMODDEPS = miibus
CFLAGS += ${DEBUG_FLAGS}
opt_bdg.h:
touch opt_bdg.h
device_if.h: $S/kern/makedevops.pl $S/kern/device_if.m
perl $S/kern/makedevops.pl -h $S/kern/device_if.m
bus_if.h: $S/kern/makedevops.pl $S/kern/bus_if.m
perl $S/kern/makedevops.pl -h $S/kern/bus_if.m
pci_if.h: $S/kern/makedevops.pl $S/pci/pci_if.m
perl $S/kern/makedevops.pl -h $S/pci/pci_if.m
miibus_if.h: $S/kern/makedevops.pl $S/dev/mii/miibus_if.m
perl $S/kern/makedevops.pl -h $S/dev/mii/miibus_if.m
.include <bsd.kmod.mk>

View File

@ -1,28 +1,10 @@
# $FreeBSD$
S = ${.CURDIR}/../..
.PATH: $S/pci
.PATH: ${.CURDIR}/../../pci
KMOD = if_wb
SRCS = if_wb.c opt_bdg.h device_if.h
SRCS += bus_if.h miibus_if.h pci_if.h
CLEANFILES += opt_bdg.h device_if.h
CLEANFILES += bus_if.h miibus_if.h pci_if.h
CFLAGS += ${DEBUG_FLAGS}
KMODDEPS = miibus
opt_bdg.h:
touch opt_bdg.h
device_if.h: $S/kern/makedevops.pl $S/kern/device_if.m
perl $S/kern/makedevops.pl -h $S/kern/device_if.m
bus_if.h: $S/kern/makedevops.pl $S/kern/bus_if.m
perl $S/kern/makedevops.pl -h $S/kern/bus_if.m
pci_if.h: $S/kern/makedevops.pl $S/pci/pci_if.m
perl $S/kern/makedevops.pl -h $S/pci/pci_if.m
miibus_if.h: $S/kern/makedevops.pl $S/dev/mii/miibus_if.m
perl $S/kern/makedevops.pl -h $S/dev/mii/miibus_if.m
.include <bsd.kmod.mk>

View File

@ -1,16 +1,8 @@
# $FreeBSD$
S = ${.CURDIR}/../..
.PATH: $S/i386/isa
.PATH: ${.CURDIR}/../../i386/isa
KMOD = if_wi
SRCS = if_wi.c device_if.h bus_if.h
CLEANFILES += device_if.h bus_if.h
CFLAGS += ${DEBUG_FLAGS}
device_if.h: $S/kern/makedevops.pl $S/kern/device_if.m
perl $S/kern/makedevops.pl -h $S/kern/device_if.m
bus_if.h: $S/kern/makedevops.pl $S/kern/bus_if.m
perl $S/kern/makedevops.pl -h $S/kern/bus_if.m
.include <bsd.kmod.mk>

View File

@ -1,28 +1,10 @@
# $FreeBSD$
S = ${.CURDIR}/../..
.PATH: $S/pci
.PATH: ${.CURDIR}/../../pci
KMOD = if_xl
SRCS = if_xl.c opt_bdg.h device_if.h bus_if.h pci_if.h
SRCS += miibus_if.h
CLEANFILES += opt_bdg.h device_if.h bus_if.h pci_if.h
CLEANFILES += miibus_if.h
CFLAGS += ${DEBUG_FLAGS}
KMODDEPS = miibus
opt_bdg.h:
touch opt_bdg.h
device_if.h: $S/kern/makedevops.pl $S/kern/device_if.m
perl $S/kern/makedevops.pl -h $S/kern/device_if.m
bus_if.h: $S/kern/makedevops.pl $S/kern/bus_if.m
perl $S/kern/makedevops.pl -h $S/kern/bus_if.m
pci_if.h: $S/kern/makedevops.pl $S/pci/pci_if.m
perl $S/kern/makedevops.pl -h $S/pci/pci_if.m
miibus_if.h: $S/kern/makedevops.pl $S/dev/mii/miibus_if.m
perl $S/kern/makedevops.pl -h $S/dev/mii/miibus_if.m
.include <bsd.kmod.mk>