mirror of
https://github.com/oliverschmidt/contiki.git
synced 2024-08-27 16:28:56 +00:00
Added generation of symbols.c if CORE is set
This commit is contained in:
parent
e16b7ffcf0
commit
a46aceb5f8
@ -6,6 +6,7 @@ CONTIKI_SOURCEFILES += mtarch.c rtimer-arch.c elfloader-stub.c
|
|||||||
CC = gcc
|
CC = gcc
|
||||||
LD = gcc
|
LD = gcc
|
||||||
AS = as
|
AS = as
|
||||||
|
NM = nm
|
||||||
OBJCOPY = objcopy
|
OBJCOPY = objcopy
|
||||||
STRIP = strip
|
STRIP = strip
|
||||||
CFLAGSNO = -Wall -g -I/usr/local/include #-pedantic -std=c99 -Werror
|
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
|
%.so: $(OBJECTDIR)/%.o
|
||||||
$(LD) -shared -o $@ $^
|
$(LD) -shared -o $@ $^
|
||||||
|
|
||||||
# .PHONY: symbols.c symbols.h
|
|
||||||
ifdef CORE
|
ifdef CORE
|
||||||
|
.PHONY: symbols.c symbols.h
|
||||||
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)
|
# @${CONTIKI}/tools/make-symbols $(CORE)
|
||||||
else
|
else
|
||||||
symbols.c symbols.h:
|
symbols.c symbols.h:
|
||||||
|
Loading…
Reference in New Issue
Block a user