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
24 lines
706 B
Makefile
24 lines
706 B
Makefile
# $FreeBSD$
|
|
.PATH: ${.CURDIR}/../../ofed/drivers/infiniband/core
|
|
.PATH: ${.CURDIR}/../../ofed/include/linux
|
|
|
|
KMOD= ibcore
|
|
SRCS= addr.c iwcm.c sa_query.c ucma.c uverbs_cmd.c \
|
|
agent.c multicast.c smi.c ud_header.c uverbs_main.c \
|
|
mad.c peer_mem.c umem.c uverbs_marshall.c \
|
|
cache.c device.c packer.c sysfs.c user_mad.c verbs.c \
|
|
cm.c fmr_pool.c mad_rmpp.c ucm.c cma.c \
|
|
vnode_if.h device_if.h bus_if.h pci_if.h \
|
|
opt_inet.h opt_inet6.h
|
|
|
|
CFLAGS+= -I${.CURDIR}/../../ofed/drivers/infiniband/core
|
|
CFLAGS+= -I${.CURDIR}/../mlx4ib
|
|
CFLAGS+= -I${.CURDIR}/../../ofed/include/
|
|
CFLAGS+= -DINET6 -DINET
|
|
|
|
.include <bsd.kmod.mk>
|
|
|
|
CFLAGS+= -Wno-cast-qual -Wno-pointer-arith
|
|
|
|
CWARNFLAGS.cm.c= -Wno-unused-function
|