nes-proj/tools/wpcapslip/Makefile
2017-09-01 15:45:40 +02:00

22 lines
381 B
Makefile

CONTIKI=../..
CC=gcc
CFLAGS=-Wall -I$(CONTIKI)/os -I.
all: wpcapslip wpcapstdio Connect.class ConnectSocket.class
%.class: %.java
javac $*.java
vpath %.c $(CONTIKI)/os/net
wpcapslip: wpcapslip.o wpcap.o tcpdump.o
wpcapstdio: wpcapstdio.o wpcap.o tcpdump.o
%: %.o
$(CC) $(LDFLAGS) $^ /lib/w32api/libws2_32.a /lib/w32api/libiphlpapi.a -o $@
clean:
rm -f *.class *.exe *.o