summaryrefslogtreecommitdiff
path: root/openwrt/target/linux/package/switch/src/Makefile
diff options
context:
space:
mode:
authorWaldemar Brodkorb <mail@waldemar-brodkorb.de>2005-12-25 14:18:55 +0000
committerWaldemar Brodkorb <mail@waldemar-brodkorb.de>2005-12-25 14:18:55 +0000
commitb659ffeda93d20f7a34b45e7a67a7c64c250d682 (patch)
tree54c8237804b69b159759a7c55715068181518c98 /openwrt/target/linux/package/switch/src/Makefile
parenta5a4129e57d412938b7a9c2f6e0bf4863d3a48cc (diff)
downloadmtk-20170518-b659ffeda93d20f7a34b45e7a67a7c64c250d682.zip
mtk-20170518-b659ffeda93d20f7a34b45e7a67a7c64c250d682.tar.gz
mtk-20170518-b659ffeda93d20f7a34b45e7a67a7c64c250d682.tar.bz2
first try to integrate nbds great new switch drivers for 2.4/2.6 with full vlan support for Netgear and Linksys routers, robo and adm switch, tada
SVN-Revision: 2776
Diffstat (limited to 'openwrt/target/linux/package/switch/src/Makefile')
-rw-r--r--openwrt/target/linux/package/switch/src/Makefile28
1 files changed, 28 insertions, 0 deletions
diff --git a/openwrt/target/linux/package/switch/src/Makefile b/openwrt/target/linux/package/switch/src/Makefile
new file mode 100644
index 0000000..dd8a426
--- /dev/null
+++ b/openwrt/target/linux/package/switch/src/Makefile
@@ -0,0 +1,28 @@
+# $Id$
+#
+# Makefile for switch driver
+#
+# Copyright (C) 2005 Felix Fietkau <nbd@openwrt.org>
+#
+# This program is free software; you can redistribute it and/or
+# modify it under the terms of the GNU General Public License
+# as published by the Free Software Foundation; either version
+# 2 of the License, or (at your option) any later version.
+#
+
+KERNEL_VERSION = $(shell uname -r | cut -d. -f1,2)
+
+obj-m := switch-core.o switch-adm.o switch-robo.o
+
+ifeq ($(KERNEL_VERSION),2.4)
+
+O_TARGET := $(obj-m)
+
+-include $(TOPDIR)/Rules.make
+
+endif
+
+all: modules
+
+modules:
+ $(MAKE) -C $(KERNEL_DIR) SUBDIRS=$(shell pwd) TOPDIR="$(KERNEL_DIR)" modules