mirror of
https://github.com/oliverschmidt/contiki.git
synced 2025-08-07 18:25:14 +00:00
Support hardcoded dependencies, for generated files
This commit is contained in:
@@ -99,7 +99,7 @@ $(foreach t, $(TARGETS_WITH_ROM_VARS), $(eval $(call build_elf_rule,$(t))))
|
||||
$(call pretty,OBJDUMP,$@)
|
||||
$Q$(OBJDUMP) -d $< > $@ || rm -f $@
|
||||
|
||||
%.o: %.c
|
||||
%.o: %.c $(FORCE_C_DEPENDS)
|
||||
$(call pretty,CC,$@)
|
||||
$Q$(CC) $(CFLAGS) $(CFLAGS_THUMB) -MMD -c -o $@ $<
|
||||
@$(FINALIZE_DEPENDENCY)
|
||||
|
@@ -22,7 +22,7 @@ $(OBJDIR)/board.a: $(OBJDIR)/board.h
|
||||
endif
|
||||
|
||||
# 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,$@)
|
||||
$Q$(CC) $(CFLAGS) $(CFLAGS_THUMB) -MMD -c -o $@ $<
|
||||
@$(FINALIZE_DEPENDENCY)
|
||||
|
Reference in New Issue
Block a user