summaryrefslogtreecommitdiff
path: root/ext/io
diff options
context:
space:
mode:
authornobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2015-05-08 08:22:06 (GMT)
committernobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2015-05-08 08:22:06 (GMT)
commit596663589b4478371863a71b4436548c670f0fe6 (patch)
tree60902ef86fe5865dbf90ad84fbdaca324c9ee931 /ext/io
parentd75ba7dc3e7d90ceeba068f3de01d2e849a73597 (diff)
extconf.rb: no nmake style VPATH
* ext/io/console/extconf.rb: only nmake needs remove style VPATH. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@50447 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'ext/io')
-rw-r--r--ext/io/console/depend2
-rw-r--r--ext/io/console/extconf.rb2
2 files changed, 1 insertions, 3 deletions
diff --git a/ext/io/console/depend b/ext/io/console/depend
index 2ec922a..85bc81f 100644
--- a/ext/io/console/depend
+++ b/ext/io/console/depend
@@ -1,5 +1,3 @@
-WIN32_VK_HEADER = {$(srcdir)}win32_vk.chksum
-
$(OBJS): $(HDRS) $(ruby_headers) \
$(VK_HEADER) \
$(hdrdir)/ruby/io.h \
diff --git a/ext/io/console/extconf.rb b/ext/io/console/extconf.rb
index 15fa798..8cb3c4e 100644
--- a/ext/io/console/extconf.rb
+++ b/ext/io/console/extconf.rb
@@ -5,7 +5,7 @@ hdr = nil
case
when macro_defined?("_WIN32", "")
# rb_w32_map_errno: 1.8.7
- vk_header = "$(WIN32_VK_HEADER)"
+ vk_header = ($nmake == ?n ? "{$(srcdir)}" : "") << "win32_vk.chksum"
when hdr = %w"termios.h termio.h".find {|h| have_header(h)}
have_func("cfmakeraw", hdr)
when have_header(hdr = "sgtty.h")