2008-02-24 21:14:25 +00:00
|
|
|
CONTIKI=../..
|
|
|
|
|
2015-03-24 13:44:44 +00:00
|
|
|
CC=gcc
|
|
|
|
CFLAGS=-Wall -I$(CONTIKI)/core -I.
|
2008-02-07 09:39:35 +00:00
|
|
|
|
2015-03-24 13:44:44 +00:00
|
|
|
all: wpcapslip wpcapstdio Connect.class ConnectSocket.class
|
2008-02-07 09:39:35 +00:00
|
|
|
|
2015-03-24 13:44:44 +00:00
|
|
|
%.class: %.java
|
|
|
|
javac $*.java
|
|
|
|
|
2008-02-24 21:14:25 +00:00
|
|
|
vpath %.c $(CONTIKI)/core/net
|
|
|
|
|
|
|
|
wpcapslip: wpcapslip.o wpcap.o tcpdump.o
|
2008-02-07 09:39:35 +00:00
|
|
|
|
2015-03-24 13:44:44 +00:00
|
|
|
wpcapstdio: wpcapstdio.o wpcap.o tcpdump.o
|
|
|
|
|
2008-02-07 09:39:35 +00:00
|
|
|
%: %.o
|
|
|
|
$(CC) $(LDFLAGS) $^ /lib/w32api/libws2_32.a /lib/w32api/libiphlpapi.a -o $@
|
2015-03-24 13:44:44 +00:00
|
|
|
|
|
|
|
clean:
|
|
|
|
rm -f *.class *.exe *.o
|