diff options
| author | Alejandro Soto <alejandro@34project.org> | 2024-05-22 15:41:32 -0600 |
|---|---|---|
| committer | Alejandro Soto <alejandro@34project.org> | 2024-05-24 05:58:43 -0600 |
| commit | 1b8dfb1a4b577178cdcd24462df85c7b9920b33e (patch) | |
| tree | 2aabd973d427c94da28a0d36a686b34aa2103984 | |
| parent | 2d7390ffa53d9146c64b4dbe698cda3835cb3201 (diff) | |
mk/cc: generate cc header dependency files
Diffstat (limited to '')
| -rw-r--r-- | mk/cc.mk | 4 |
1 files changed, 3 insertions, 1 deletions
@@ -25,8 +25,10 @@ endef define cc_unit_rule define obj_rules $(3): $(2) $$(obj_deps) - $$(call run,CC,$$<) $(core_info/$(1)/cross)gcc $(core_info/$(1)/cc_flags) -c $$< -o $$@ + $$(call run,CC,$$<) $(core_info/$(1)/cross)gcc $(core_info/$(1)/cc_flags) -MMD -c $$< -o $$@ endef $$(eval $$(call add_obj_rules,$(1))) + + -include $$(patsubst %.o,%.d,$(3)) endef |
