summaryrefslogtreecommitdiff
path: root/openwrt/package/wiviz/src/Makefile
diff options
context:
space:
mode:
authornbd <nbd@3c298f89-4303-0410-b956-a3cf2f4a3e73>2005-08-29 11:30:35 +0000
committernbd <nbd@3c298f89-4303-0410-b956-a3cf2f4a3e73>2005-08-29 11:30:35 +0000
commit2346e8fd145e4c45760d9d5519a99db8ef1239df (patch)
tree514b217793ad4e60c8eb5030d6e2144599dfc8ab /openwrt/package/wiviz/src/Makefile
parent4f99a13308237667eed1572faec096451924077e (diff)
add Wi-viz
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@1785 3c298f89-4303-0410-b956-a3cf2f4a3e73
Diffstat (limited to 'openwrt/package/wiviz/src/Makefile')
-rw-r--r--openwrt/package/wiviz/src/Makefile25
1 files changed, 25 insertions, 0 deletions
diff --git a/openwrt/package/wiviz/src/Makefile b/openwrt/package/wiviz/src/Makefile
new file mode 100644
index 0000000000..6f230359df
--- /dev/null
+++ b/openwrt/package/wiviz/src/Makefile
@@ -0,0 +1,25 @@
+## Wi-viz makefile
+# Supply your own C cross-compiler; I recommend the one from the OpenWRT buildroot
+# Also requires a libpcap to link with, use libpcap.a for static, .so for shared
+CC=~/buildroot/staging_dir_mipsel/bin/mipsel-linux-gcc
+LDFLAGS=-L~/buildroot/staging_dir_mipsel/lib
+LIBS=-lpcap
+
+CCOPTS=-O2 -Os -pipe -mips32 -mtune=mips32
+INCLUDE=-I~/buildroot/staging_dir_mipsel/include
+SOURCES=wiviz.c wl_access.c channelhopper.c
+OBJS=wiviz.o wl_access.o channelhopper.o
+TARGET=wiviz
+
+wiviz: ${OBJS}
+ ${CC} ${CCOPTS} ${INCLUDE} -o ${TARGET} ${OBJS} ${LDFLAGS} ${LIBS}
+
+wiviz.o: wiviz.c
+ ${CC} ${CCOPTS} ${INCLUDE} -c ${SOURCES}
+wl_access.o: wl_access.c
+ ${CC} ${CCOPTS} ${INCLUDE} -c ${SOURCES}
+channelhopper.o: channelhopper.c
+ ${CC} ${CCOPTS} ${INCLUDE} -c ${SOURCES}
+
+remake:
+ touch wiviz.c wl_access.c channelhopper.c