Support hardcoded dependencies, for generated files
This commit is contained in:
parent
0e6d5bc9dc
commit
036b80e3c1
|
@ -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)
|
||||||
|
|
|
@ -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)
|
||||||
|
|
Loading…
Reference in a new issue