fix kernel version detection in switch driver
[openwrt/svn-archive/archive.git] / openwrt / target / linux / package / switch / src / Makefile
index e4b2b7f38bdbbd0bd2fb77cd1ea062209f7654cb..4c5f911ea28fd29a5886be4806656993cb6df15e 100644 (file)
@@ -11,8 +11,9 @@
 #
 
 obj-m  := switch-core.o switch-adm.o switch-robo.o
-export-objs := switch-core.o
 
 ifeq ($(MAKING_MODULES),1)
+export-objs := switch-core.o
+
 -include $(TOPDIR)/Rules.make
 endif