summaryrefslogtreecommitdiffhomepage
path: root/libs/iwinfo/Makefile
diff options
context:
space:
mode:
authorJo-Philipp Wich <jow@openwrt.org>2009-08-10 13:33:00 +0000
committerJo-Philipp Wich <jow@openwrt.org>2009-08-10 13:33:00 +0000
commit9d1cfdd35993fae618cdfe3b7a8d88b362d74cdd (patch)
tree22744d678f2a46fa522f25f97b91f8574aa5325f /libs/iwinfo/Makefile
parentfdef7c57b1ad8955add04fbfb4505d488f51d46d (diff)
libs/iwinfo: add dummy module for the sdk, use dummy on Darwin
Diffstat (limited to 'libs/iwinfo/Makefile')
-rw-r--r--libs/iwinfo/Makefile7
1 files changed, 7 insertions, 0 deletions
diff --git a/libs/iwinfo/Makefile b/libs/iwinfo/Makefile
index 7f4585e5b..77299471d 100644
--- a/libs/iwinfo/Makefile
+++ b/libs/iwinfo/Makefile
@@ -9,15 +9,22 @@ endif
IWINFO_LDFLAGS =
IWINFO_CFLAGS = -fstrict-aliasing
IWINFO_SO = iwinfo.so
+IWINFO_LUA = iwinfo.lua
IWINFO_OBJ = src/iwinfo_wl.o src/iwinfo_madwifi.o src/iwinfo_wext.o src/iwinfo_lualib.o
%.o: %.c
$(COMPILE) $(IWINFO_CFLAGS) $(LUA_CFLAGS) $(FPIC) -c -o $@ $<
+ifeq ($(OS),Linux)
compile: clean $(IWINFO_OBJ)
$(LINK) $(SHLIB_FLAGS) $(IWINFO_LDFLAGS) -o src/$(IWINFO_SO) $(IWINFO_OBJ)
mkdir -p dist$(LUA_LIBRARYDIR)
cp src/$(IWINFO_SO) dist$(LUA_LIBRARYDIR)/$(IWINFO_SO)
+else
+compile: clean
+ mkdir -p dist$(LUA_LIBRARYDIR)
+ cp src/dummy.lua dist$(LUA_LIBRARYDIR)/$(IWINFO_LUA)
+endif
install: build
cp -pR dist$(LUA_LIBRARYDIR)/* $(LUA_LIBRARYDIR)