summaryrefslogtreecommitdiffhomepage
path: root/libs/iwinfo/Makefile
diff options
context:
space:
mode:
authorJo-Philipp Wich <jow@openwrt.org>2009-08-09 02:02:46 +0000
committerJo-Philipp Wich <jow@openwrt.org>2009-08-09 02:02:46 +0000
commit87460e8a05faef9c4bb2c68735eef4f5c5ac15d0 (patch)
treef48ae15da981d9d02c00672dc33a45dedc905a0f /libs/iwinfo/Makefile
parent68fb58dbcafe7f86b47821fc826f157bb9ef0924 (diff)
libs: introduce iwinfo - wireless information abstraction for proprietary broadcom, madwifi and mac80211 drivers.
Diffstat (limited to 'libs/iwinfo/Makefile')
-rw-r--r--libs/iwinfo/Makefile28
1 files changed, 28 insertions, 0 deletions
diff --git a/libs/iwinfo/Makefile b/libs/iwinfo/Makefile
new file mode 100644
index 000000000..7f4585e5b
--- /dev/null
+++ b/libs/iwinfo/Makefile
@@ -0,0 +1,28 @@
+ifneq (,$(wildcard ../../build/config.mk))
+include ../../build/config.mk
+include ../../build/module.mk
+include ../../build/gccconfig.mk
+else
+include standalone.mk
+endif
+
+IWINFO_LDFLAGS =
+IWINFO_CFLAGS = -fstrict-aliasing
+IWINFO_SO = iwinfo.so
+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 $@ $<
+
+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)
+
+install: build
+ cp -pR dist$(LUA_LIBRARYDIR)/* $(LUA_LIBRARYDIR)
+
+clean:
+ rm -f src/*.o src/$(IWINFO_SO)
+
+host-compile: