summaryrefslogtreecommitdiff
path: root/win32
diff options
context:
space:
mode:
authornobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2012-03-26 05:08:55 +0000
committernobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2012-03-26 05:08:55 +0000
commitddc7bcd60eaa0e470bf2837af31992f1599ef41f (patch)
tree09946c78b525475d4f339a4a3286e865463474e0 /win32
parent7a0d81eaa25edf97a413c85e5560a05a30aaa5ad (diff)
* win32/Makefile.sub (newline.c, miniprelude.c): search from source
directory, not depending on VPATH. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@35135 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'win32')
-rw-r--r--win32/Makefile.sub11
1 files changed, 11 insertions, 0 deletions
diff --git a/win32/Makefile.sub b/win32/Makefile.sub
index eba330b361..a796b32356 100644
--- a/win32/Makefile.sub
+++ b/win32/Makefile.sub
@@ -370,6 +370,17 @@ ruby: $(PROGRAM)
rubyw: $(WPROGRAM)
stub: $(STUBPROGRAM)
+!if !exist(newline.c) && exist($(srcdir)/newline.c)
+NEWLINE_C = $(srcdir)/newline.c
+!else
+NEWLINE_C = newline.c
+!endif
+!if !exist(miniprelude.c) && exist($(srcdir)/miniprelude.c)
+MINIPRELUDE_C = $(srcdir)/miniprelude.c
+!else
+MINIPRELUDE_C = miniprelude.c
+!endif
+
!include $(srcdir)/common.mk
!ifdef SCRIPTPROGRAMS