2010-10-25 12:42:40 +02:00
|
|
|
CONTIKI=../../..
|
|
|
|
|
|
|
|
|
|
|
|
CFLAGS=-Wall -Werror -I$(CONTIKI)/core -I.
|
|
|
|
|
|
|
|
ifdef WITH_STDIN
|
|
|
|
CFLAGS += -DWITH_STDIN
|
|
|
|
endif
|
|
|
|
|
|
|
|
all: clean wpcapslip6
|
|
|
|
ifdef WITH_STDIN
|
|
|
|
mv wpcapslip6.exe wpcapslip6-stdin.exe
|
|
|
|
endif
|
|
|
|
|
|
|
|
clean:
|
2011-05-24 08:31:05 +02:00
|
|
|
rm -f wpcapslip6.o wpcap6.o ip-process.o fakeuip.o
|
2010-10-25 12:42:40 +02:00
|
|
|
|
|
|
|
|
|
|
|
vpath %.c $(CONTIKI)/core/net
|
|
|
|
|
2011-05-24 08:31:05 +02:00
|
|
|
wpcapslip6: wpcapslip6.o wpcap6.o ip-process.o fakeuip.o
|
2010-10-25 12:42:40 +02:00
|
|
|
|
|
|
|
%: %.o
|
|
|
|
$(CC) $(LDFLAGS) $^ /lib/w32api/libws2_32.a /lib/w32api/libiphlpapi.a -o $@
|