mirror of
https://github.com/opnsense/src.git
synced 2026-02-20 00:11:07 -05:00
by dumbbell@ to be able to compile this layer as a dependency module. Clean up some Makefiles and remove the no longer used OFED define. Currently only i386 and amd64 targets are supported. MFC after: 1 month Sponsored by: Mellanox Technologies
19 lines
572 B
Makefile
19 lines
572 B
Makefile
# $FreeBSD$
|
|
.PATH: ${.CURDIR}/../../ofed/drivers/infiniband/hw/mlx4
|
|
.PATH: ${.CURDIR}/../../ofed/include/linux
|
|
|
|
KMOD= mlx4ib
|
|
SRCS= device_if.h bus_if.h vnode_if.h pci_if.h \
|
|
opt_inet.h opt_inet6.h \
|
|
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
|
|
|
|
CFLAGS+= -I${.CURDIR}/../../ofed/drivers/infiniband/hw/mlx4
|
|
CFLAGS+= -I${.CURDIR}/../../ofed/include/
|
|
CFLAGS+= -DCONFIG_INFINIBAND_USER_MEM
|
|
CFLAGS+= -DINET6 -DINET
|
|
CFLAGS+= -fms-extensions
|
|
|
|
.include <bsd.kmod.mk>
|
|
|
|
CFLAGS+= -Wno-cast-qual -Wno-pointer-arith ${GCC_MS_EXTENSIONS}
|