summaryrefslogtreecommitdiff
path: root/bsd-core/tdfx
diff options
context:
space:
mode:
Diffstat (limited to 'bsd-core/tdfx')
-rw-r--r--bsd-core/tdfx/Makefile20
1 files changed, 15 insertions, 5 deletions
diff --git a/bsd-core/tdfx/Makefile b/bsd-core/tdfx/Makefile
index 4362a5ba..d177ff60 100644
--- a/bsd-core/tdfx/Makefile
+++ b/bsd-core/tdfx/Makefile
@@ -1,10 +1,10 @@
# $FreeBSD$
-KMOD = tdfx
-SRCS = tdfx_drv.c tdfx_context.c
-SRCS += device_if.h bus_if.h pci_if.h
-CFLAGS += ${DEBUG_FLAGS} -I. -I..
-KMODDEPS = drm
+KMOD= tdfx
+NOMAN= YES
+SRCS= tdfx_drv.c
+SRCS+= device_if.h bus_if.h pci_if.h opt_drm_linux.h
+CFLAGS+= ${DEBUG_FLAGS} -I. -I..
@:
ln -sf /sys @
@@ -12,4 +12,14 @@ KMODDEPS = drm
machine:
ln -sf /sys/i386/include machine
+.if ${MACHINE_ARCH} == "i386"
+# This line enables linux ioctl handling
+# If you want support for this uncomment this line
+#TDFX_OPTS= "\#define DRM_LINUX" 1
+.endif
+
+opt_drm_linux.h:
+ touch opt_drm_linux.h
+ echo $(TDFX_OPTS) >> opt_drm_linux.h
+
.include <bsd.kmod.mk>