1# Makefile for mrsas driver
2
3KMOD=mrsas
4.PATH: ${SRCTOP}/sys/dev/${KMOD}
5
6.if ${MACHINE_ARCH} == "i386" || ${MACHINE_ARCH} == "amd64"
7SUBDIR+= mrsas_linux
8.endif
9
10SRCS=mrsas.c mrsas_cam.c mrsas_ioctl.c mrsas_fp.c
11SRCS+=  device_if.h bus_if.h pci_if.h opt_cam.h opt_scsi.h
12
13#CFLAGS+= -MRSAS_DEBUG
14.include <bsd.kmod.mk>
15CFLAGS+= -fgnu89-inline
16
17.if ${MACHINE_ARCH} == "amd64"
18CFLAGS+= -DCOMPAT_FREEBSD32
19.endif
20
21clean_cscope:
22	rm -f cscope*
23
24cscope:	clean_cscope
25	/usr/local/bin/cscope -b *.[ch]
26
27cleanall:	clean clean_cscope
28