1#$FreeBSD$
2
3.include <bsd.own.mk>
4
5.PATH:  ${.CURDIR}/../../dev/ixgbe
6
7KMOD    = if_ixgbe
8SRCS    = device_if.h bus_if.h pci_if.h
9SRCS	+= opt_inet.h opt_inet6.h
10SRCS    += ixgbe.c ixv.c
11# Shared source
12SRCS    += ixgbe_common.c ixgbe_api.c ixgbe_phy.c ixgbe_mbx.c ixgbe_vf.c
13SRCS    += ixgbe_dcb.c ixgbe_dcb_82598.c ixgbe_dcb_82599.c
14SRCS    += ixgbe_82599.c ixgbe_82598.c ixgbe_x540.c
15CFLAGS+= -I${.CURDIR}/../../dev/ixgbe -DSMP -DIXGBE_FDIR
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