diff options
author | Jo-Philipp Wich <jow@openwrt.org> | 2010-09-27 13:12:46 +0000 |
---|---|---|
committer | Jo-Philipp Wich <jow@openwrt.org> | 2010-09-27 13:12:46 +0000 |
commit | 653c9e782f54f3ab980b678227d0429259ce038b (patch) | |
tree | fecabca7b888702640f75abf539b4e2b9d04a707 /contrib/package/iwinfo/src/Makefile | |
parent | 01e8069ee0e6eaa02391d8ac6cafe338191b5d00 (diff) |
[contrib] introduce libiwinfo, splitted apart from LuCI for general usage
- added NL80211 interface for b43 / ath5k / ath9k
- introduces txpower() and encryption() methods
- introduces iwinfo cli frontend for data access
- supports scanning in AP mode (experimental) and through wpa_supplicant
Diffstat (limited to 'contrib/package/iwinfo/src/Makefile')
-rw-r--r-- | contrib/package/iwinfo/src/Makefile | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/contrib/package/iwinfo/src/Makefile b/contrib/package/iwinfo/src/Makefile new file mode 100644 index 000000000..1d4319fb0 --- /dev/null +++ b/contrib/package/iwinfo/src/Makefile @@ -0,0 +1,15 @@ +IWINFO_LDFLAGS = $(LDFLAGS) -shared -llua $(if $(CRAP),,-lnl-tiny) +IWINFO_CFLAGS = $(CFLAGS) -std=gnu99 -fstrict-aliasing $(if $(CRAP),-DUSE_WL,-DUSE_MADWIFI -DUSE_NL80211) +IWINFO_SO = iwinfo.so +IWINFO_OBJ = $(if $(CRAP),iwinfo_wl.o,iwinfo_madwifi.o iwinfo_nl80211.o) \ + iwinfo_wext.o iwinfo_wext_scan.o iwinfo_lualib.o + +%.o: %.c + $(CC) $(IWINFO_CFLAGS) $(LUA_CFLAGS) $(FPIC) -c -o $@ $< + +compile: clean $(IWINFO_OBJ) + $(LD) $(IWINFO_LDFLAGS) -o $(IWINFO_SO) $(IWINFO_OBJ) + +clean: + rm -f *.o $(IWINFO_SO) + |