xref: /freebsd/sys/modules/3dfx/Makefile (revision 05c313d4ec429643cbe016845efe4723a3ff6a6d)
1a7769538SColeman Kane# $FreeBSD$
2365b4833SColeman Kane.PATH: $(.CURDIR)/../../dev/tdfx
3c546ab55SColeman KaneMAINTAINER=    cokane@FreeBSD.org
4ffb7ea49SColeman KaneKMOD=  3dfx
5365b4833SColeman KaneNOMAN= YES
6365b4833SColeman KaneSRCS=  opt_tdfx.h  pci.h bus_if.h pci_if.h device_if.h tdfx_pci.h tdfx_io.h\
7365b4833SColeman Kane       tdfx_vars.h tdfx_pci.c
8365b4833SColeman KaneINCSRC=        ../../sys
9365b4833SColeman Kane
10c546ab55SColeman KaneCLEANFILES=    pci.h
11c546ab55SColeman Kane
1205c313d4SMarcel Moolenaar.if ${MACHINE_ARCH} == "i386"
13ad2095d0SColeman Kane# This line enables linux ioctl handling by default
14ad2095d0SColeman Kane# comment out if you don't want it
150debd63aSColeman KaneTDFX_OPTS=     "\#define TDFX_LINUX"
1605c313d4SMarcel Moolenaar.endif
17c546ab55SColeman Kane
18365b4833SColeman Kane# Uncomment this for debugging messages
19a7769538SColeman Kane#CFLAGS+=      -DDEBUG
20365b4833SColeman Kane
21a7769538SColeman Kanepci.h:
22365b4833SColeman Kane	echo "#define NPCI 1" > pci.h
23365b4833SColeman Kane
24365b4833SColeman Kaneopt_tdfx.h:
25a7769538SColeman Kane	touch opt_tdfx.h
260debd63aSColeman Kane	echo $(TDFX_OPTS) >> opt_tdfx.h
27365b4833SColeman Kane
28365b4833SColeman Kane.include <bsd.kmod.mk>
29