1
0
Fork 0
mirror of https://github.com/ruby/ruby.git synced 2022-11-09 12:17:21 -05:00

* ext/-test-/win32/dln/extconf.rb: remove test DLL.

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@35488 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
nobu 2012-04-28 14:22:25 +00:00
parent 55ac2cac3c
commit 82fa2995b5

View file

@ -1,12 +1,14 @@
if $mingw or $mswin
$objs = ["dlntest.o"]
$cleanfiles << "$(topdir)/dlntest.dll"
testdll = "$(topdir)/dlntest.dll"
$cleanfiles << testdll
config_string('cleanobjs') {|t| $cleanfiles.concat(t.gsub(/\$\*/, 'dlntest').split)}
create_makefile("-test-/win32/dln")
m = File.read("Makefile")
dlntestlib = "dlntest.#{$LIBEXT}"
m.sub!(/^OBJS =.*/) {"#{$&} #{dlntestlib}"}
FileUtils.rm_f(RbConfig.expand(testdll.dup))
open("Makefile", "wb") do |mf|
mf.puts m, "\n"
sodir = $extout ? "$(RUBYARCHDIR)/" : ''