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
|
|
|
|
|
2012-05-17 17:27:50 +02:00
|
|
|
ifeq ($(UIP_CONF_IPV6),1)
|
2011-12-19 13:50:50 +01:00
|
|
|
CFLAGS += -DWITH_UIP6=1
|
|
|
|
endif
|
|
|
|
|
2011-04-12 21:45:27 +02:00
|
|
|
CONTIKI_TARGET_DIRS = . dev ctk
|
2006-06-18 00:41:10 +02:00
|
|
|
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 \
|
2011-04-12 21:45:27 +02:00
|
|
|
sensors.c irq.c cfs-posix.c cfs-posix-dir.c ctk-curses.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
|
2012-05-17 17:27:50 +02:00
|
|
|
ifneq ($(UIP_CONF_IPV6),1)
|
2012-01-08 19:37:56 +01:00
|
|
|
CONTIKI_TARGET_SOURCEFILES += tapdev.c
|
|
|
|
else
|
|
|
|
CONTIKI_TARGET_SOURCEFILES += tapdev6.c
|
|
|
|
endif
|
|
|
|
endif
|
|
|
|
|
2013-03-20 17:16:37 +01:00
|
|
|
CONTIKI_SOURCEFILES += $(CTK) ctk-conio.c $(CONTIKI_TARGET_SOURCEFILES)
|
2006-06-18 00:41:10 +02:00
|
|
|
|
|
|
|
.SUFFIXES:
|
|
|
|
|
|
|
|
### Define the CPU directory
|
2007-03-28 22:24:45 +02:00
|
|
|
CONTIKI_CPU=$(CONTIKI)/cpu/native
|
|
|
|
include $(CONTIKI)/cpu/native/Makefile.native
|
2011-04-12 21:45:27 +02:00
|
|
|
|
2013-03-30 18:11:17 +01:00
|
|
|
ifeq ($(HOST_OS),Windows)
|
|
|
|
CFLAGS += -I/usr/include/ncurses
|
|
|
|
endif
|
|
|
|
|
2013-03-26 01:12:09 +01:00
|
|
|
CURSES_LIBS ?= -lncurses
|
|
|
|
|
2013-03-26 08:10:59 +01:00
|
|
|
TARGET_LIBFILES += $(CURSES_LIBS)
|
2011-04-12 21:45:27 +02:00
|
|
|
|
2013-11-22 09:46:21 +01:00
|
|
|
MODULES+=core/net/ip core/net/ipv4 core/net core/net/ipv6
|