* instruby.rb: add dryrun mode.
* ext/extmk.rb (extmake): avoid Borland make's quirk behavior. * lib/mkmf.rb (link_command): opt is not a makefile macro. * bcc32/Makefile.sub ($(LIBRUBY_SO) $(LIBRUBY)): EXTOBJS were not linked. * bcc32/Makefile.sub (ext/extinit.obj): missing. * bcc32/Makefile.sub (TRY_LINK): options have to place before any non-option arguments. * win32/Makefile.sub (TRY_LINK): need -link and -libpath options. * bcc32/Makefile.sub, win32/Makefile.sub (RANLIB): logical operator never work with command.com. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@2979 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
parent
79c8b98fac
commit
db1c27bb37
21
ChangeLog
21
ChangeLog
@ -1,3 +1,24 @@
|
|||||||
|
Tue Oct 22 10:13:05 2002 Nobuyoshi Nakada <nobu.nokada@softhome.net>
|
||||||
|
|
||||||
|
* instruby.rb: add dryrun mode.
|
||||||
|
|
||||||
|
* ext/extmk.rb (extmake): avoid Borland make's quirk behavior.
|
||||||
|
|
||||||
|
* lib/mkmf.rb (link_command): opt is not a makefile macro.
|
||||||
|
|
||||||
|
* bcc32/Makefile.sub ($(LIBRUBY_SO) $(LIBRUBY)): EXTOBJS were not
|
||||||
|
linked.
|
||||||
|
|
||||||
|
* bcc32/Makefile.sub (ext/extinit.obj): missing.
|
||||||
|
|
||||||
|
* bcc32/Makefile.sub (TRY_LINK): options have to place before any
|
||||||
|
non-option arguments.
|
||||||
|
|
||||||
|
* win32/Makefile.sub (TRY_LINK): need -link and -libpath options.
|
||||||
|
|
||||||
|
* bcc32/Makefile.sub, win32/Makefile.sub (RANLIB): logical
|
||||||
|
operator never work with command.com.
|
||||||
|
|
||||||
Tue Oct 22 00:59:59 2002 WATANABE Hirofumi <eban@ruby-lang.org>
|
Tue Oct 22 00:59:59 2002 WATANABE Hirofumi <eban@ruby-lang.org>
|
||||||
|
|
||||||
* configure.in (RUBY_CPPOUTFILE): fix cache file bug.
|
* configure.in (RUBY_CPPOUTFILE): fix cache file bug.
|
||||||
|
@ -110,7 +110,7 @@ STACK = 0x2000000
|
|||||||
|
|
||||||
XCFLAGS =
|
XCFLAGS =
|
||||||
|
|
||||||
ARFLAGS = /a
|
ARFLAGS = /a
|
||||||
LD = ilink32 -q -Gn
|
LD = ilink32 -q -Gn
|
||||||
LDSHARED = $(LD)
|
LDSHARED = $(LD)
|
||||||
XLDFLAGS = -Tpe c0x32.obj
|
XLDFLAGS = -Tpe c0x32.obj
|
||||||
@ -137,7 +137,9 @@ LIBRUBY_SO = $(RUBY_SO_NAME).dll
|
|||||||
LIBRUBY = $(RUBY_SO_NAME).lib
|
LIBRUBY = $(RUBY_SO_NAME).lib
|
||||||
LIBRUBYARG = $(LIBRUBY)
|
LIBRUBYARG = $(LIBRUBY)
|
||||||
|
|
||||||
|
!ifndef EXTOBJS
|
||||||
EXTOBJS = dmyext.obj
|
EXTOBJS = dmyext.obj
|
||||||
|
!endif
|
||||||
|
|
||||||
MAINOBJ = main.obj
|
MAINOBJ = main.obj
|
||||||
WINMAINOBJ = winmain.obj
|
WINMAINOBJ = winmain.obj
|
||||||
@ -285,7 +287,7 @@ s,@CFLAGS@,$(CFLAGS),;t t
|
|||||||
s,@CPPFLAGS@,$(CPPFLAGS),;t t
|
s,@CPPFLAGS@,$(CPPFLAGS),;t t
|
||||||
s,@CXXFLAGS@,$(CXXFLAGS),;t t
|
s,@CXXFLAGS@,$(CXXFLAGS),;t t
|
||||||
s,@FFLAGS@,$(FFLAGS),;t t
|
s,@FFLAGS@,$(FFLAGS),;t t
|
||||||
s,@LDFLAGS@,$(LDFLAGS),;t t
|
s,@LDFLAGS@,,;t t
|
||||||
s,@LIBS@,$(LIBS),;t t
|
s,@LIBS@,$(LIBS),;t t
|
||||||
s,@exec_prefix@,$${prefix},;t t
|
s,@exec_prefix@,$${prefix},;t t
|
||||||
s,@prefix@,,;t t
|
s,@prefix@,,;t t
|
||||||
@ -320,9 +322,9 @@ s,@target_os@,$(OS),;t t
|
|||||||
s,@CC@,$(CC),;t t
|
s,@CC@,$(CC),;t t
|
||||||
s,@CPP@,cpp32,;t t
|
s,@CPP@,cpp32,;t t
|
||||||
s,@YACC@,$(YACC),;t t
|
s,@YACC@,$(YACC),;t t
|
||||||
s,@RANLIB@,rem,;t t
|
s,@RANLIB@,,;t t
|
||||||
s,@AR@,$(AR),;t t
|
s,@AR@,$(AR),;t t
|
||||||
s,@ARFLAGS@,$(ARFLAGS),;t t
|
s,@ARFLAGS@,$(ARFLAGS) ,;t t
|
||||||
s,@LN_S@,$(LN_S),;t t
|
s,@LN_S@,$(LN_S),;t t
|
||||||
s,@SET_MAKE@,$(SET_MAKE),;t t
|
s,@SET_MAKE@,$(SET_MAKE),;t t
|
||||||
s,@LIBOBJS@, acosh.obj crypt.obj win32.obj,;t t
|
s,@LIBOBJS@, acosh.obj crypt.obj win32.obj,;t t
|
||||||
@ -367,6 +369,7 @@ s,@COMPILE_RULES@,{$$(srcdir)}.%s{}.%s: .%s.%s:,;t t
|
|||||||
s,@COMMON_LIBS@,m,;t t
|
s,@COMMON_LIBS@,m,;t t
|
||||||
s,@COMMON_MACROS@,WIN32_LEAN_AND_MEAN;t t
|
s,@COMMON_MACROS@,WIN32_LEAN_AND_MEAN;t t
|
||||||
s,@COMMON_HEADERS@,winsock2.h windows.h,;t t
|
s,@COMMON_HEADERS@,winsock2.h windows.h,;t t
|
||||||
|
s,@TRY_LINK@,$$(CC) -oconftest $$(INCFLAGS) -I$$(hdrdir) $$(CPPFLAGS) $$(CFLAGS) $$(LIBPATH) $$(LDFLAGS) $$(src) $$(LOCAL_LIBS) $$(LIBS),;t t
|
||||||
s,@EXPORT_PREFIX@,_,;t t
|
s,@EXPORT_PREFIX@,_,;t t
|
||||||
s,@arch@,$(ARCH)-$(OS),;t t
|
s,@arch@,$(ARCH)-$(OS),;t t
|
||||||
s,@sitearch@,$(ARCH)-$(OS),;t t
|
s,@sitearch@,$(ARCH)-$(OS),;t t
|
||||||
@ -389,20 +392,20 @@ $(WPROGRAM): $(MAINOBJ) $(WINMAINOBJ) $(LIBRUBY_SO) $(RUBYW_INSTALL_NAME).res
|
|||||||
|
|
||||||
$(LIBRUBY_A): $(OBJS)
|
$(LIBRUBY_A): $(OBJS)
|
||||||
@-if exist $@ del $@
|
@-if exist $@ del $@
|
||||||
$(AR) $(ARFLAGS)$@ $(OBJS)
|
$(AR) $(ARFLAGS) $@ $(OBJS)
|
||||||
|
|
||||||
# $(LIBRUBY): $(LIBRUBY_SO)
|
# $(LIBRUBY): $(LIBRUBY_SO)
|
||||||
# implib $@ $(LIBRUBY_SO)
|
# implib $@ $(LIBRUBY_SO)
|
||||||
|
|
||||||
$(LIBRUBY_SO) $(LIBRUBY): $(LIBRUBY_A) dmyext.obj $(EXTOBJS) $(RUBYDEF) $(RUBY_SO_NAME).res
|
$(LIBRUBY_SO) $(LIBRUBY): $(LIBRUBY_A) $(EXTOBJS) $(RUBYDEF) $(RUBY_SO_NAME).res
|
||||||
@echo $(EXTOBJS)
|
@echo $(EXTOBJS)
|
||||||
$(LIBRUBY_LDSHARED) $(LIBRUBY_DLDFLAGS) dmyext.obj,$(LIBRUBY_SO),nul,$(LIBRUBY_A) $(LIBS),$(RUBYDEF),$(RUBY_SO_NAME).res
|
$(LIBRUBY_LDSHARED) $(LIBRUBY_DLDFLAGS) $(EXTOBJS:/=\),$(LIBRUBY_SO),nul,$(LIBRUBY_A) $(LIBS),$(RUBYDEF),$(RUBY_SO_NAME).res
|
||||||
|
|
||||||
$(RUBYDEF): $(LIBRUBY_A) miniruby$(EXEEXT)
|
$(RUBYDEF): $(LIBRUBY_A) miniruby$(EXEEXT)
|
||||||
$(MINIRUBY) $(srcdir)bcc32/mkexports.rb -output=$@ $(LIBRUBY_A)
|
$(MINIRUBY) $(srcdir)bcc32/mkexports.rb -output=$@ $(LIBRUBY_A)
|
||||||
|
|
||||||
install: rbconfig.rb
|
install: rbconfig.rb
|
||||||
$(MINIRUBY) $(srcdir)instruby.rb $(DESTDIR)
|
$(MINIRUBY) $(srcdir)instruby.rb -$(MFLAGS)$(MAKEFLAGS) $(DESTDIR)
|
||||||
$(MINIRUBY) $(srcdir)ext/extmk.rb $(MAKE) -$(MFLAGS)$(MAKEFLAGS) DESTDIR=$(DESTDIR) install
|
$(MINIRUBY) $(srcdir)ext/extmk.rb $(MAKE) -$(MFLAGS)$(MAKEFLAGS) DESTDIR=$(DESTDIR) install
|
||||||
|
|
||||||
clean: clean-ext clean-local
|
clean: clean-ext clean-local
|
||||||
@ -495,6 +498,9 @@ $(RUBY_INSTALL_NAME).rc $(RUBYW_INSTALL_NAME).rc $(RUBY_SO_NAME).rc: rbconfig.rb
|
|||||||
|
|
||||||
parse.c: parse.y
|
parse.c: parse.y
|
||||||
|
|
||||||
|
ext/extinit.obj: ext/extinit.c $(SETUP)
|
||||||
|
$(CC) $(CFLAGS) $(XCFLAGS) $(CPPFLAGS) -o$@ -c ext/extinit.c
|
||||||
|
|
||||||
acosh.obj: acosh.c win32.h
|
acosh.obj: acosh.c win32.h
|
||||||
alloca.obj: alloca.c win32.h
|
alloca.obj: alloca.c win32.h
|
||||||
crypt.obj: crypt.c win32.h
|
crypt.obj: crypt.c win32.h
|
||||||
|
@ -200,9 +200,12 @@ if $extlist.size > 0
|
|||||||
if RUBY_PLATFORM =~ /m68k-human|beos/
|
if RUBY_PLATFORM =~ /m68k-human|beos/
|
||||||
$extlibs.gsub!("-L/usr/local/lib", "") if $extlibs
|
$extlibs.gsub!("-L/usr/local/lib", "") if $extlibs
|
||||||
end
|
end
|
||||||
conf = ['SETUP='+$setup, 'EXTOBJS='+$extobjs.strip]
|
conf = [
|
||||||
conf << 'EXTLIBS='+$extlibs.strip if $extlibs
|
['SETUP', $setup], ['EXTOBJS', $extobjs],
|
||||||
conf << 'EXTLDFLAGS='+$extflags.strip if $extflags
|
['EXTLIBS', $extlibs], ['EXTLDFLAGS', $extflags]
|
||||||
|
].map {|n, v|
|
||||||
|
"#{n}=#{v}" if v and !(v = v.strip).empty?
|
||||||
|
}.compact
|
||||||
puts conf
|
puts conf
|
||||||
ARGV.concat(conf)
|
ARGV.concat(conf)
|
||||||
end
|
end
|
||||||
|
146
instruby.rb
146
instruby.rb
@ -4,96 +4,114 @@ load "./rbconfig.rb"
|
|||||||
include Config
|
include Config
|
||||||
|
|
||||||
File.umask(0)
|
File.umask(0)
|
||||||
destdir = ARGV[0] || ''
|
|
||||||
|
while arg = ARGV.shift
|
||||||
|
case arg
|
||||||
|
when /^--/ # ignore
|
||||||
|
when /^-/
|
||||||
|
$dryrun = /n/ =~ arg
|
||||||
|
when /=/ # ignore
|
||||||
|
else
|
||||||
|
destdir ||= arg
|
||||||
|
break
|
||||||
|
end
|
||||||
|
end
|
||||||
|
destdir ||= ''
|
||||||
|
|
||||||
$:.unshift CONFIG["srcdir"]+"/lib"
|
$:.unshift CONFIG["srcdir"]+"/lib"
|
||||||
require "ftools"
|
require 'ftools'
|
||||||
require "find"
|
|
||||||
|
class Installer < File; end
|
||||||
|
class << Installer
|
||||||
|
if $dryrun
|
||||||
|
def makedirs(*dirs)
|
||||||
|
String === dirs.last or dirs.pop
|
||||||
|
for dir in dirs
|
||||||
|
File.directory?(dir) or print "mkdir -p #{dir}\n"
|
||||||
|
end
|
||||||
|
end
|
||||||
|
def install(file, dir, mode = nil, verbose = false)
|
||||||
|
to = catname(file, dir)
|
||||||
|
unless FileTest.exist? to and cmp file, to
|
||||||
|
print "install#{' -m %#o'%mode if mode} #{file} #{dir}\n"
|
||||||
|
end
|
||||||
|
end
|
||||||
|
def makelink(orig, link, verbose = false)
|
||||||
|
unless File.symlink?(link) and File.readlink(link) == orig
|
||||||
|
print "ln -sf #{orig} #{link}\n"
|
||||||
|
end
|
||||||
|
end
|
||||||
|
else
|
||||||
|
require "ftools"
|
||||||
|
def makelink(orig, link, verbose = false)
|
||||||
|
if exist? link
|
||||||
|
delete link
|
||||||
|
end
|
||||||
|
symlink orig, link
|
||||||
|
print "link #{orig} -> #{link}\n"
|
||||||
|
end
|
||||||
|
end
|
||||||
|
end
|
||||||
|
|
||||||
exeext = CONFIG["EXEEXT"]
|
exeext = CONFIG["EXEEXT"]
|
||||||
if ENV["prefix"]
|
|
||||||
prefix = ENV["prefix"]
|
|
||||||
else
|
|
||||||
prefix = CONFIG["prefix"]
|
|
||||||
end
|
|
||||||
|
|
||||||
ruby_install_name = CONFIG["ruby_install_name"]
|
ruby_install_name = CONFIG["ruby_install_name"]
|
||||||
version = "/"+CONFIG["MAJOR"]+"."+CONFIG["MINOR"]
|
rubyw_install_name = CONFIG["rubyw_install_name"]
|
||||||
arch = "/"+CONFIG["arch"]
|
|
||||||
sitearch = "/"+CONFIG["sitearch"]
|
|
||||||
|
|
||||||
|
version = CONFIG["ruby_version"]
|
||||||
bindir = destdir+CONFIG["bindir"]
|
bindir = destdir+CONFIG["bindir"]
|
||||||
libdir = destdir+CONFIG["libdir"]
|
libdir = destdir+CONFIG["libdir"]
|
||||||
rubylibdir = destdir+CONFIG["prefix"]+"/lib/ruby"+version
|
rubylibdir = destdir+CONFIG["rubylibdir"]
|
||||||
archlibdir = rubylibdir+arch
|
archlibdir = destdir+CONFIG["archdir"]
|
||||||
sitelibdir = destdir+CONFIG["sitedir"]+version
|
sitelibdir = destdir+CONFIG["sitelibdir"]
|
||||||
sitearchlibdir = sitelibdir+sitearch
|
sitearchlibdir = destdir+CONFIG["sitearchdir"]
|
||||||
mandir = destdir+CONFIG["mandir"] + "/man1"
|
mandir = destdir+CONFIG["mandir"] + "/man1"
|
||||||
wdir = Dir.getwd
|
dll = CONFIG["LIBRUBY_SO"]
|
||||||
|
lib = CONFIG["LIBRUBY"]
|
||||||
|
arc = CONFIG["LIBRUBY_A"]
|
||||||
|
|
||||||
File.makedirs bindir, true
|
Installer.makedirs bindir, libdir, rubylibdir, archlibdir, sitelibdir, sitearchlibdir, mandir, true
|
||||||
File.install ruby_install_name+exeext,
|
|
||||||
"#{bindir}/#{ruby_install_name}#{exeext}", 0755, true
|
Installer.install ruby_install_name+exeext, bindir+"/"+ruby_install_name+exeext, 0755, true
|
||||||
rubyw = ruby_install_name.sub(/ruby/, '\&w')+exeext
|
if rubyw_install_name and !rubyw_install_name.empty?
|
||||||
if File.exist? rubyw
|
Installer.install rubyw_install_name+exeext, bindir, 0755, true
|
||||||
File.install rubyw, "#{bindir}/#{rubyw}", 0755, true
|
|
||||||
end
|
end
|
||||||
for dll in Dir['*.dll']
|
Installer.install dll, bindir, 0755, true unless dll == lib
|
||||||
File.install dll, "#{bindir}/#{dll}", 0755, true
|
Installer.install lib, libdir, 0555, true unless lib == arc
|
||||||
end
|
Installer.install arc, archlibdir, 0644, true
|
||||||
File.makedirs libdir, true
|
Installer.install "config.h", archlibdir, 0644, true
|
||||||
if CONFIG["LIBRUBY"] != CONFIG["LIBRUBY_A"]
|
Installer.install "rbconfig.rb", archlibdir, 0644, true
|
||||||
for lib in [CONFIG["LIBRUBY"]]
|
if CONFIG["ARCHFILE"]
|
||||||
if File.exist? lib
|
for file in CONFIG["ARCHFILE"].split
|
||||||
File.install lib, libdir, 0555, true
|
Installer.install file, archlibdir, 0644, true
|
||||||
end
|
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
Dir.chdir libdir
|
|
||||||
if File.exist? CONFIG["LIBRUBY_SO"]
|
if dll == lib and dll != arc
|
||||||
for link in CONFIG["LIBRUBY_ALIASES"].split
|
for link in CONFIG["LIBRUBY_ALIASES"].split
|
||||||
if File.exist? link
|
Installer.makelink(dll, File.join(libdir, link), true)
|
||||||
File.delete link
|
|
||||||
end
|
|
||||||
File.symlink CONFIG["LIBRUBY_SO"], link
|
|
||||||
print "link #{CONFIG['LIBRUBY_SO']} -> #{link}\n"
|
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
Dir.chdir wdir
|
|
||||||
File.makedirs rubylibdir, true
|
|
||||||
File.makedirs archlibdir, true
|
|
||||||
File.makedirs sitelibdir, true
|
|
||||||
File.makedirs sitearchlibdir, true
|
|
||||||
|
|
||||||
if RUBY_PLATFORM =~ /-aix/
|
|
||||||
File.install "ruby.imp", archlibdir, 0644, true
|
|
||||||
end
|
|
||||||
|
|
||||||
system "#{CONFIG['MINIRUBY']} #{CONFIG['srcdir']}/ext/extmk.rb install #{destdir}"
|
|
||||||
|
|
||||||
Dir.chdir CONFIG["srcdir"]
|
Dir.chdir CONFIG["srcdir"]
|
||||||
|
|
||||||
File.install "sample/irb.rb", "#{bindir}/irb", 0755, true
|
Installer.install "sample/irb.rb", "#{bindir}/irb", 0755, true
|
||||||
|
|
||||||
Find.find("lib") do |f|
|
Dir.glob("lib/*{.rb,help-message}") do |f|
|
||||||
next unless /\.rb$/ =~ f || /help-message$/ =~ f
|
dir = File.dirname(f).sub!(/\Alib/, rubylibdir) || rubylibdir
|
||||||
dir = rubylibdir+"/"+File.dirname(f[4..-1])
|
Installer.makedirs dir, true unless File.directory? dir
|
||||||
File.makedirs dir, true unless File.directory? dir
|
Installer.install f, dir, 0644, true
|
||||||
File.install f, dir, 0644, true
|
|
||||||
end
|
end
|
||||||
|
|
||||||
for f in Dir["*.h"]
|
for f in Dir["*.h"]
|
||||||
File.install f, archlibdir, 0644, true
|
Installer.install f, archlibdir, 0644, true
|
||||||
end
|
end
|
||||||
if RUBY_PLATFORM =~ /mswin32|mingw|bccwin32/
|
if RUBY_PLATFORM =~ /mswin32|mingw|bccwin32/
|
||||||
File.makedirs archlibdir + "/win32", true
|
Installer.makedirs archlibdir + "/win32", true
|
||||||
File.install "win32/win32.h", archlibdir + "/win32", 0644, true
|
Installer.install "win32/win32.h", archlibdir + "/win32", 0644, true
|
||||||
end
|
end
|
||||||
File.install wdir+'/'+CONFIG['LIBRUBY_A'], archlibdir, 0644, true
|
|
||||||
|
|
||||||
File.makedirs mandir, true
|
Installer.makedirs mandir, true
|
||||||
File.install "ruby.1", mandir+"/"+ruby_install_name+".1", 0644, true
|
Installer.install "ruby.1", mandir+"/"+ruby_install_name+".1", 0644, true
|
||||||
Dir.chdir wdir
|
|
||||||
File.install "config.h", archlibdir, 0644, true
|
|
||||||
File.install "rbconfig.rb", archlibdir, 0644, true
|
|
||||||
# vi:set sw=2:
|
# vi:set sw=2:
|
||||||
|
@ -206,7 +206,7 @@ def link_command(ldflags, opt="", libpath=$LIBPATH)
|
|||||||
'LDFLAGS' => "#$LDFLAGS #{ldflags}",
|
'LDFLAGS' => "#$LDFLAGS #{ldflags}",
|
||||||
'LIBPATH' => libpathflag(libpath),
|
'LIBPATH' => libpathflag(libpath),
|
||||||
'LOCAL_LIBS' => "#$LOCAL_LIBS #$libs",
|
'LOCAL_LIBS' => "#$LOCAL_LIBS #$libs",
|
||||||
'LIBS' => "#$LIBRUBYARG ${opt} #$LIBS")
|
'LIBS' => "#$LIBRUBYARG #{opt} #$LIBS")
|
||||||
end
|
end
|
||||||
|
|
||||||
def cc_command(opt="")
|
def cc_command(opt="")
|
||||||
@ -750,6 +750,7 @@ DISTCLEANFILES =
|
|||||||
end
|
end
|
||||||
|
|
||||||
mfile.print "$(DLLIB): $(OBJS)\n\t"
|
mfile.print "$(DLLIB): $(OBJS)\n\t"
|
||||||
|
mfile.print "@-$(RM) $@\n\t"
|
||||||
if $static
|
if $static
|
||||||
mfile.print "$(AR) #{config_string('ARFLAGS') || 'cru '}$(DLLIB) $(OBJS)"
|
mfile.print "$(AR) #{config_string('ARFLAGS') || 'cru '}$(DLLIB) $(OBJS)"
|
||||||
if ranlib = config_string('RANLIB')
|
if ranlib = config_string('RANLIB')
|
||||||
|
@ -317,9 +317,9 @@ s,@target_os@,$(OS),;t t
|
|||||||
s,@CC@,$(CC),;t t
|
s,@CC@,$(CC),;t t
|
||||||
s,@CPP@,$(CPP),;t t
|
s,@CPP@,$(CPP),;t t
|
||||||
s,@YACC@,$(YACC),;t t
|
s,@YACC@,$(YACC),;t t
|
||||||
s,@RANLIB@,rem,;t t
|
s,@RANLIB@,,;t t
|
||||||
s,@AR@,$(AR),;t t
|
s,@AR@,$(AR),;t t
|
||||||
s,@ARFLAGS@,$(ARFLAGS):,;t t
|
s,@ARFLAGS@,$(ARFLAGS),;t t
|
||||||
s,@LN_S@,$(LN_S),;t t
|
s,@LN_S@,$(LN_S),;t t
|
||||||
s,@SET_MAKE@,$(SET_MAKE),;t t
|
s,@SET_MAKE@,$(SET_MAKE),;t t
|
||||||
s,@LIBOBJS@, acosh.obj crypt.obj win32.obj isinf.obj isnan.obj,;t t
|
s,@LIBOBJS@, acosh.obj crypt.obj win32.obj isinf.obj isnan.obj,;t t
|
||||||
@ -361,7 +361,7 @@ s,@LINK_SO@,$$(LDSHARED) -Fe$$(@) $$(OBJS) $$(LIBS) $$(LOCAL_LIBS) $$(DLDFLAGS),
|
|||||||
s,@COMPILE_C@,$$(CC) $$(CFLAGS) $$(CPPFLAGS) -c -Tc$$(<:\=/),;t t
|
s,@COMPILE_C@,$$(CC) $$(CFLAGS) $$(CPPFLAGS) -c -Tc$$(<:\=/),;t t
|
||||||
s,@COMPILE_CXX@,$$(CXX) $$(CXXFLAGS) $$(CPPFLAGS) -c -Tp$$(<:\=/),;t t
|
s,@COMPILE_CXX@,$$(CXX) $$(CXXFLAGS) $$(CPPFLAGS) -c -Tp$$(<:\=/),;t t
|
||||||
s,@COMPILE_RULES@,{$$(srcdir)}.%s{}.%s: .%s.%s:,;t t
|
s,@COMPILE_RULES@,{$$(srcdir)}.%s{}.%s: .%s.%s:,;t t
|
||||||
s,@TRY_LINK@,$$(CC) -Feconftest $$(INCFLAGS) -I$$(hdrdir) $$(CPPFLAGS) $$(CFLAGS) $$(src) $$(LOCAL_LIBS) $$(LIBS) $$(LDFLAGS) $$(XLDFLAGS),;t t
|
s,@TRY_LINK@,$$(CC) -Feconftest $$(INCFLAGS) -I$$(hdrdir) $$(CPPFLAGS) $$(CFLAGS) $$(src) $$(LOCAL_LIBS) $$(LIBS) -link $$(LDFLAGS) $$(LIBPATH) $$(XLDFLAGS),;t t
|
||||||
s,@COMMON_LIBS@,m,;t t
|
s,@COMMON_LIBS@,m,;t t
|
||||||
s,@COMMON_MACROS@,WIN32_LEAN_AND_MEAN;t t
|
s,@COMMON_MACROS@,WIN32_LEAN_AND_MEAN;t t
|
||||||
s,@COMMON_HEADERS@,winsock2.h windows.h,;t t
|
s,@COMMON_HEADERS@,winsock2.h windows.h,;t t
|
||||||
@ -405,7 +405,7 @@ $(RUBYDEF): $(LIBRUBY_A) miniruby$(EXEEXT)
|
|||||||
$(AR) $(ARFLAGS)$@ -def:$<
|
$(AR) $(ARFLAGS)$@ -def:$<
|
||||||
|
|
||||||
install: rbconfig.rb
|
install: rbconfig.rb
|
||||||
$(MINIRUBY) $(srcdir)/instruby.rb $(DESTDIR)
|
$(MINIRUBY) $(srcdir)/instruby.rb -$(MFLAGS)$(MAKEFLAGS) $(DESTDIR)
|
||||||
$(MINIRUBY) $(srcdir)/ext/extmk.rb $(MAKE) -$(MFLAGS)$(MAKEFLAGS) DESTDIR=$(DESTDIR) install
|
$(MINIRUBY) $(srcdir)/ext/extmk.rb $(MAKE) -$(MFLAGS)$(MAKEFLAGS) DESTDIR=$(DESTDIR) install
|
||||||
|
|
||||||
clean: clean-ext clean-local
|
clean: clean-ext clean-local
|
||||||
|
Loading…
x
Reference in New Issue
Block a user