1219820Sjeff# $FreeBSD$ 2219820Sjeff.PATH: ${.CURDIR}/../../ofed/drivers/net/mlx4 3234183Sjhb 4234183Sjhb.include <bsd.own.mk> 5234183Sjhb 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 10234183SjhbSRCS += opt_inet.h opt_inet6.h 11219820SjeffCFLAGS+= -I${.CURDIR}/../../ofed/drivers/net/mlx4 12219820SjeffCFLAGS+= -I${.CURDIR}/../../ofed/include/ 13219820Sjeff 14234183Sjhb.if !defined(KERNBUILDDIR) 15234183Sjhb.if ${MK_INET_SUPPORT} != "no" 16234183Sjhbopt_inet.h: 17234183Sjhb @echo "#define INET 1" > ${.TARGET} 18234183Sjhb.endif 19234183Sjhb 20234183Sjhb.if ${MK_INET6_SUPPORT} != "no" 21234183Sjhbopt_inet6.h: 22234183Sjhb @echo "#define INET6 1" > ${.TARGET} 23234183Sjhb.endif 24234183Sjhb.endif 25234183Sjhb 26219820Sjeff.include <bsd.kmod.mk> 27219820Sjeff 28219820SjeffCFLAGS+= -Wno-cast-qual -Wno-pointer-arith -fms-extensions 29