Makefile revision 253303
1169249Srwatson# $FreeBSD: head/sys/modules/em/Makefile 253303 2013-07-12 22:36:26Z jfv $ 2253303Sjfv 3253303Sjfv.include <bsd.own.mk> 4253303Sjfv 5181029Sjfv.PATH: ${.CURDIR}/../../dev/e1000 6169240SjfvKMOD = if_em 7253303SjfvSRCS = device_if.h bus_if.h pci_if.h opt_inet.h opt_inet6.h 8205869SjfvSRCS += $(CORE_SRC) $(LEGACY_SRC) 9205869SjfvSRCS += $(COMMON_SHARED) $(LEGACY_SHARED) $(PCIE_SHARED) 10205869SjfvCORE_SRC = if_em.c e1000_osdep.c 11205869Sjfv# This is the Legacy, pre-PCIE source, it can be 12205869Sjfv# undefined when using modular driver if not needed 13205869SjfvLEGACY_SRC += if_lem.c 14209637SjfvCOMMON_SHARED = e1000_api.c e1000_phy.c e1000_nvm.c e1000_mac.c \ 15238181Skib e1000_manage.c e1000_vf.c e1000_mbx.c e1000_i210.c 16205869SjfvPCIE_SHARED = e1000_80003es2lan.c e1000_ich8lan.c e1000_82571.c e1000_82575.c 17205869SjfvLEGACY_SHARED = e1000_82540.c e1000_82542.c e1000_82541.c e1000_82543.c 1887189Spdeuskar 19205869SjfvCFLAGS += -I${.CURDIR}/../../dev/e1000 20130258Sobrien 21205869Sjfv# DEVICE_POLLING for a non-interrupt-driven method 22169240Sjfv#CFLAGS += -DDEVICE_POLLING 23130258Sobrien 24253303Sjfv.if !defined(KERNBUILDDIR) 25253303Sjfv.if ${MK_INET_SUPPORT} != "no" 26253303Sjfvopt_inet.h: 27253303Sjfv @echo "#define INET 1" > ${.TARGET} 28253303Sjfv.endif 29253303Sjfv 30253303Sjfv.if ${MK_INET6_SUPPORT} != "no" 31253303Sjfvopt_inet6.h: 32253303Sjfv @echo "#define INET6 1" > ${.TARGET} 33253303Sjfv.endif 34253303Sjfv.endif 35253303Sjfv 3687189Spdeuskar.include <bsd.kmod.mk> 37