From e2c38dc72f86764976ed06dfdba7a0ef2112cab0 Mon Sep 17 00:00:00 2001 From: Noe Rubinstein Date: Mon, 13 Feb 2012 18:00:54 +0100 Subject: change Makefile for out-of-tree use --- Makefile | 15 +++++++++++++-- 1 file changed, 13 insertions(+), 2 deletions(-) diff --git a/Makefile b/Makefile index ccde1c5..e31e06b 100644 --- a/Makefile +++ b/Makefile @@ -30,7 +30,10 @@ # Makefile for the Intel(R) PRO/1000 ethernet driver # -EXTRA_CFLAGS += -DEXTERNAL_MDIO +CONFIG_E1000 := m +CONFIG_E1000_EP80579 := y + +ccflags-y += -DEXTERNAL_MDIO gcu-objs := gcu_main.o gcu_if.o @@ -38,7 +41,15 @@ ifeq ($(CONFIG_E1000_EP80579),y) obj-$(CONFIG_E1000) += gcu.o endif - e1000-objs := e1000_main.o e1000_hw.o e1000_ethtool.o e1000_param.o e1000_oem_phy.o obj-$(CONFIG_E1000) += e1000.o + +all: modules + +KSRC ?= /bad__ksrc__not_set +modules modules_install clean: + $(MAKE) -C $(KSRC) M=`pwd` $@ + +distclean: clean + rm -f *.o .*.cmd *.ko modules.builtin modules.order -- cgit v1.2.3