dd8a426ec2728547acbcdb8bee9d785771be5ea9
[openwrt.git] / openwrt / target / linux / package / switch / src / Makefile
1 # $Id$
2 #
3 # Makefile for switch driver
4 #
5 # Copyright (C) 2005 Felix Fietkau <nbd@openwrt.org>
6 #
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.
11 #
12
13 KERNEL_VERSION = $(shell uname -r | cut -d. -f1,2)
14
15 obj-m := switch-core.o switch-adm.o switch-robo.o
16
17 ifeq ($(KERNEL_VERSION),2.4)
18
19 O_TARGET := $(obj-m)
20
21 -include $(TOPDIR)/Rules.make
22
23 endif
24
25 all: modules
26
27 modules:
28 $(MAKE) -C $(KERNEL_DIR) SUBDIRS=$(shell pwd) TOPDIR="$(KERNEL_DIR)" modules
This page took 0.035515 seconds and 3 git commands to generate.