From 59519ca74f1abcdd8b1cf215afb8d02309e00bb3 Mon Sep 17 00:00:00 2001 From: Bill Paul Date: Tue, 31 Aug 1999 14:45:51 +0000 Subject: Convert the RealTek 8139 driver to newbus and miibus in one swell foop. Also set it up to be compiled as a module. --- sys/modules/rl/Makefile | 34 ++++++++++++++++++++++++++++++++++ 1 file changed, 34 insertions(+) create mode 100644 sys/modules/rl/Makefile (limited to 'sys/modules') diff --git a/sys/modules/rl/Makefile b/sys/modules/rl/Makefile new file mode 100644 index 000000000000..a7c836b629ea --- /dev/null +++ b/sys/modules/rl/Makefile @@ -0,0 +1,34 @@ +# $FreeBSD$ + +S = ${.CURDIR}/../.. +.PATH: $S/pci +KMOD = rl +SRCS = if_rl.c rl.h bpf.h opt_bdg.h device_if.h bus_if.h pci_if.h +SRCS += miibus_if.h +CLEANFILES += rl.h bpf.h opt_bdg.h device_if.h bus_if.h pci_if.h +CLEANFILES += miibus_if.h + +CFLAGS += ${DEBUG_FLAGS} + +rl.h: + echo "#define NRL 1" > rl.h + +bpf.h: + echo "#define NBPF 1" > bpf.h + +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 -- cgit v1.3