2008-09-29 14:38:18 +02:00
|
|
|
# $Id: Makefile.esb,v 1.12 2008/09/29 12:38:18 joxe Exp $
|
2006-06-18 00:41:10 +02:00
|
|
|
|
|
|
|
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
|
2007-03-16 12:34:05 +01:00
|
|
|
ESB = ir.c beep.c ds1629.c tr1001-uip.c tr1001-gcr.c gcr.c \
|
2008-09-29 14:38:18 +02:00
|
|
|
esb-sensors.c node-id.c eeprom.c
|
2008-07-11 17:27:57 +02:00
|
|
|
CFS_EEPROM = cfs-eeprom.c
|
|
|
|
CFS_COFFEE = cfs-coffee.c cfs-coffee-arch.c
|
|
|
|
|
2006-06-18 00:41:10 +02:00
|
|
|
CONTIKI_TARGET_DIRS = . dev apps net loader
|
2006-10-06 09:58:19 +02:00
|
|
|
ifndef CONTIKI_TARGET_MAIN
|
2006-06-18 00:41:10 +02:00
|
|
|
CONTIKI_TARGET_MAIN = contiki-esb-main.c
|
2006-10-06 09:58:19 +02:00
|
|
|
endif
|
2006-06-18 00:41:10 +02:00
|
|
|
|
|
|
|
CONTIKI_TARGET_SOURCEFILES += $(SENSORS) $(ESB) \
|
|
|
|
contiki-esb-default-init-lowlevel.c \
|
2007-06-01 14:46:07 +02:00
|
|
|
contiki-esb-default-init-apps.c \
|
2006-10-09 11:19:02 +02:00
|
|
|
rs232.c rs232-putchar.c fader.c $(CONTIKI_TARGET_MAIN)
|
2007-11-26 20:35:06 +01:00
|
|
|
ifeq ($(NETSTACK),uip)
|
2007-06-01 14:46:07 +02:00
|
|
|
CONTIKI_TARGET_SOURCEFILES += contiki-esb-init-net-uip.c
|
|
|
|
else
|
2007-11-26 20:35:06 +01:00
|
|
|
ifeq ($(NETSTACK),uip-noslip)
|
2007-06-01 14:46:07 +02:00
|
|
|
CONTIKI_TARGET_SOURCEFILES += contiki-esb-init-net-uip-noslip.c
|
|
|
|
else
|
|
|
|
CONTIKI_TARGET_SOURCEFILES += contiki-esb-default-init-net.c
|
|
|
|
endif
|
|
|
|
endif
|
2006-06-18 00:41:10 +02:00
|
|
|
|
2008-07-11 17:27:57 +02:00
|
|
|
ifeq ($(CFS),coffee)
|
|
|
|
CONTIKI_TARGET_SOURCEFILES += $(CFS_COFFEE)
|
|
|
|
else
|
|
|
|
CONTIKI_TARGET_SOURCEFILES += $(CFS_EEPROM)
|
|
|
|
endif
|
|
|
|
|
2006-10-06 09:58:19 +02:00
|
|
|
include $(CONTIKI)/platform/$(TARGET)/apps/Makefile.apps
|
|
|
|
|
|
|
|
#PROJECT_OBJECTFILES += $(OBJECTDIR)/contiki-esb-main.o
|
2006-06-18 00:41:10 +02:00
|
|
|
|
|
|
|
MCU=msp430x149
|
|
|
|
include $(CONTIKI)/cpu/msp430/Makefile.msp430
|
|
|
|
|
2006-10-06 09:58:19 +02:00
|
|
|
contiki-$(TARGET).a: ${addprefix $(OBJECTDIR)/,symbols.o}
|
2006-06-18 00:41:10 +02:00
|
|
|
# $(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) $<
|
2007-03-23 17:19:41 +01:00
|
|
|
|
|
|
|
### System dependent Makefile
|
|
|
|
|
|
|
|
ifndef WINDIR
|
|
|
|
ifdef OS
|
|
|
|
ifneq (,$(findstring Windows,$(OS)))
|
|
|
|
WINDIR := Windows
|
|
|
|
endif
|
|
|
|
endif
|
|
|
|
endif
|
|
|
|
|
|
|
|
ifeq (${HOSTTYPE},FreeBSD)
|
|
|
|
# settings for FreeBSD
|
|
|
|
-include $(CONTIKI)/platform/$(TARGET)/buildscripts/Makefile.freebsd
|
|
|
|
else
|
|
|
|
ifndef WINDIR
|
|
|
|
# settings for unix
|
|
|
|
-include $(CONTIKI)/platform/$(TARGET)/buildscripts/Makefile.unix
|
|
|
|
else
|
|
|
|
# settings for windows
|
|
|
|
-include $(CONTIKI)/platform/$(TARGET)/buildscripts/Makefile.win
|
|
|
|
endif
|
|
|
|
endif
|