1# $FreeBSD$
2.PATH:  ${.CURDIR}/../../ofed/drivers/net/mlx4
3
4.include <bsd.own.mk>
5
6KMOD    = mlxen
7SRCS    = device_if.h bus_if.h pci_if.h vnode_if.h
8SRCS	+= en_cq.c en_frag.c en_main.c en_netdev.c en_port.c en_resources.c
9SRCS	+= en_rx.c en_tx.c
10SRCS	+= opt_inet.h opt_inet6.h
11CFLAGS+= -I${.CURDIR}/../../ofed/drivers/net/mlx4
12CFLAGS+= -I${.CURDIR}/../../ofed/include/
13
14.if !defined(KERNBUILDDIR)
15.if ${MK_INET_SUPPORT} != "no"
16opt_inet.h:
17	@echo "#define INET 1" > ${.TARGET}
18.endif
19
20.if ${MK_INET6_SUPPORT} != "no"
21opt_inet6.h:
22	@echo "#define INET6 1" > ${.TARGET}
23.endif
24.endif
25
26.include <bsd.kmod.mk>
27
28CFLAGS+= -Wno-cast-qual -Wno-pointer-arith -fms-extensions
29