summaryrefslogtreecommitdiff
path: root/ext/extmk.rb
diff options
context:
space:
mode:
authoreban <eban@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2002-09-10 09:30:50 +0000
committereban <eban@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2002-09-10 09:30:50 +0000
commitd54331b0afe5800093b4a2b89e7b5a07b483f45e (patch)
treed9d85aae01336d981a3bd2e8f7aa86f887653641 /ext/extmk.rb
parent97c0e2c0cda73a23229ae493662ee4a239e1483b (diff)
* ext/extmk.rb, lib/mkmf.rb ($INCFLAGS): new var for -I$(topdir).
* lib/mkmf.rb: add #define WIN32_LEAN_AND_MEAN to improve compile times. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@2834 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'ext/extmk.rb')
-rw-r--r--ext/extmk.rb3
1 files changed, 2 insertions, 1 deletions
diff --git a/ext/extmk.rb b/ext/extmk.rb
index ca46e25beb..25153fe208 100644
--- a/ext/extmk.rb
+++ b/ext/extmk.rb
@@ -41,7 +41,7 @@ require 'find'
require 'ftools'
require 'shellwords'
-$topdir = $hdrdir = File.expand_path(".")
+$topdir = File.expand_path(".")
$top_srcdir = srcdir
Object.class_eval do remove_method :create_makefile end
@@ -374,6 +374,7 @@ def extmake(target)
$CPPFLAGS = CONFIG['CPPFLAGS']
$LDFLAGS = ""
$LIBPATH = [$libdir]
+ $INCFLAGS = "-I#{$topdir}"
dir_config("opt")