summaryrefslogtreecommitdiffstats
path: root/openwrt/target/linux/package/switch/src/Makefile
diff options
context:
space:
mode:
authorwbx <wbx@3c298f89-4303-0410-b956-a3cf2f4a3e73>2005-12-25 14:18:55 +0000
committerwbx <wbx@3c298f89-4303-0410-b956-a3cf2f4a3e73>2005-12-25 14:18:55 +0000
commitfa8fb4e7c3be746703fee0dd34285f462ba104ec (patch)
tree38d2e6fe4d6e5dda5d3d514bedd9c2f38ef610ed /openwrt/target/linux/package/switch/src/Makefile
parent4d747a7b6c5cf6f8415131a7e8b33a11c6788d5b (diff)
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
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@2776 3c298f89-4303-0410-b956-a3cf2f4a3e73
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 000000000..dd8a426ec
--- /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