2006-06-18 00:41:10 +02:00
|
|
|
ifndef CONTIKI
|
|
|
|
$(error CONTIKI not defined! You must specify where CONTIKI resides!)
|
|
|
|
endif
|
|
|
|
|
2012-02-22 01:46:32 +01:00
|
|
|
ifeq ($(HOST_OS),Darwin)
|
|
|
|
AROPTS = rc
|
|
|
|
endif
|
|
|
|
|
2011-12-19 13:50:50 +01:00
|
|
|
ifdef UIP_CONF_IPV6
|
|
|
|
CFLAGS += -DWITH_UIP6=1
|
|
|
|
endif
|
|
|
|
|
2006-06-18 00:41:10 +02:00
|
|
|
CONTIKI_TARGET_DIRS = . dev
|
|
|
|
CONTIKI_TARGET_MAIN = ${addprefix $(OBJECTDIR)/,contiki-main.o}
|
|
|
|
|
|
|
|
CONTIKI_TARGET_SOURCEFILES = contiki-main.c clock.c leds.c leds-arch.c \
|
2008-07-04 01:11:27 +02:00
|
|
|
button-sensor.c pir-sensor.c vib-sensor.c xmem.c \
|
2009-03-17 16:56:32 +01:00
|
|
|
sensors.c irq.c cfs-posix.c cfs-posix-dir.c
|
2006-06-18 00:41:10 +02:00
|
|
|
|
2012-02-22 00:57:22 +01:00
|
|
|
ifeq ($(HOST_OS),Windows)
|
2012-01-08 19:37:56 +01:00
|
|
|
CONTIKI_TARGET_SOURCEFILES += wpcap-drv.c wpcap.c
|
|
|
|
TARGET_LIBFILES = /lib/w32api/libws2_32.a /lib/w32api/libiphlpapi.a
|
|
|
|
else
|
|
|
|
CONTIKI_TARGET_SOURCEFILES += tapdev-drv.c
|
|
|
|
#math
|
|
|
|
ifndef UIP_CONF_IPV6
|
|
|
|
CONTIKI_TARGET_SOURCEFILES += tapdev.c
|
|
|
|
else
|
|
|
|
CONTIKI_TARGET_SOURCEFILES += tapdev6.c
|
|
|
|
endif
|
|
|
|
endif
|
|
|
|
|
2006-06-18 00:41:10 +02:00
|
|
|
CONTIKI_SOURCEFILES += $(CONTIKI_TARGET_SOURCEFILES)
|
|
|
|
|
|
|
|
.SUFFIXES:
|
|
|
|
|
|
|
|
### Define the CPU directory
|
2007-03-28 22:24:45 +02:00
|
|
|
CONTIKI_CPU=$(CONTIKI)/cpu/native
|
|
|
|
include $(CONTIKI)/cpu/native/Makefile.native
|