summaryrefslogtreecommitdiff
path: root/win32/Makefile.sub
diff options
context:
space:
mode:
authorNobuyoshi Nakada <nobu@ruby-lang.org>2019-11-08 18:18:05 +0900
committerNobuyoshi Nakada <nobu@ruby-lang.org>2019-11-08 18:49:18 +0900
commit7acf7a4f9036a176f0b09cb23646e6bfb1af1c2f (patch)
tree66c5150bc88bb01e64d3feec59b63017b54c0a1a /win32/Makefile.sub
parente02b819482f4e78b47599a6ce7624d4d9a13eb09 (diff)
Add VPATH to rbinc rule for nmake
Notes
Notes: Merged: https://github.com/ruby/ruby/pull/2660
Diffstat (limited to 'win32/Makefile.sub')
-rw-r--r--win32/Makefile.sub3
1 files changed, 3 insertions, 0 deletions
diff --git a/win32/Makefile.sub b/win32/Makefile.sub
index a2521d4..a2d9d0d 100644
--- a/win32/Makefile.sub
+++ b/win32/Makefile.sub
@@ -1284,6 +1284,9 @@ $(ruby_pc): $(RBCONFIG)
$(ECHO) preprocessing $(<:\=/)
$(Q) $(CC) $(XCFLAGS) $(CPPFLAGS) -P $(CSRCFLAG)$(<:\=/)
+{$(srcdir)}.rb.rbinc:
+ $(Q) $(BASERUBY) $(srcdir)/tool/mk_builtin_loader.rb $<
+
.rc.res:
$(ECHO) compiling $(<:\=/)
$(Q) $(RC) $(RCFLAGS) -I. -I$(<D) $(iconinc) -I$(srcdir)/win32 $(RFLAGS) -fo$@ $(<:\=/)