xref: /freebsd/sys/modules/3dfx/Makefile (revision ffb7ea4913e9505f537b2ab019cd85a05f86ef61)
1a7769538SColeman Kane# $FreeBSD$
2365b4833SColeman Kane.PATH: $(.CURDIR)/../../dev/tdfx
3ffb7ea49SColeman KaneKMOD		= 3dfx
4365b4833SColeman KaneNOMAN		= YES
5365b4833SColeman KaneSRCS		= opt_tdfx.h  pci.h bus_if.h pci_if.h device_if.h tdfx_pci.h tdfx_io.h\
6365b4833SColeman Kane		  tdfx_vars.h tdfx_pci.c
7365b4833SColeman KaneINCSRC		= ../../sys
8365b4833SColeman Kane
9ad2095d0SColeman Kane# This line enables linux ioctl handling by default
10ad2095d0SColeman Kane# comment out if you don't want it
110debd63aSColeman KaneTDFX_OPTS = "\#define TDFX_LINUX"
12365b4833SColeman Kane# Uncomment this for debugging messages
13a7769538SColeman Kane#CFLAGS += -DDEBUG
14365b4833SColeman Kane
15a7769538SColeman Kanepci.h:
16365b4833SColeman Kane	echo "#define NPCI 1" > pci.h
17365b4833SColeman Kane
18365b4833SColeman Kaneopt_tdfx.h:
19a7769538SColeman Kane	touch opt_tdfx.h
200debd63aSColeman Kane	echo $(TDFX_OPTS) >> opt_tdfx.h
21365b4833SColeman Kane
22365b4833SColeman Kane.include <bsd.kmod.mk>
23