X-Git-Url: http://git.openwrt.org/?p=openwrt%2Fsvn-archive%2Farchive.git;a=blobdiff_plain;f=openwrt%2Ftarget%2Flinux%2Fpackage%2Fswitch%2Fsrc%2FMakefile;h=e4b2b7f38bdbbd0bd2fb77cd1ea062209f7654cb;hp=dd8a426ec2728547acbcdb8bee9d785771be5ea9;hb=5f3d2aa188c4bd7cde538dea7bcc763f64ea2e06;hpb=82330b379e128b42af2f8697af97efcd1cec171d;ds=sidebyside diff --git a/openwrt/target/linux/package/switch/src/Makefile b/openwrt/target/linux/package/switch/src/Makefile index dd8a426ec2..e4b2b7f38b 100644 --- a/openwrt/target/linux/package/switch/src/Makefile +++ b/openwrt/target/linux/package/switch/src/Makefile @@ -10,19 +10,9 @@ # 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 +export-objs := switch-core.o -ifeq ($(KERNEL_VERSION),2.4) - -O_TARGET := $(obj-m) - +ifeq ($(MAKING_MODULES),1) -include $(TOPDIR)/Rules.make - endif - -all: modules - -modules: - $(MAKE) -C $(KERNEL_DIR) SUBDIRS=$(shell pwd) TOPDIR="$(KERNEL_DIR)" modules