2007-10-25 14:56:28 +02:00
|
|
|
|
2007-11-06 15:46:12 +01: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
|
|
|
|
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 14:56:28 +02:00
|
|
|
all: burn-nodeids javaapp energest-demo.ihex
|
|
|
|
|
|
|
|
burn-nodeids:
|
|
|
|
(cd nodeid; $(MAKE))
|
|
|
|
|
2007-11-06 15:46:12 +01:00
|
|
|
jar:
|
|
|
|
ant jar
|
|
|
|
|
2007-10-25 14:56:28 +02: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
|
|
|
|
|
|
|
|
|
|
|
|
%.upload: %.ihex
|
|
|
|
cp $< ../testbed-server/image.ihex
|
|
|
|
(cd ../testbed-server; make upload)
|
|
|
|
|
|
|
|
|
|
|
|
include $(CONTIKI)/Makefile.include
|