]> CyberLeo.Net >> Repos - FreeBSD/releng/10.2.git/blob - sys/modules/mrsas/Makefile
- Copy stable/10@285827 to releng/10.2 in preparation for 10.2-RC1
[FreeBSD/releng/10.2.git] / sys / modules / mrsas / Makefile
1 # Makefile for mrsas driver
2 # $FreeBSD$
3
4 KMOD=mrsas
5 .PATH: ${.CURDIR}/../../dev/${KMOD}
6
7 .if ${MACHINE_ARCH} == "i386" || ${MACHINE_ARCH} == "amd64"
8 SUBDIR+= mrsas_linux
9 .endif
10
11 SRCS=mrsas.c mrsas_cam.c mrsas_ioctl.c mrsas_fp.c
12 SRCS+=  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>
16 CFLAGS+= -fgnu89-inline
17
18 TARGET_ARCH = ${MACHINE_ARCH}
19 .if ${TARGET_ARCH} == "amd64"
20 CFLAGS+= -DCOMPAT_FREEBSD32 -D_STANDALONE
21 .endif
22
23 clean_cscope:
24         rm -f cscope*
25
26 cscope: clean_cscope
27         /usr/local/bin/cscope -b *.[ch]
28
29 cleanall:       clean clean_cscope
30         rm -f '@' machine