Skip to content

Commit

Permalink
[Mk] fix incorrectly generated .d files
Browse files Browse the repository at this point in the history
Rule was not correct when using BUILD_PREFIX

Signed-off-by: Christopher Hall <hsw@openmoko.com>
  • Loading branch information
hxw committed Nov 5, 2009
1 parent 4e90213 commit 3b14f74
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions samo-lib/Mk/rules.mk
Original file line number Diff line number Diff line change
Expand Up @@ -37,11 +37,11 @@ print-%:

# compilation rules
%.o: %.c
$(GCC) -M $(CFLAGS) $< > ${@:.o=.d}
$(GCC) -MM $(CFLAGS) -o -MT $@ $< > ${@:.o=.d}
$(GCC) $(CFLAGS) -c -o $@ -Wa,-ahl=${@:.o=.asm33} $<

${BUILD_PREFIX}%.o: %.c
$(GCC) -M $(CFLAGS) $< > ${@:.o=.d}
$(GCC) -MM $(CFLAGS) -MT $@ $< > ${@:.o=.d}
$(GCC) $(CFLAGS) -c -o $@ -Wa,-ahl=${@:.o=.asm33} $<

%.o: %.s
Expand Down

0 comments on commit 3b14f74

Please sign in to comment.