2008-02-24 21:14:25 +00:00
|
|
|
CONTIKI=../..
|
|
|
|
|
2015-03-24 13:44:44 +00:00
|
|
|
CC=gcc
|
2017-09-01 13:45:40 +00:00
|
|
|
CFLAGS=-Wall -I$(CONTIKI)/os -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
|
2017-09-01 13:29:00 +00:00
|
|
|
|
|
|
|
vpath %.c $(CONTIKI)/os/net
|
2008-02-24 21:14:25 +00:00
|
|
|
|
|
|
|
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:
|
2017-09-01 13:29:00 +00:00
|
|
|
rm -f *.class *.exe *.o
|