X-Git-Url: http://git.rohieb.name/openwrt.git/blobdiff_plain/88b96c0debc94bcf02b02d87f199b25a87989395..d652f305ac241e90971276bfe460d4939ea32100:/target/linux/package/switch/src/Makefile?ds=inline diff --git a/target/linux/package/switch/src/Makefile b/target/linux/package/switch/src/Makefile index dd8a426ec..e4b2b7f38 100644 --- a/target/linux/package/switch/src/Makefile +++ b/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