2011-03-03 12:44:28 +00:00
|
|
|
DEFINES=PROJECT_CONF_H=\"project-conf.h\"
|
|
|
|
|
|
|
|
# Define the target platform
|
|
|
|
ifndef TARGET
|
|
|
|
TARGET=z1
|
|
|
|
endif
|
|
|
|
|
2011-03-03 12:50:56 +00:00
|
|
|
CONTIKI_SOURCEFILES += cc2420-arch.c sensors.c sht11.c
|
|
|
|
PROJECT_SOURCEFILES = i2cmaster.c tmp102.c adxl345.c battery-sensor.c sky-sensors.c #potentiometer-sensor.c
|
|
|
|
|
2011-03-03 12:44:28 +00:00
|
|
|
# Give a name to your project
|
|
|
|
CONTIKI = ../../../../contiki-2.x/
|
|
|
|
CONTIKI_PROJECT = rssi-scanner
|
|
|
|
|
|
|
|
# Compile project typing "make"
|
|
|
|
all: $(CONTIKI_PROJECT)
|
|
|
|
|
|
|
|
# Upload project typing "make upload"
|
|
|
|
upload: $(CONTIKI_PROJECT).upload
|
|
|
|
|
|
|
|
%.class: %.java
|
|
|
|
javac $(basename $<).java
|
|
|
|
|
2011-03-03 12:55:33 +00:00
|
|
|
viewrssi3d: ViewRSSI3D.class
|
|
|
|
make login | java ViewRSSI3D
|
|
|
|
|
2011-03-03 12:44:28 +00:00
|
|
|
viewrssi: ViewRSSI.class
|
|
|
|
make login | java ViewRSSI
|
|
|
|
|
|
|
|
# ContikiProjects: including the makefile
|
|
|
|
#include ../../../Makefile.projects
|
|
|
|
include $(CONTIKI)/Makefile.include
|
2011-03-03 12:50:56 +00:00
|
|
|
|