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
|
|
|
|
|
2012-05-17 15:27:50 +00:00
|
|
|
ifeq ($(UIP_CONF_IPV6),1)
|
2011-12-19 12:50:50 +00:00
|
|
|
CFLAGS += -DWITH_UIP6=1
|
|
|
|
endif
|
|
|
|
|
2011-04-12 19:45:27 +00:00
|
|
|
CONTIKI_TARGET_DIRS = . dev ctk
|
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 \
|
2011-04-12 19:45:27 +00:00
|
|
|
sensors.c irq.c cfs-posix.c cfs-posix-dir.c ctk-curses.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
|
|
|
|
CONTIKI_TARGET_SOURCEFILES += tapdev-drv.c
|
|
|
|
#math
|
2012-05-17 15:27:50 +00:00
|
|
|
ifneq ($(UIP_CONF_IPV6),1)
|
2012-01-08 18:37:56 +00:00
|
|
|
CONTIKI_TARGET_SOURCEFILES += tapdev.c
|
|
|
|
else
|
|
|
|
CONTIKI_TARGET_SOURCEFILES += tapdev6.c
|
|
|
|
endif
|
|
|
|
endif
|
|
|
|
|
2013-03-20 16:16:37 +00:00
|
|
|
CONTIKI_SOURCEFILES += $(CTK) ctk-conio.c $(CONTIKI_TARGET_SOURCEFILES)
|
2006-06-17 22:41:10 +00:00
|
|
|
|
|
|
|
.SUFFIXES:
|
|
|
|
|
|
|
|
### Define the CPU directory
|
2007-03-28 20:24:45 +00:00
|
|
|
CONTIKI_CPU=$(CONTIKI)/cpu/native
|
|
|
|
include $(CONTIKI)/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
|
|
|
|
2013-12-12 19:45:45 +00:00
|
|
|
MODULES+=core/net/ip core/net/ipv4 core/net core/net/ipv6 core/net/rime core/net/mac
|