2007-05-13 08:41:11 +00:00
|
|
|
CONTIKI_CPU_DIRS = .
|
|
|
|
|
2015-07-01 21:30:46 +00:00
|
|
|
CONTIKI_SOURCEFILES += mtarch.c gdt.c helpers.S idt.c cpu.c
|
2006-06-17 22:41:10 +00:00
|
|
|
|
|
|
|
### Compiler definitions
|
|
|
|
CC = gcc
|
2007-03-15 21:52:00 +00:00
|
|
|
LD = gcc
|
2006-06-17 22:41:10 +00:00
|
|
|
AS = as
|
|
|
|
OBJCOPY = objcopy
|
2015-07-01 21:20:20 +00:00
|
|
|
SIZE = size
|
2006-06-17 22:41:10 +00:00
|
|
|
STRIP = strip
|
2007-05-19 07:54:53 +00:00
|
|
|
CFLAGSNO = -Wall -g -I/usr/local/include
|
2006-06-17 22:41:10 +00:00
|
|
|
CFLAGS += $(CFLAGSNO)
|
2012-02-22 00:46:32 +00:00
|
|
|
ifeq ($(HOST_OS),Linux)
|
|
|
|
LDFLAGS = -Wl,-Map=contiki-$(TARGET).map,-export-dynamic
|
|
|
|
else
|
|
|
|
LDFLAGS = -Wl
|
|
|
|
endif
|
2006-06-17 22:41:10 +00:00
|
|
|
|
|
|
|
### Compilation rules
|
|
|
|
|
|
|
|
%.so: $(OBJECTDIR)/%.o
|
|
|
|
$(LD) -shared -o $@ $^
|
2006-12-19 09:21:12 +00:00
|
|
|
|
2007-03-22 23:58:08 +00:00
|
|
|
ifdef CORE
|
2012-03-23 18:54:11 +00:00
|
|
|
.PHONY: symbols.c symbols.h
|
2007-03-22 23:58:08 +00:00
|
|
|
symbols.c symbols.h:
|
2009-09-03 17:41:58 +00:00
|
|
|
$(NM) $(CORE) | awk -f $(CONTIKI)/tools/mknmlist > symbols.c
|
2007-03-22 23:58:08 +00:00
|
|
|
else
|
2006-12-19 09:21:12 +00:00
|
|
|
symbols.c symbols.h:
|
2011-04-03 11:24:58 +00:00
|
|
|
cp ${CONTIKI}/tools/empty-symbols.c symbols.c
|
|
|
|
cp ${CONTIKI}/tools/empty-symbols.h symbols.h
|
2007-03-22 23:58:08 +00:00
|
|
|
endif
|