1# $FreeBSD$
2#.PATH: ${.CURDIR}/../../ofed/drivers/net/mlx4:${.CURDIR}/../../ofed/include/linux
3.PATH: ${.CURDIR}/../../../../../include/linux
4
5.include <src.opts.mk>
6
7
8KMOD = mlx4
9SRCS = device_if.h bus_if.h pci_if.h vnode_if.h
10SRCS+= alloc.c catas.c cmd.c cq.c eq.c fw.c icm.c intf.c main.c mcg.c mr.c linux_compat.c linux_radix.c
11SRCS+= pd.c port.c profile.c qp.c reset.c sense.c srq.c resource_tracker.c sys_tune.c
12SRCS+= opt_inet.h opt_inet6.h
13
14
15#CFLAGS+= -I${.CURDIR}/../../ofed/drivers/net/mlx4
16#CFLAGS+= -I${.CURDIR}/../../ofed/include/
17CFLAGS+= -I${.CURDIR}/../../../../../include
18
19.if !defined(KERNBUILDDIR)
20.if ${MK_INET_SUPPORT} != "no"
21opt_inet.h:
22 @echo "#define INET 1" > ${.TARGET}
23.endif
24
25.if ${MK_INET6_SUPPORT} != "no"
26opt_inet6.h:
27 @echo "#define INET6 1" > ${.TARGET}
28.endif
29.endif
30
31.include <bsd.kmod.mk>
32
33CFLAGS+= -Wno-cast-qual -Wno-pointer-arith ${GCC_MS_EXTENSIONS}
34
2#.PATH: ${.CURDIR}/../../ofed/drivers/net/mlx4:${.CURDIR}/../../ofed/include/linux
3.PATH: ${.CURDIR}/../../../../../include/linux
4
5.include <src.opts.mk>
6
7
8KMOD = mlx4
9SRCS = device_if.h bus_if.h pci_if.h vnode_if.h
10SRCS+= alloc.c catas.c cmd.c cq.c eq.c fw.c icm.c intf.c main.c mcg.c mr.c linux_compat.c linux_radix.c
11SRCS+= pd.c port.c profile.c qp.c reset.c sense.c srq.c resource_tracker.c sys_tune.c
12SRCS+= opt_inet.h opt_inet6.h
13
14
15#CFLAGS+= -I${.CURDIR}/../../ofed/drivers/net/mlx4
16#CFLAGS+= -I${.CURDIR}/../../ofed/include/
17CFLAGS+= -I${.CURDIR}/../../../../../include
18
19.if !defined(KERNBUILDDIR)
20.if ${MK_INET_SUPPORT} != "no"
21opt_inet.h:
22 @echo "#define INET 1" > ${.TARGET}
23.endif
24
25.if ${MK_INET6_SUPPORT} != "no"
26opt_inet6.h:
27 @echo "#define INET6 1" > ${.TARGET}
28.endif
29.endif
30
31.include <bsd.kmod.mk>
32
33CFLAGS+= -Wno-cast-qual -Wno-pointer-arith ${GCC_MS_EXTENSIONS}
34