osd-contiki/platform/esb/Makefile.esb

31 lines
959 B
Text

# $Id: Makefile.esb,v 1.1 2006/06/17 22:41:27 adamdunkels Exp $
SENSORS = sensors.c irq.c button-sensor.c pir-sensor.c vib-sensor.c \
sound-sensor.c radio-sensor.c ctsrts-sensor.c battery-sensor.c \
temperature-sensor.c
ESB = ir.c beep.c ds1629.c tr1001-drv.c tr1001.c esb-sensors.c
CONTIKI_TARGET_DIRS = . dev apps net loader
CONTIKI_TARGET_MAIN = contiki-esb-main.c
CONTIKI_TARGET_SOURCEFILES += $(SENSORS) $(ESB) \
contiki-esb-default-init-lowlevel.c \
contiki-esb-default-init-apps.c contiki-esb-default-init-net.c \
rs232.c fader.c $(CONTIKI_TARGET_MAIN)
PROJECT_OBJECTFILES += $(OBJECTDIR)/contiki-esb-main.o
MCU=msp430x149
include $(CONTIKI)/cpu/msp430/Makefile.msp430
contiki-$(TARGET).a: ${addprefix $(OBJECTDIR)/,node-id.o symbols.o}
# $(AR) rcf $@ $^
ifndef BASE_IP
BASE_IP := 172.16.1.1
endif
send: $(CONTIKI)/tools/codeprop.c
cc -Wall $^ -o send
%.send: %.cm send
send $(BASE_IP) $<