avoid unnecessary symbols.c/h copying
This commit is contained in:
parent
ea85cc1396
commit
95ae5c5d51
3 changed files with 3 additions and 3 deletions
|
@ -166,8 +166,8 @@ loader-init.o: ${CONTIKI_TARGET}/loader/loader-init.S
|
|||
$(AS) -o $(notdir $(<:.S=.o)) $<
|
||||
# cp loader-init.o build-app/
|
||||
|
||||
.PHONY: symbols.c symbols.h
|
||||
ifdef CORE
|
||||
.PHONY: symbols.c symbols.h
|
||||
symbols.c:
|
||||
$(NM) $(CORE) | awk -f $(CONTIKI)/tools/mknmlist > symbols.c
|
||||
else
|
||||
|
|
|
@ -224,11 +224,11 @@ CUSTOM_RULE_C_TO_CE = 1
|
|||
|
||||
CUSTOM_RULE_LINK = 1
|
||||
|
||||
.PHONY: symbols.c symbols.h
|
||||
ifdef CORE
|
||||
ifeq ($(wildcard $(CORE)),)
|
||||
${error $(CORE) doesn't exist}
|
||||
endif
|
||||
.PHONY: symbols.c symbols.h
|
||||
symbols.c:
|
||||
$(NM) $(CORE) | awk -f $(CONTIKI)/tools/mknmlist > symbols.c
|
||||
else
|
||||
|
|
|
@ -21,8 +21,8 @@ endif
|
|||
%.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 $(CONTIKI)/tools/mknmlist > symbols.c
|
||||
else
|
||||
|
|
Loading…
Reference in a new issue