mirror of
https://github.com/oliverschmidt/contiki.git
synced 2024-12-22 10:30:13 +00:00
cc65 generates dependency files having the list of prerequisites start with a tab character.
The processing done in the canned command sequence FINALIZE_DEPENDENCY brings this tab character to the beginning of the line making the empty rule look like a command. Therefore we replace the tab character in question with a blank.
This commit is contained in:
parent
283d288f1a
commit
738397b855
@ -30,7 +30,7 @@
|
||||
#
|
||||
# Author: Oliver Schmidt <ol.sc@web.de>
|
||||
#
|
||||
# $Id: Makefile.6502,v 1.28 2009/07/02 22:36:35 oliverschmidt Exp $
|
||||
# $Id: Makefile.6502,v 1.29 2009/07/26 21:27:43 oliverschmidt Exp $
|
||||
#
|
||||
|
||||
ifndef CC65_INC
|
||||
@ -81,7 +81,7 @@ CUSTOM_RULE_C_TO_OBJECTDIR_O = 1
|
||||
$(OBJECTDIR)/%.o: %.c
|
||||
$(CC) $(CFLAGS) --create-dep $< -o $(@:.o=.s)
|
||||
@$(AS) $(ASFLAGS) $(@:.o=.s) -o $@
|
||||
@sed 's!.s:!.o:!' < $(@:.o=.u) > $(@:.o=.d)
|
||||
@sed -e 's!.s:!.o:!' -e 's!\t! !' < $(@:.o=.u) > $(@:.o=.d)
|
||||
@rm -f $(@:.o=.s) $(@:.o=.u)
|
||||
@$(FINALIZE_DEPENDENCY)
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user