avoid unnecessary symbols.c/h copying

This commit is contained in:
simonduq 2012-03-23 19:54:11 +01:00
parent ea85cc1396
commit 95ae5c5d51
3 changed files with 3 additions and 3 deletions

View File

@ -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

View File

@ -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

View File

@ -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