]> CyberLeo.Net >> Repos - FreeBSD/releng/10.0.git/blob - sys/ofed/drivers/infiniband/hw/mlx4/Makefile
- Copy stable/10 (r259064) to releng/10.0 as part of the
[FreeBSD/releng/10.0.git] / sys / ofed / drivers / infiniband / hw / mlx4 / Makefile
1 # $FreeBSD$
2 #.PATH:  ${.CURDIR}/../../ofed/drivers/infiniband/hw/mlx4
3 #.PATH:  ${.CURDIR}/../../../../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
10 SRCS+=  ah.c cq.c doorbell.c mad.c main.c mr.c qp.c srq.c wc.c 
11 SRCS+=  opt_inet.h opt_inet6.h
12
13 #CFLAGS+= -I${.CURDIR}/../../ofed/include/
14 CFLAGS+= -I${.CURDIR}/../../../../include
15 CFLAGS+= -DCONFIG_INFINIBAND_USER_MEM
16
17 .if !defined(KERNBUILDDIR)
18 .if ${MK_INET_SUPPORT} != "no"
19 opt_inet.h:
20         @echo "#define INET 1" > ${.TARGET}
21 .endif
22
23 .if ${MK_INET6_SUPPORT} != "no"
24 opt_inet6.h:
25         @echo "#define INET6 1" > ${.TARGET}
26 .endif
27 .endif
28
29 .include <bsd.kmod.mk>
30
31 CFLAGS+= -Wno-cast-qual -Wno-pointer-arith -fms-extensions