1169249Srwatson# $FreeBSD: releng/10.3/sys/modules/em/Makefile 284522 2015-06-17 18:50:57Z sbruno $ 2253303Sjfv 3253303Sjfv.include <bsd.own.mk> 4253303Sjfv 5181029Sjfv.PATH: ${.CURDIR}/../../dev/e1000 6169240SjfvKMOD = if_em 7284522SsbrunoSRCS = device_if.h bus_if.h pci_if.h opt_ddb.h opt_em.h opt_inet.h \ 8284522Ssbruno opt_inet6.h 9205869SjfvSRCS += $(CORE_SRC) $(LEGACY_SRC) 10205869SjfvSRCS += $(COMMON_SHARED) $(LEGACY_SHARED) $(PCIE_SHARED) 11205869SjfvCORE_SRC = if_em.c e1000_osdep.c 12205869Sjfv# This is the Legacy, pre-PCIE source, it can be 13205869Sjfv# undefined when using modular driver if not needed 14205869SjfvLEGACY_SRC += if_lem.c 15209637SjfvCOMMON_SHARED = e1000_api.c e1000_phy.c e1000_nvm.c e1000_mac.c \ 16238181Skib e1000_manage.c e1000_vf.c e1000_mbx.c e1000_i210.c 17205869SjfvPCIE_SHARED = e1000_80003es2lan.c e1000_ich8lan.c e1000_82571.c e1000_82575.c 18205869SjfvLEGACY_SHARED = e1000_82540.c e1000_82542.c e1000_82541.c e1000_82543.c 1987189Spdeuskar 20205869SjfvCFLAGS += -I${.CURDIR}/../../dev/e1000 21130258Sobrien 22205869Sjfv# DEVICE_POLLING for a non-interrupt-driven method 23169240Sjfv#CFLAGS += -DDEVICE_POLLING 24130258Sobrien 25253303Sjfv.if !defined(KERNBUILDDIR) 26253303Sjfv.if ${MK_INET_SUPPORT} != "no" 27253303Sjfvopt_inet.h: 28253303Sjfv @echo "#define INET 1" > ${.TARGET} 29253303Sjfv.endif 30253303Sjfv 31253303Sjfv.if ${MK_INET6_SUPPORT} != "no" 32253303Sjfvopt_inet6.h: 33253303Sjfv @echo "#define INET6 1" > ${.TARGET} 34253303Sjfv.endif 35253303Sjfv.endif 36253303Sjfv 3787189Spdeuskar.include <bsd.kmod.mk> 38