summaryrefslogtreecommitdiff
path: root/win32/Makefile.sub
diff options
context:
space:
mode:
authorNobuyoshi Nakada <nobu@ruby-lang.org>2021-02-20 21:05:57 +0900
committerNobuyoshi Nakada <nobu@ruby-lang.org>2021-02-20 21:05:57 +0900
commit169c726f60b18fa283ac903809c3350318d3f06e (patch)
treec71d2fcfe4408437a8317c4ed2ba74f3646562a3 /win32/Makefile.sub
parentcfd162d535c7a4f8b1f95255cc6be696a8b75557 (diff)
[Win32] Fixed preprocessed file path
Output preprocessed files under the corresponding directory to the source files.
Diffstat (limited to 'win32/Makefile.sub')
-rw-r--r--win32/Makefile.sub8
1 files changed, 4 insertions, 4 deletions
diff --git a/win32/Makefile.sub b/win32/Makefile.sub
index 46cca97..f03cd15 100644
--- a/win32/Makefile.sub
+++ b/win32/Makefile.sub
@@ -1262,16 +1262,16 @@ $(ruby_pc): $(RBCONFIG)
{$(srcdir)/missing}.c.i:
$(ECHO) preprocessing $(<:\=/)
- $(Q) $(CC) $(XCFLAGS) $(CPPFLAGS) -P $(CSRCFLAG)$(<:\=/) > $@
+ $(Q) $(CC) $(XCFLAGS) $(CPPFLAGS) -P -Fi:$@ $(CSRCFLAG)$(<:\=/)
{$(win_srcdir)}.c.i:
$(ECHO) preprocessing $(<:\=/)
- $(Q) $(CC) $(XCFLAGS) $(CPPFLAGS) -P $(CSRCFLAG)$(<:\=/)
+ $(Q) $(CC) $(XCFLAGS) $(CPPFLAGS) -P -Fi:$@ $(CSRCFLAG)$(<:\=/)
{$(srcdir)}.c{}.i:
$(ECHO) preprocessing $(<:\=/)
- $(Q) $(CC) $(XCFLAGS) $(CPPFLAGS) -P $(CSRCFLAG)$(<:\=/)
+ $(Q) $(CC) $(XCFLAGS) $(CPPFLAGS) -P -Fi:$@ $(CSRCFLAG)$(<:\=/)
.c.i:
$(ECHO) preprocessing $(<:\=/)
- $(Q) $(CC) $(XCFLAGS) $(CPPFLAGS) -P $(CSRCFLAG)$(<:\=/)
+ $(Q) $(CC) $(XCFLAGS) $(CPPFLAGS) -P -Fi:$@ $(CSRCFLAG)$(<:\=/)
.rc.res:
$(ECHO) compiling $(<:\=/)