зеркало из https://github.com/github/ruby.git
zlib: clean zlib
* ext/zlib/extconf.rb: clean zlib libraries generated in the place. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@57747 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
Родитель
c0be1c7bb3
Коммит
9da188550c
|
@ -30,14 +30,19 @@ else
|
|||
$libs = append_library($libs, "zdll")
|
||||
dll = "zlib1.dll"
|
||||
$extso << dll
|
||||
$cleanfiles << "$(topdir)/#{dll}" << "$(ZIMPLIB)"
|
||||
zmk = "\t$(MAKE) -f $(ZSRC)/win32/Makefile.#{$nmake ? 'msc' : 'gcc'} TOP=$(ZSRC)"
|
||||
addconf.push(
|
||||
"ZIMPLIB = zdll.lib\n",
|
||||
"$(TARGET_SO): $(ZIMPLIB)\n",
|
||||
"$(ZIMPLIB):\n",
|
||||
"\t$(MAKE) -f $(ZSRC)/win32/Makefile.#{$nmake ? 'msc' : 'gcc'} TOP=$(ZSRC) $@\n",
|
||||
"#{zmk} $@\n",
|
||||
"install-so: $(topdir)/#{dll}",
|
||||
"$(topdir)/#{dll}: $(ZIMPLIB)\n",
|
||||
"\t$(Q) $(COPY) #{dll} $(@D)\n",
|
||||
"clean: clean-zsrc\n",
|
||||
"clean-zsrc:\n",
|
||||
"#{zmk} clean\n",
|
||||
)
|
||||
end
|
||||
Logging.message "using zlib in #{zsrc}\n"
|
||||
|
|
Загрузка…
Ссылка в новой задаче