Support hardcoded dependencies, for generated files

This commit is contained in:
Jim Paris 2010-09-28 02:15:43 -04:00
parent 0e6d5bc9dc
commit 036b80e3c1
2 changed files with 2 additions and 2 deletions

View file

@ -99,7 +99,7 @@ $(foreach t, $(TARGETS_WITH_ROM_VARS), $(eval $(call build_elf_rule,$(t))))
$(call pretty,OBJDUMP,$@) $(call pretty,OBJDUMP,$@)
$Q$(OBJDUMP) -d $< > $@ || rm -f $@ $Q$(OBJDUMP) -d $< > $@ || rm -f $@
%.o: %.c %.o: %.c $(FORCE_C_DEPENDS)
$(call pretty,CC,$@) $(call pretty,CC,$@)
$Q$(CC) $(CFLAGS) $(CFLAGS_THUMB) -MMD -c -o $@ $< $Q$(CC) $(CFLAGS) $(CFLAGS_THUMB) -MMD -c -o $@ $<
@$(FINALIZE_DEPENDENCY) @$(FINALIZE_DEPENDENCY)

View file

@ -22,7 +22,7 @@ $(OBJDIR)/board.a: $(OBJDIR)/board.h
endif endif
# And is built from files in the parent directory # And is built from files in the parent directory
$(OBJDIR)/%.o: %.c $(OBJDIR)/board.h $(OBJDIR)/%.o: %.c $(OBJDIR)/board.h $(FORCE_C_DEPENDS)
$(call pretty,CC,$@) $(call pretty,CC,$@)
$Q$(CC) $(CFLAGS) $(CFLAGS_THUMB) -MMD -c -o $@ $< $Q$(CC) $(CFLAGS) $(CFLAGS_THUMB) -MMD -c -o $@ $<
@$(FINALIZE_DEPENDENCY) @$(FINALIZE_DEPENDENCY)