Makefile: use full stem in dependency generation

Previously took only the filename, so the directory
component was stripped. This broke dependencies for
basically every file.
This commit is contained in:
James R 2021-08-14 15:29:21 -07:00
parent 58fa44e8dc
commit 824b1ab28c
1 changed files with 1 additions and 1 deletions

View File

@ -376,7 +376,7 @@ ifdef Echo_name
@printf '%-20.20s\r' $$<
endif
endif
$(.)$(cc) -MM -MF $$@ -MT $(objdir)/$$(*F).o $(2) $$<
$(.)$(cc) -MM -MF $$@ -MT $(objdir)/$$*.o $(2) $$<
endef
$(eval $(call _recipe,c))