1219820Sjeff# $FreeBSD$ 2219820Sjeff.PATH: ${.CURDIR}/../../ofed/drivers/net/mlx4 3239748Sjhb 4239748Sjhb.include <bsd.own.mk> 5239748Sjhb 6219820SjeffKMOD = mlxen 7219820SjeffSRCS = device_if.h bus_if.h pci_if.h vnode_if.h 8219820SjeffSRCS += en_cq.c en_frag.c en_main.c en_netdev.c en_port.c en_resources.c 9219820SjeffSRCS += en_rx.c en_tx.c 10239748SjhbSRCS += opt_inet.h opt_inet6.h 11219820SjeffCFLAGS+= -I${.CURDIR}/../../ofed/drivers/net/mlx4 12219820SjeffCFLAGS+= -I${.CURDIR}/../../ofed/include/ 13219820Sjeff 14239748Sjhb.if !defined(KERNBUILDDIR) 15239748Sjhb.if ${MK_INET_SUPPORT} != "no" 16239748Sjhbopt_inet.h: 17239748Sjhb @echo "#define INET 1" > ${.TARGET} 18239748Sjhb.endif 19239748Sjhb 20239748Sjhb.if ${MK_INET6_SUPPORT} != "no" 21239748Sjhbopt_inet6.h: 22239748Sjhb @echo "#define INET6 1" > ${.TARGET} 23239748Sjhb.endif 24239748Sjhb.endif 25239748Sjhb 26219820Sjeff.include <bsd.kmod.mk> 27219820Sjeff 28260495SdimCFLAGS+= -Wno-cast-qual -Wno-pointer-arith ${GCC_MS_EXTENSIONS} 29