3 # Makefile for switch driver
5 # Copyright (C) 2005 Felix Fietkau <nbd@openwrt.org>
7 # This program is free software; you can redistribute it and/or
8 # modify it under the terms of the GNU General Public License
9 # as published by the Free Software Foundation; either version
10 # 2 of the License, or (at your option) any later version.
13 KERNEL_VERSION
= $(shell uname
-r | cut
-d.
-f1
,2)
15 obj-m
:= switch-core.o switch-adm.o switch-robo.o
17 ifeq ($(KERNEL_VERSION
),2.4)
21 -include $(TOPDIR
)/Rules.make
28 $(MAKE
) -C
$(KERNEL_DIR
) SUBDIRS
=$(shell pwd
) TOPDIR
="$(KERNEL_DIR)" modules