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:
parent
caf1021828
commit
f0ebcbe77f
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue