1# $FreeBSD$ 2.PATH: ${.CURDIR}/../../ofed/drivers/infiniband/ulp/ipoib 3.PATH: ${.CURDIR}/../../ofed/include/linux 4 5.include <bsd.own.mk> 6 7KMOD = ipoib 8SRCS = device_if.h bus_if.h opt_ofed.h vnode_if.h opt_inet.h opt_inet6.h 9SRCS += ipoib_cm.c ipoib_ib.c ipoib_main.c ipoib_multicast.c ipoib_verbs.c ipoib.h 10SRCS+= linux_compat.c linux_radix.c linux_idr.c 11 12CFLAGS+= -I${.CURDIR}/../../ofed/drivers/infiniband/ulp/ipoib 13CFLAGS+= -I${.CURDIR}/../ibcore 14CFLAGS+= -I${.CURDIR}/../../ofed/include/ 15CFLAGS+= -DINET6 -DINET -DOFED 16 17.if !defined(KERNBUILDDIR) 18.if ${MK_INET_SUPPORT} != "no" 19opt_inet.h: 20 @echo "#define INET 1" > ${.TARGET} 21.endif 22 23.if ${MK_INET6_SUPPORT} != "no" 24opt_inet6.h: 25 @echo "#define INET6 1" > ${.TARGET} 26.endif 27.endif 28 29.include <bsd.kmod.mk> 30 31CFLAGS+= -Wno-cast-qual -Wno-pointer-arith -fms-extensions 32