xref: /freebsd/sys/modules/3dfx/Makefile (revision 05c313d4ec429643cbe016845efe4723a3ff6a6d)
1# $FreeBSD$
2.PATH: $(.CURDIR)/../../dev/tdfx
3MAINTAINER=    cokane@FreeBSD.org
4KMOD=  3dfx
5NOMAN= YES
6SRCS=  opt_tdfx.h  pci.h bus_if.h pci_if.h device_if.h tdfx_pci.h tdfx_io.h\
7       tdfx_vars.h tdfx_pci.c
8INCSRC=        ../../sys
9
10CLEANFILES=    pci.h
11
12.if ${MACHINE_ARCH} == "i386"
13# This line enables linux ioctl handling by default
14# comment out if you don't want it
15TDFX_OPTS=     "\#define TDFX_LINUX"
16.endif
17
18# Uncomment this for debugging messages
19#CFLAGS+=      -DDEBUG
20
21pci.h:
22	echo "#define NPCI 1" > pci.h
23
24opt_tdfx.h:
25	touch opt_tdfx.h
26	echo $(TDFX_OPTS) >> opt_tdfx.h
27
28.include <bsd.kmod.mk>
29