From a46aceb5f8f25838de92e51dd9f649433a519134 Mon Sep 17 00:00:00 2001 From: adamdunkels Date: Tue, 8 Jan 2008 08:04:41 +0000 Subject: [PATCH] Added generation of symbols.c if CORE is set --- cpu/native/Makefile.native | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/cpu/native/Makefile.native b/cpu/native/Makefile.native index b0dd160ef..a9c7130ad 100644 --- a/cpu/native/Makefile.native +++ b/cpu/native/Makefile.native @@ -6,6 +6,7 @@ CONTIKI_SOURCEFILES += mtarch.c rtimer-arch.c elfloader-stub.c CC = gcc LD = gcc AS = as +NM = nm OBJCOPY = objcopy STRIP = strip CFLAGSNO = -Wall -g -I/usr/local/include #-pedantic -std=c99 -Werror @@ -17,10 +18,10 @@ LDFLAGS = -Wl,-Map=contiki-$(TARGET).map,-export-dynamic %.so: $(OBJECTDIR)/%.o $(LD) -shared -o $@ $^ -# .PHONY: symbols.c symbols.h ifdef CORE +.PHONY: symbols.c symbols.h symbols.c symbols.h: - $(NM) $(CORE) | awk -f ../../tools/mknmlist > symbols.c + $(NM) -C $(CORE) | grep -v @ | grep -v dll_crt0 | awk -f ../../tools/mknmlist > symbols.c # @${CONTIKI}/tools/make-symbols $(CORE) else symbols.c symbols.h: