osd-contiki/cpu/x86/Makefile.x86

33 lines
672 B
Makefile
Raw Normal View History

CONTIKI_CPU_DIRS = .
2007-03-28 22:27:13 +02:00
CONTIKI_SOURCEFILES += mtarch.c elfloader-x86.c
### Compiler definitions
CC = gcc
LD = gcc
AS = as
OBJCOPY = objcopy
STRIP = strip
CFLAGSNO = -Wall -g -I/usr/local/include
CFLAGS += $(CFLAGSNO)
ifeq ($(HOST_OS),Linux)
LDFLAGS = -Wl,-Map=contiki-$(TARGET).map,-export-dynamic
else
LDFLAGS = -Wl
endif
### Compilation rules
%.so: $(OBJECTDIR)/%.o
$(LD) -shared -o $@ $^
2006-12-19 10:21:12 +01:00
ifdef CORE
2012-03-23 19:54:11 +01:00
.PHONY: symbols.c symbols.h
symbols.c symbols.h:
$(NM) $(CORE) | awk -f $(CONTIKI)/tools/mknmlist > symbols.c
else
2006-12-19 10:21:12 +01:00
symbols.c symbols.h:
cp ${CONTIKI}/tools/empty-symbols.c symbols.c
cp ${CONTIKI}/tools/empty-symbols.h symbols.h
endif