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: fix for mingw.

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@35368 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
nobu 2012-04-17 14:21:18 +00:00
parent 902084a60a
commit 22263729af

View file

@ -1,4 +1,4 @@
if /mswin|mingw/ =~ RUBY_PLATFORM
if $mingw or $mswin
$objs = ["dlntest.o"]
$cleanfiles << "$(topdir)/dlntest.dll"
config_string('cleanobjs') {|t| $cleanfiles.concat(t.gsub(/\$\*/, 'dlntest').split)}
@ -9,10 +9,11 @@ if /mswin|mingw/ =~ RUBY_PLATFORM
open("Makefile", "wb") do |mf|
mf.puts m, "\n"
sodir = $extout ? "$(RUBYARCHDIR)/" : ''
mf.print "#{sodir}$(DLLIB): dlntest.#{$LIBEXT}"
mf.puts
mf.puts "dlntest.#{$LIBEXT}: $(topdir)/dlntest.dll"
mf.print "#{sodir}$(DLLIB): $(topdir)/dlntest.dll"
mf.puts
if $mingw
mf.puts "$(topdir)/dlntest.dll: DEFFILE := $(srcdir)/libdlntest.def"
end
mf.puts depend_rules("$(topdir)/dlntest.dll: libdlntest.o libdlntest.def")
mf.puts "\t$(ECHO) linking shared-object $(@F)\n"
mf.print "\t-$(Q)$(RM) $@\n"