cc4a90c445
this option from all modules that enable it theirselves. In C mode -fms-extensions option enables anonymous structs and unions, allowing us to use this C11 feature in kernel. Of course, clang supports it without any extra options. Reviewed by: dim
20 lines
540 B
Makefile
20 lines
540 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 \
|
|
mlx4_exp.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
|
|
|
|
.include <bsd.kmod.mk>
|
|
|
|
CFLAGS+= -Wno-cast-qual -Wno-pointer-arith
|