2014-10-08 09:19:35 +00:00
|
|
|
# Makefile for mrsas driver
|
2014-10-08 09:30:35 +00:00
|
|
|
# $FreeBSD$
|
2014-05-07 16:16:49 +00:00
|
|
|
|
2014-10-08 09:19:35 +00:00
|
|
|
KMOD=mrsas
|
2017-03-04 10:10:17 +00:00
|
|
|
.PATH: ${SRCTOP}/sys/dev/${KMOD}
|
2014-05-07 16:16:49 +00:00
|
|
|
|
2014-10-08 09:19:35 +00:00
|
|
|
.if ${MACHINE_ARCH} == "i386" || ${MACHINE_ARCH} == "amd64"
|
|
|
|
SUBDIR+= mrsas_linux
|
|
|
|
.endif
|
|
|
|
|
|
|
|
SRCS=mrsas.c mrsas_cam.c mrsas_ioctl.c mrsas_fp.c
|
|
|
|
SRCS+= device_if.h bus_if.h pci_if.h opt_cam.h opt_scsi.h
|
2014-05-07 16:16:49 +00:00
|
|
|
|
|
|
|
#CFLAGS+= -MRSAS_DEBUG
|
|
|
|
.include <bsd.kmod.mk>
|
2014-10-08 09:19:35 +00:00
|
|
|
CFLAGS+= -fgnu89-inline
|
|
|
|
|
|
|
|
TARGET_ARCH = ${MACHINE_ARCH}
|
|
|
|
.if ${TARGET_ARCH} == "amd64"
|
2020-09-24 07:10:34 +00:00
|
|
|
CFLAGS+= -DCOMPAT_FREEBSD32
|
2014-10-08 09:19:35 +00:00
|
|
|
.endif
|
2014-05-07 16:16:49 +00:00
|
|
|
|
|
|
|
clean_cscope:
|
|
|
|
rm -f cscope*
|
|
|
|
|
|
|
|
cscope: clean_cscope
|
|
|
|
/usr/local/bin/cscope -b *.[ch]
|
|
|
|
|
|
|
|
cleanall: clean clean_cscope
|