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}
|
|
|
|
|
|
|
|
CONTIKI_TARGET_SOURCEFILES = contiki-main.c clock.c leds.c leds-arch.c \
|
2008-07-03 23:11:27 +00:00
|
|
|
button-sensor.c pir-sensor.c vib-sensor.c xmem.c \
|
2017-05-13 11:09:58 +00:00
|
|
|
sensors.c irq.c 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
|
2013-12-05 18:21:06 +00:00
|
|
|
CONTIKI_TARGET_SOURCEFILES += tapdev-drv.c linuxradio-drv.c
|
2012-01-08 18:37:56 +00:00
|
|
|
#math
|
2014-11-12 09:18:29 +00:00
|
|
|
ifneq ($(CONTIKI_WITH_IPV6),1)
|
2012-01-08 18:37:56 +00:00
|
|
|
CONTIKI_TARGET_SOURCEFILES += tapdev.c
|
|
|
|
else
|
|
|
|
CONTIKI_TARGET_SOURCEFILES += tapdev6.c
|
|
|
|
endif
|
|
|
|
endif
|
|
|
|
|
2017-05-13 11:09:58 +00:00
|
|
|
CONTIKI_SOURCEFILES += $(CONTIKI_TARGET_SOURCEFILES)
|
2006-06-17 22:41:10 +00:00
|
|
|
|
|
|
|
.SUFFIXES:
|
|
|
|
|
|
|
|
### 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
|
2011-04-12 19:45:27 +00:00
|
|
|
|
2013-03-30 17:11:17 +00:00
|
|
|
ifeq ($(HOST_OS),Windows)
|
|
|
|
CFLAGS += -I/usr/include/ncurses
|
|
|
|
endif
|
|
|
|
|
2013-03-26 00:12:09 +00:00
|
|
|
CURSES_LIBS ?= -lncurses
|
|
|
|
|
2013-03-26 07:10:59 +00:00
|
|
|
TARGET_LIBFILES += $(CURSES_LIBS)
|
2011-04-12 19:45:27 +00:00
|
|
|
|
2017-05-17 20:00:16 +00:00
|
|
|
MODULES+=core/net core/net/mac core/net/mac/framer core/net/ip64-addr/ \
|
|
|
|
core/net/mac/csma core/net/mac/nullmac
|