]> CyberLeo.Net >> Repos - FreeBSD/stable/10.git/blob - sys/modules/mlx4ib/Makefile
Copy head (r256279) to stable/10 as part of the 10.0-RELEASE cycle.
[FreeBSD/stable/10.git] / sys / modules / mlx4ib / Makefile
1 # $FreeBSD$
2 .PATH:  ${.CURDIR}/../../ofed/drivers/infiniband/hw/mlx4
3 .PATH:  ${.CURDIR}/../../ofed/include/linux
4
5 .include <bsd.own.mk>
6
7 KMOD    = mlx4ib
8 SRCS    = device_if.h bus_if.h pci_if.h vnode_if.h
9 SRCS+= linux_compat.c linux_radix.c linux_idr.c 
10 SRCS+=  alias_GUID.c mcg.c sysfs.c ah.c cq.c doorbell.c mad.c main.c mr.c qp.c srq.c wc.c cm.c
11 SRCS+=  opt_inet.h opt_inet6.h
12
13 #CFLAGS+= -I${.CURDIR}/../../ofed/include/
14 #CFLAGS+= -I${.CURDIR}/../../../../include
15 CFLAGS+= -I${.CURDIR}/../../ofed/drivers/infiniband/hw/mlx4
16 CFLAGS+= -I${.CURDIR}/../../ofed/include/
17 CFLAGS+= -DCONFIG_INFINIBAND_USER_MEM
18 CFLAGS+= -DINET6 -DINET -DOFED
19
20 .if !defined(KERNBUILDDIR)
21 .if ${MK_INET_SUPPORT} != "no"
22 opt_inet.h:
23         @echo "#define INET 1" > ${.TARGET}
24 .endif
25
26 .if ${MK_INET6_SUPPORT} != "no"
27 opt_inet6.h:
28         @echo "#define INET6 1" > ${.TARGET}
29 .endif
30 .endif
31
32 .include <bsd.kmod.mk>
33
34 CFLAGS+= -Wno-cast-qual -Wno-pointer-arith -fms-extensions