2007-05-25 08:08:21 +00:00
|
|
|
# $Id: Makefile.sky,v 1.9 2007/05/25 08:08:21 adamdunkels Exp $
|
2007-03-15 21:44:28 +00:00
|
|
|
|
|
|
|
|
2007-05-22 21:16:37 +00:00
|
|
|
ARCH=msp430.c leds.c watchdog.c light.c button.c spi.c ds2411.c \
|
2007-05-15 08:11:59 +00:00
|
|
|
rom.c xmem.c i2c.c sht11.c \
|
2007-05-25 08:08:21 +00:00
|
|
|
simple-cc2420.c simple-cc2420-arch.c irq.c energest-arch.c \
|
2007-03-22 19:04:43 +00:00
|
|
|
node-id.c sensors.c button-sensor.c cfs-xmem.c \
|
2007-05-15 08:11:59 +00:00
|
|
|
radio-sensor.c uart1.c \
|
|
|
|
#slip.c slip_uart1.c uip-ipchksum.c
|
2007-03-15 21:44:28 +00:00
|
|
|
|
2007-03-25 17:21:33 +00:00
|
|
|
CONTIKI_TARGET_DIRS = . dev apps net
|
2007-03-15 21:44:28 +00:00
|
|
|
ifndef CONTIKI_TARGET_MAIN
|
|
|
|
CONTIKI_TARGET_MAIN = contiki-sky-main.c
|
|
|
|
endif
|
|
|
|
|
2007-05-22 21:16:37 +00:00
|
|
|
CFLAGS += -DENERGEST_CONF_ON=1
|
|
|
|
|
2007-03-15 21:44:28 +00:00
|
|
|
CONTIKI_TARGET_SOURCEFILES += $(ARCH) $(UIPDRIVERS) $(CONTIKI_TARGET_MAIN)
|
|
|
|
|
|
|
|
MCU=msp430x1611
|
|
|
|
include $(CONTIKI)/cpu/msp430/Makefile.msp430
|
|
|
|
|
|
|
|
contiki-$(TARGET).a: ${addprefix $(OBJECTDIR)/,symbols.o}
|
|
|
|
# $(AR) rcf $@ $^
|
|
|
|
|
2007-03-23 16:27:14 +00:00
|
|
|
BSL=msp430-bsl
|
2007-03-15 21:44:28 +00:00
|
|
|
|
|
|
|
ifndef COMPORT
|
|
|
|
COMPORT := /dev/ttyUSB0
|
|
|
|
endif
|
2007-03-23 16:27:14 +00:00
|
|
|
|
|
|
|
%.u: %.ihex
|
2007-03-15 21:44:28 +00:00
|
|
|
$(BSL) --telosb -D -c $(COMPORT) -r -e -I -p $<
|
2007-03-22 19:04:43 +00:00
|
|
|
|
2007-03-22 23:59:54 +00:00
|
|
|
%.send: %.ce
|
2007-03-22 19:04:43 +00:00
|
|
|
$(CONTIKI)/tools/codeprop 192.168.1.2 $<
|