From a7769538cce4bfd9bc227d571cdb573581907ed0 Mon Sep 17 00:00:00 2001 From: Coleman Kane Date: Thu, 22 Jun 2000 05:47:16 +0000 Subject: [PATCH] Took TDFX_VERBOSE out of Makefile, added $FreeBSD$ and option for DEBUG. Added a notice for linux users that the kld isn't working for them yet, so no linux emu from the kld. It compiles statically alright though. --- sys/modules/3dfx/Makefile | 8 ++++---- sys/modules/tdfx/Makefile | 8 ++++---- sys/modules/tdfx/README.linuxemu | 10 ++++++++++ 3 files changed, 18 insertions(+), 8 deletions(-) create mode 100644 sys/modules/tdfx/README.linuxemu diff --git a/sys/modules/3dfx/Makefile b/sys/modules/3dfx/Makefile index 6f97d3ea006..d5cfd09da9b 100644 --- a/sys/modules/3dfx/Makefile +++ b/sys/modules/3dfx/Makefile @@ -1,3 +1,4 @@ +# $FreeBSD$ .PATH: $(.CURDIR)/../../dev/tdfx KMOD = tdfx NOMAN = YES @@ -6,13 +7,12 @@ SRCS = opt_tdfx.h pci.h bus_if.h pci_if.h device_if.h tdfx_pci.h tdfx_io.h\ INCSRC = ../../sys # Uncomment this for debugging messages -TDFX_VERBOSE = "\#define TDFX_VERBOSE" +#CFLAGS += -DDEBUG -# kludge to allow opt_tdfx.h to exist -pci.h: opt_tdfx.h +pci.h: echo "#define NPCI 1" > pci.h opt_tdfx.h: - echo $(TDFX_VERBOSE) > opt_tdfx.h + touch opt_tdfx.h .include diff --git a/sys/modules/tdfx/Makefile b/sys/modules/tdfx/Makefile index 6f97d3ea006..d5cfd09da9b 100644 --- a/sys/modules/tdfx/Makefile +++ b/sys/modules/tdfx/Makefile @@ -1,3 +1,4 @@ +# $FreeBSD$ .PATH: $(.CURDIR)/../../dev/tdfx KMOD = tdfx NOMAN = YES @@ -6,13 +7,12 @@ SRCS = opt_tdfx.h pci.h bus_if.h pci_if.h device_if.h tdfx_pci.h tdfx_io.h\ INCSRC = ../../sys # Uncomment this for debugging messages -TDFX_VERBOSE = "\#define TDFX_VERBOSE" +#CFLAGS += -DDEBUG -# kludge to allow opt_tdfx.h to exist -pci.h: opt_tdfx.h +pci.h: echo "#define NPCI 1" > pci.h opt_tdfx.h: - echo $(TDFX_VERBOSE) > opt_tdfx.h + touch opt_tdfx.h .include diff --git a/sys/modules/tdfx/README.linuxemu b/sys/modules/tdfx/README.linuxemu new file mode 100644 index 00000000000..0ebce9e8d9c --- /dev/null +++ b/sys/modules/tdfx/README.linuxemu @@ -0,0 +1,10 @@ +$FreeBSD$ +NOTIC TO USERS OF LINUX EMULATION CODE + +Due to some strange workings with the linuxulator, as of 21 Jun 200, this +module won't load support for linux emulation, making it rather pointless, +as there are no non-linux glide progs for freebsd yet. You can, however, +compile both of them statically into the kernel using: +device tdfx +options COMPAT_LINUX +options LINUX_TDFX