From 3b7c3017fc514526b4119ca0b9440a8bca145f81 Mon Sep 17 00:00:00 2001 From: Werner Almesberger Date: Wed, 20 Jun 2012 18:43:26 -0300 Subject: [PATCH] tools/Makefile: new targets "update" and "ping" for firmware update and ping --- tools/Makefile | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/tools/Makefile b/tools/Makefile index d598e87..c4b3802 100644 --- a/tools/Makefile +++ b/tools/Makefile @@ -20,7 +20,15 @@ LDLIBS = -L../../ben-wpan/tools/lib -latrf -lusb OBJS = antorcha.o hash.o +.PHONY: all update ping + all: $(MAIN) $(MAIN): $(OBJS) $(CC) $(CFLAGS) -o $@ $(OBJS) $(LDLIBS) + +update: + ./antorcha -F ../fw/antorcha.bin + +ping: + ./antorcha -P