mirror of
https://github.com/RIOT-OS/RIOT.git
synced 2024-12-29 04:50:03 +01:00
Prepend path to dependency info files with sed
The old way was error prone due to it's use of a fixed path file and confusing. closes #775
This commit is contained in:
parent
dea33bd8b6
commit
7229287e47
@ -33,7 +33,8 @@ $(BINDIR)$(MODULE).a: $(OBJ) $(ASMOBJ)
|
||||
$(BINDIR)%.o: %.c
|
||||
$(AD)$(CC) $(CFLAGS) $(INCLUDES) -c $*.c -o $(BINDIR)$*.o
|
||||
$(AD)$(CC) $(CFLAGS) $(INCLUDES) -MM $*.c > $(BINDIR)$*.d
|
||||
@printf "$(BINDIR)"|cat - $(BINDIR)$*.d > /tmp/riot_out && mv /tmp/riot_out $(BINDIR)$*.d
|
||||
@# prepend path to dependency info file
|
||||
$(AD)sed -i -e "1s|^|$(BINDIR)|" $(BINDIR)$*.d
|
||||
|
||||
$(BINDIR)%.o: %.s
|
||||
$(AD)$(AS) $(ASFLAGS) $*.s -o $(BINDIR)$*.o
|
||||
|
Loading…
Reference in New Issue
Block a user