#$FreeBSD$
.PATH:  ${.CURDIR}
KMOD    = if_igb
SRCS    = device_if.h bus_if.h pci_if.h opt_bdg.h
SRCS    += if_igb.c $(SHARED_SRCS)
SHARED_SRCS = e1000_api.c e1000_phy.c e1000_nvm.c e1000_mac.c e1000_manage.c
SHARED_SRCS += e1000_osdep.c e1000_82575.c e1000_i210.c e1000_vf.c e1000_mbx.c
CFLAGS  += -DSMP -DINET -DINET6

# Some workloads seem to perform better using the legacy
# stack interface, while others will benefit from the
# MULTIQUEUE interface. This compile option lets the admin
# choose which to configure the driver to use.
#CFLAGS  += -DIGB_MQ_INTERFACE

# DEVICE_POLLING gives you non-interrupt handling
#CFLAGS  += -DDEVICE_POLLING

# IGB_LEGACY_TX gives you the older non-mq stack interface,
# it should be used with a single queue configuration
#CFLAGS  += -DIGB_LEGACY_TX

clean:
	rm -f opt_bdg.h device_if.h bus_if.h pci_if.h setdef*
	rm -f *.o *.kld *.ko
	rm -f @ machine
	rm -f ${CLEANFILES}

man:
	mv /usr/share/man/man4/igb.4.gz /usr/share/man/man4/igbSAVE.4.gz
	cp igb.4 /usr/share/man/man4/

.include <bsd.kmod.mk>
