2006-06-17 22:41:10 +00:00
|
|
|
ifndef CONTIKI
|
|
|
|
$(error CONTIKI not defined! You must specify where CONTIKI resides!)
|
|
|
|
endif
|
|
|
|
|
2012-02-22 00:46:32 +00:00
|
|
|
ifeq ($(HOST_OS),Darwin)
|
|
|
|
AROPTS = rc
|
|
|
|
endif
|
|
|
|
|
2017-05-13 11:09:58 +00:00
|
|
|
CONTIKI_TARGET_DIRS = . dev
|
2006-06-17 22:41:10 +00:00
|
|
|
CONTIKI_TARGET_MAIN = ${addprefix $(OBJECTDIR)/,contiki-main.o}
|
|
|
|
|
2017-11-10 15:11:18 +00:00
|
|
|
CONTIKI_TARGET_SOURCEFILES += platform.c clock.c xmem.c leds-arch.c
|
|
|
|
CONTIKI_TARGET_SOURCEFILES += cfs-posix.c cfs-posix-dir.c
|
2006-06-17 22:41:10 +00:00
|
|
|
|
2012-02-21 23:57:22 +00:00
|
|
|
ifeq ($(HOST_OS),Windows)
|
2012-01-08 18:37:56 +00:00
|
|
|
CONTIKI_TARGET_SOURCEFILES += wpcap-drv.c wpcap.c
|
|
|
|
TARGET_LIBFILES = /lib/w32api/libws2_32.a /lib/w32api/libiphlpapi.a
|
|
|
|
else
|
2017-10-01 19:40:51 +00:00
|
|
|
CONTIKI_TARGET_SOURCEFILES += tun6-net.c
|
2012-01-08 18:37:56 +00:00
|
|
|
endif
|
|
|
|
|
2017-12-07 13:09:09 +00:00
|
|
|
ifeq ($(HOST_OS),Linux)
|
|
|
|
TARGET_LIBFILES += -lrt
|
|
|
|
endif
|
|
|
|
|
2017-05-13 11:09:58 +00:00
|
|
|
CONTIKI_SOURCEFILES += $(CONTIKI_TARGET_SOURCEFILES)
|
2006-06-17 22:41:10 +00:00
|
|
|
|
|
|
|
.SUFFIXES:
|
|
|
|
|
2017-09-08 15:48:29 +00:00
|
|
|
# Enable nullmac by default
|
|
|
|
MAKE_MAC ?= MAKE_MAC_NULLMAC
|
|
|
|
|
2006-06-17 22:41:10 +00:00
|
|
|
### Define the CPU directory
|
2017-06-28 13:57:13 +00:00
|
|
|
CONTIKI_CPU=$(CONTIKI)/arch/cpu/native
|
|
|
|
include $(CONTIKI)/arch/cpu/native/Makefile.native
|