summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorNoe Rubinstein <nrubinstein@avencall.com>2012-02-13 18:00:54 +0100
committerNoe Rubinstein <nrubinstein@avencall.com>2012-02-13 18:00:54 +0100
commite2c38dc72f86764976ed06dfdba7a0ef2112cab0 (patch)
tree45bf6e6754f5daa917ca5a1f65412b7ce176f314
parentb52e56bb158f3a624f07ba49a66eba0c90474758 (diff)
change Makefile for out-of-tree use
-rw-r--r--Makefile15
1 files 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