#$FreeBSD$
.PATH:  ${.CURDIR}
KMOD    = if_ixgbe
SRCS    = device_if.h bus_if.h pci_if.h opt_bdg.h
SRCS    += ixgbe.c ixv.c
# Shared source
SRCS    += ixgbe_common.c ixgbe_api.c ixgbe_phy.c ixgbe_vf.c ixgbe_mbx.c
SRCS    += ixgbe_dcb.c ixgbe_dcb_82598.c ixgbe_dcb_82599.c
SRCS    += ixgbe_82598.c ixgbe_82599.c ixgbe_x540.c

# Define SMP for binding ability
# Add INET and INET6 for the standalone code, in-kernel options control it
CFLAGS	+= -DSMP -DIXGBE_FDIR -DINET -DINET6

# IXGBE_LEGACY_TX can be defined to use the older stack interface,
# however it will limit all transmission to the 0 queue, and is thus
# not recommended.
# CFLAGS += -DIXGBE_LEGACY_TX

clean:
	rm -f opt_bdg.h device_if.h bus_if.h pci_if.h setdef* *_StripErr
	rm -f *.o *.kld *.ko
	rm -f @ machine

.include <bsd.kmod.mk>
