Makefile revision 284522
172980Sbp# $FreeBSD: stable/10/sys/modules/em/Makefile 284522 2015-06-17 18:50:57Z sbruno $
272980Sbp
372980Sbp.include <bsd.own.mk>
472980Sbp
572980Sbp.PATH:  ${.CURDIR}/../../dev/e1000
672980SbpKMOD    = if_em
772980SbpSRCS    = device_if.h bus_if.h pci_if.h opt_ddb.h opt_em.h opt_inet.h \
8107843Stjr	  opt_inet6.h 
989244SmsmithSRCS    += $(CORE_SRC) $(LEGACY_SRC)
1089244SmsmithSRCS	+= $(COMMON_SHARED) $(LEGACY_SHARED) $(PCIE_SHARED)
1189244SmsmithCORE_SRC = if_em.c e1000_osdep.c
1289244Smsmith# This is the Legacy, pre-PCIE source, it can be
1389244Smsmith# undefined when using modular driver if not needed
14227650SkevloLEGACY_SRC    += if_lem.c
1589244SmsmithCOMMON_SHARED = e1000_api.c e1000_phy.c e1000_nvm.c e1000_mac.c \
1689244Smsmith		e1000_manage.c e1000_vf.c e1000_mbx.c e1000_i210.c
1789244SmsmithPCIE_SHARED = e1000_80003es2lan.c e1000_ich8lan.c e1000_82571.c e1000_82575.c
1889244SmsmithLEGACY_SHARED = e1000_82540.c e1000_82542.c e1000_82541.c e1000_82543.c
1989244Smsmith
2089244SmsmithCFLAGS += -I${.CURDIR}/../../dev/e1000
2189244Smsmith
2289244Smsmith# DEVICE_POLLING for a non-interrupt-driven method
2389244Smsmith#CFLAGS  += -DDEVICE_POLLING
2489244Smsmith
2589244Smsmith.if !defined(KERNBUILDDIR)
2689244Smsmith.if ${MK_INET_SUPPORT} != "no"
2789244Smsmithopt_inet.h:
2889244Smsmith	@echo "#define INET 1" > ${.TARGET}
2989244Smsmith.endif
3089244Smsmith
3189244Smsmith.if ${MK_INET6_SUPPORT} != "no"
3289244Smsmithopt_inet6.h:
3389244Smsmith	@echo "#define INET6 1" > ${.TARGET}
3489244Smsmith.endif
3589244Smsmith.endif
3689244Smsmith
3789244Smsmith.include <bsd.kmod.mk>
3889244Smsmith