Use $(MIQ_OBJDIR) in generated dependencies

This is to avoid a problem where MinGW GCC sometimes writes the
dependency as D:/path/to/obj.o, which confuses make.
This commit is contained in:
Christophe de Dinechin 2018-11-19 23:07:09 +01:00
parent caf1021828
commit f0ebcbe77f
1 changed files with 1 additions and 1 deletions

View File

@ -66,7 +66,7 @@ GEN_NEWS= grep '^$(shell git tag -n1 `git describe`)' $@ || \
CFLAGS_STD= $(CC_STD:%=-std=%) $(CFLAGS_PIC)
CXXFLAGS_STD= $(CXX_STD:%=-std=%) $(CFLAGS_PIC)
CFLAGS_DEPENDENCIES= -MD -MP -MF $(@).d -MT $@
CFLAGS_DEPENDENCIES= -MD -MP -MF "$(@).d" -MT "$(@:$(MIQ_OBJDIR)%=\$$(MIQ_OBJDIR)%)"
CFLAGS_TARGET_debug= -g -Wall -fno-inline
CFLAGS_TARGET_opt= -g -O3 -Wall