2007-10-25 12:56:28 +00:00
|
|
|
|
2007-11-06 14:46:12 +00:00
|
|
|
ifndef CONTIKI
|
|
|
|
CONTIKI = ../..
|
|
|
|
endif
|
|
|
|
|
|
|
|
zip: all jar
|
|
|
|
rm -rf contiki-energest-demo
|
|
|
|
mkdir contiki-energest-demo
|
|
|
|
cp nodeid/*.ihex contiki-energest-demo
|
|
|
|
cp energest-demo.ihex contiki-energest-demo
|
2007-11-12 22:30:33 +00:00
|
|
|
cp README contiki-energest-demo
|
2007-11-06 14:46:12 +00:00
|
|
|
cp -r handouts contiki-energest-demo/
|
|
|
|
mkdir contiki-energest-demo/tools
|
|
|
|
cp -r $(CONTIKI)/tools/sky contiki-energest-demo/tools
|
|
|
|
cp dist/*.jar contiki-energest-demo
|
|
|
|
cp Makefile.contiki-energest-demo contiki-energest-demo/Makefile
|
|
|
|
zip -r contiki-energest-demo.zip contiki-energest-demo
|
|
|
|
|
2007-10-25 12:56:28 +00:00
|
|
|
all: burn-nodeids javaapp energest-demo.ihex
|
|
|
|
|
2007-11-26 23:32:32 +00:00
|
|
|
upload: energest-demo.upload
|
|
|
|
|
2007-10-25 12:56:28 +00:00
|
|
|
burn-nodeids:
|
|
|
|
(cd nodeid; $(MAKE))
|
|
|
|
|
2007-11-26 23:32:32 +00:00
|
|
|
rundemo: zip
|
|
|
|
cd contiki-energest-demo; make rundemo
|
|
|
|
|
2007-11-06 14:46:12 +00:00
|
|
|
jar:
|
|
|
|
ant jar
|
|
|
|
|
2007-10-25 12:56:28 +00:00
|
|
|
javaapp:
|
|
|
|
ant compile
|
|
|
|
|
|
|
|
# Ensure that ./contiki-conf.h is included
|
|
|
|
CFLAGS+=-I.
|
|
|
|
|
|
|
|
ifndef TARGET
|
|
|
|
TARGET=sky
|
|
|
|
endif
|
|
|
|
|
|
|
|
ifdef UPDATE
|
|
|
|
CFLAGS += -DUPDATE_TICKS=CLOCK_SECOND*$(UPDATE)
|
|
|
|
else
|
|
|
|
CFLAGS += -DUPDATE_TICKS=CLOCK_SECOND
|
|
|
|
endif
|
|
|
|
|
|
|
|
ifdef CHANNEL
|
|
|
|
CFLAGS += -DRF_CHANNEL=$(CHANNEL)
|
|
|
|
else
|
|
|
|
CFLAGS += -DRF_CHANNEL=20
|
|
|
|
endif
|
|
|
|
|
|
|
|
|
|
|
|
include $(CONTIKI)/Makefile.include
|