2015-07-03 01:13:53 +02:00
|
|
|
CONTIKI_CPU_DIRS += . init/common
|
2007-05-13 10:41:11 +02:00
|
|
|
|
2015-04-29 19:58:29 +02:00
|
|
|
CONTIKI_SOURCEFILES += gdt.c helpers.S idt.c cpu.c
|
2006-06-18 00:41:10 +02:00
|
|
|
|
|
|
|
CC = gcc
|
2007-03-15 22:52:00 +01:00
|
|
|
LD = gcc
|
2006-06-18 00:41:10 +02:00
|
|
|
AS = as
|
|
|
|
OBJCOPY = objcopy
|
2015-07-01 23:20:20 +02:00
|
|
|
SIZE = size
|
2006-06-18 00:41:10 +02:00
|
|
|
STRIP = strip
|
2015-04-29 19:58:29 +02:00
|
|
|
|
2015-07-10 16:44:28 +02:00
|
|
|
CFLAGS += -Wall
|
2015-07-06 23:39:18 +02:00
|
|
|
LDFLAGS += -Wl,-Map=contiki-$(TARGET).map,--build-id=none
|
2015-07-10 16:01:57 +02:00
|
|
|
|
|
|
|
ifeq ($(BUILD_RELEASE),1)
|
|
|
|
CFLAGS += -Os -fno-strict-aliasing
|
|
|
|
LDFLAGS += -Wl,--strip-all
|
2015-07-10 16:44:28 +02:00
|
|
|
else
|
|
|
|
CFLAGS += -Og -ggdb3
|
2015-07-10 16:01:57 +02:00
|
|
|
endif
|