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