2 # Supply your own C cross-compiler; I recommend the one from the OpenWRT buildroot
3 # Also requires a libpcap to link with, use libpcap.a for static, .so for shared
4 CC
=~
/buildroot
/staging_dir_mipsel
/bin
/mipsel-linux-gcc
5 LDFLAGS
=-L~
/buildroot
/staging_dir_mipsel
/lib
8 CCOPTS
=-O2
-Os
-pipe
-mips32
-mtune
=mips32
9 INCLUDE
=-I~
/buildroot
/staging_dir_mipsel
/include
10 SOURCES
=wiviz.c wl_access.c channelhopper.c
11 OBJS
=wiviz.o wl_access.o channelhopper.o
15 ${CC} ${CCOPTS} ${INCLUDE} -o
${TARGET} ${OBJS} ${LDFLAGS} ${LIBS}
18 ${CC} ${CCOPTS} ${INCLUDE} -c
${SOURCES}
19 wl_access.o
: wl_access.c
20 ${CC} ${CCOPTS} ${INCLUDE} -c
${SOURCES}
21 channelhopper.o
: channelhopper.c
22 ${CC} ${CCOPTS} ${INCLUDE} -c
${SOURCES}
25 touch wiviz.c wl_access.c channelhopper.c