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