mirror of
https://github.com/oliverschmidt/contiki.git
synced 2024-12-21 19:29:18 +00:00
avoid unnecessary symbols.c/h copying
This commit is contained in:
parent
ea85cc1396
commit
95ae5c5d51
@ -166,8 +166,8 @@ loader-init.o: ${CONTIKI_TARGET}/loader/loader-init.S
|
|||||||
$(AS) -o $(notdir $(<:.S=.o)) $<
|
$(AS) -o $(notdir $(<:.S=.o)) $<
|
||||||
# cp loader-init.o build-app/
|
# cp loader-init.o build-app/
|
||||||
|
|
||||||
.PHONY: symbols.c symbols.h
|
|
||||||
ifdef CORE
|
ifdef CORE
|
||||||
|
.PHONY: symbols.c symbols.h
|
||||||
symbols.c:
|
symbols.c:
|
||||||
$(NM) $(CORE) | awk -f $(CONTIKI)/tools/mknmlist > symbols.c
|
$(NM) $(CORE) | awk -f $(CONTIKI)/tools/mknmlist > symbols.c
|
||||||
else
|
else
|
||||||
|
@ -224,11 +224,11 @@ CUSTOM_RULE_C_TO_CE = 1
|
|||||||
|
|
||||||
CUSTOM_RULE_LINK = 1
|
CUSTOM_RULE_LINK = 1
|
||||||
|
|
||||||
.PHONY: symbols.c symbols.h
|
|
||||||
ifdef CORE
|
ifdef CORE
|
||||||
ifeq ($(wildcard $(CORE)),)
|
ifeq ($(wildcard $(CORE)),)
|
||||||
${error $(CORE) doesn't exist}
|
${error $(CORE) doesn't exist}
|
||||||
endif
|
endif
|
||||||
|
.PHONY: symbols.c symbols.h
|
||||||
symbols.c:
|
symbols.c:
|
||||||
$(NM) $(CORE) | awk -f $(CONTIKI)/tools/mknmlist > symbols.c
|
$(NM) $(CORE) | awk -f $(CONTIKI)/tools/mknmlist > symbols.c
|
||||||
else
|
else
|
||||||
|
@ -21,8 +21,8 @@ endif
|
|||||||
%.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 $(CONTIKI)/tools/mknmlist > symbols.c
|
$(NM) $(CORE) | awk -f $(CONTIKI)/tools/mknmlist > symbols.c
|
||||||
else
|
else
|
||||||
|
Loading…
Reference in New Issue
Block a user