1998-01-16 07:13:05 -05:00
|
|
|
SHELL = /bin/sh
|
2011-07-31 07:31:55 -04:00
|
|
|
NULLCMD = @NULLCMD@
|
2011-12-14 06:02:00 -05:00
|
|
|
n=$(NULLCMD)
|
|
|
|
ECHO1 = $(V:1=@$n)
|
2009-02-24 05:01:08 -05:00
|
|
|
RUNCMD = $(SHELL)
|
2012-12-30 07:57:25 -05:00
|
|
|
CDPATH = .
|
2009-03-06 04:37:31 -05:00
|
|
|
CHDIR = @CHDIR@
|
2009-02-24 03:58:10 -05:00
|
|
|
exec = exec
|
2011-07-07 22:39:15 -04:00
|
|
|
NULL = /dev/null
|
2012-11-19 02:08:13 -05:00
|
|
|
PATH_SEPARATOR = @PATH_SEPARATOR@
|
1998-01-16 07:13:05 -05:00
|
|
|
|
|
|
|
#### Start of system configuration section. ####
|
|
|
|
|
|
|
|
srcdir = @srcdir@
|
2009-01-24 21:06:29 -05:00
|
|
|
top_srcdir = $(srcdir)
|
2007-06-09 23:06:15 -04:00
|
|
|
hdrdir = $(srcdir)/include
|
2012-02-28 23:07:06 -05:00
|
|
|
PLATFORM_DIR = @PLATFORM_DIR@
|
1998-01-16 07:13:05 -05:00
|
|
|
|
|
|
|
CC = @CC@
|
2010-10-15 21:55:01 -04:00
|
|
|
CPP = @CPP@
|
2012-05-16 01:39:06 -04:00
|
|
|
LD = @LD@
|
2004-12-06 05:42:49 -05:00
|
|
|
YACC = bison
|
1998-01-16 07:13:05 -05:00
|
|
|
PURIFY =
|
1999-01-19 23:59:39 -05:00
|
|
|
AUTOCONF = autoconf
|
1998-01-16 07:13:05 -05:00
|
|
|
@SET_MAKE@
|
2004-03-21 18:21:31 -05:00
|
|
|
MKFILES = @MAKEFILES@
|
2007-01-23 01:41:22 -05:00
|
|
|
BASERUBY = @BASERUBY@
|
2009-07-19 22:13:00 -04:00
|
|
|
TEST_RUNNABLE = @TEST_RUNNABLE@
|
2013-01-04 04:04:58 -05:00
|
|
|
CROSS_COMPILING = @CROSS_COMPILING@
|
2010-03-26 07:19:22 -04:00
|
|
|
DOXYGEN = @DOXYGEN@
|
1998-01-16 07:13:05 -05:00
|
|
|
|
1999-01-19 23:59:39 -05:00
|
|
|
prefix = @prefix@
|
* configure.in (XCFLAGS): CFLAGS to comile ruby itself.
* configure.in (LIBEXT): suffix for static libraries.
* configure.in (LIBPATHFLAG): switch template to specify library
path.
* configure.in (LINK_SO): command to link shared objects.
* configure.in (DEFFILE, ARCHFILE): miscellaneous system dependent
files.
* configure.in (EXPORT_PREFIX): prefix to exported symbols on
Windows.
* configure.in (COMMON_LIBS, COMMON_MACROS, COMMON_HEADERS):
libraries, macros and headers used in common.
* configure.in (RUBYW_INSTALL_NAME, rubyw_install_name): GUI mode
excutable name.
* Makefile.in (CFLAGS): append XCFLAGS.
* Makefile.in (PREP): miscellaneous system dependent files.
* Makefile.in (ruby.imp, ext/extinit.o): moved from ext/extmk.rb.
* Makefile.in (fake.rb): CROSS_COMPILING keeps building platform.
* Makefile.in (MAKEFILES): depend on *.in and config.status.
* Makefile.in (parse.c): replace "y.tab.c" with actual name for
byacc.
* ext/extmk.rb, lib/mkmf.rb: integrated.
* ext/extmk.rb: propagate MFLAGS.
* ext/extmk.rb (extmake): make dummy Makefile to clean even if no
Makefile is made.
* lib/mkmf.rb (older): accept multiple file names and Time
objects.
* lib/mkmf.rb (xsystem): split and qoute.
* lib/mkmf.rb (cpp_include): make include directives.
* lib/mkmf.rb (try_func): try wheather specified function is
available.
* lib/mkmf.rb (install_files): default to site-install.
* lib/mkmf.rb (checking_for): added.
* lib/mkmf.rb (find_executable0): just find executable file with
no message.
* lib/mkmf.rb (create_header): output header file is variable.
* lib/mkmf.rb (create_makefile): separate sections.
* lib/mkmf.rb (init_mkmf): initialize global variables.
* win32/Makefile.sub, bcc32/Makefile.sub (CPP, AR): added.
* bcc32/Makefile.sub (ARCH): fixed to i386.
* win32/Makefile.sub, bcc32/Makefile.sub (miniruby): should not
link EXTOBJS.
* ext/dl/extconf.rb: use try_cpp to cross compile.
* ext/dl/extconf.rb: not modify files in source directory.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@2977 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2002-10-21 10:17:44 -04:00
|
|
|
exec_prefix = @exec_prefix@
|
|
|
|
bindir = @bindir@
|
|
|
|
sbindir = @sbindir@
|
|
|
|
libdir = @libdir@
|
|
|
|
libexecdir = @libexecdir@
|
2006-06-25 10:03:10 -04:00
|
|
|
datarootdir = @datarootdir@
|
2004-02-09 03:48:55 -05:00
|
|
|
datadir = @datadir@
|
* configure.in (XCFLAGS): CFLAGS to comile ruby itself.
* configure.in (LIBEXT): suffix for static libraries.
* configure.in (LIBPATHFLAG): switch template to specify library
path.
* configure.in (LINK_SO): command to link shared objects.
* configure.in (DEFFILE, ARCHFILE): miscellaneous system dependent
files.
* configure.in (EXPORT_PREFIX): prefix to exported symbols on
Windows.
* configure.in (COMMON_LIBS, COMMON_MACROS, COMMON_HEADERS):
libraries, macros and headers used in common.
* configure.in (RUBYW_INSTALL_NAME, rubyw_install_name): GUI mode
excutable name.
* Makefile.in (CFLAGS): append XCFLAGS.
* Makefile.in (PREP): miscellaneous system dependent files.
* Makefile.in (ruby.imp, ext/extinit.o): moved from ext/extmk.rb.
* Makefile.in (fake.rb): CROSS_COMPILING keeps building platform.
* Makefile.in (MAKEFILES): depend on *.in and config.status.
* Makefile.in (parse.c): replace "y.tab.c" with actual name for
byacc.
* ext/extmk.rb, lib/mkmf.rb: integrated.
* ext/extmk.rb: propagate MFLAGS.
* ext/extmk.rb (extmake): make dummy Makefile to clean even if no
Makefile is made.
* lib/mkmf.rb (older): accept multiple file names and Time
objects.
* lib/mkmf.rb (xsystem): split and qoute.
* lib/mkmf.rb (cpp_include): make include directives.
* lib/mkmf.rb (try_func): try wheather specified function is
available.
* lib/mkmf.rb (install_files): default to site-install.
* lib/mkmf.rb (checking_for): added.
* lib/mkmf.rb (find_executable0): just find executable file with
no message.
* lib/mkmf.rb (create_header): output header file is variable.
* lib/mkmf.rb (create_makefile): separate sections.
* lib/mkmf.rb (init_mkmf): initialize global variables.
* win32/Makefile.sub, bcc32/Makefile.sub (CPP, AR): added.
* bcc32/Makefile.sub (ARCH): fixed to i386.
* win32/Makefile.sub, bcc32/Makefile.sub (miniruby): should not
link EXTOBJS.
* ext/dl/extconf.rb: use try_cpp to cross compile.
* ext/dl/extconf.rb: not modify files in source directory.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@2977 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2002-10-21 10:17:44 -04:00
|
|
|
arch = @arch@
|
|
|
|
sitearch = @sitearch@
|
|
|
|
sitedir = @sitedir@
|
2013-02-23 01:20:19 -05:00
|
|
|
archlibdir = @archlibdir@
|
2009-02-19 01:47:13 -05:00
|
|
|
ruby_version = @ruby_version@
|
* configure.in (XCFLAGS): CFLAGS to comile ruby itself.
* configure.in (LIBEXT): suffix for static libraries.
* configure.in (LIBPATHFLAG): switch template to specify library
path.
* configure.in (LINK_SO): command to link shared objects.
* configure.in (DEFFILE, ARCHFILE): miscellaneous system dependent
files.
* configure.in (EXPORT_PREFIX): prefix to exported symbols on
Windows.
* configure.in (COMMON_LIBS, COMMON_MACROS, COMMON_HEADERS):
libraries, macros and headers used in common.
* configure.in (RUBYW_INSTALL_NAME, rubyw_install_name): GUI mode
excutable name.
* Makefile.in (CFLAGS): append XCFLAGS.
* Makefile.in (PREP): miscellaneous system dependent files.
* Makefile.in (ruby.imp, ext/extinit.o): moved from ext/extmk.rb.
* Makefile.in (fake.rb): CROSS_COMPILING keeps building platform.
* Makefile.in (MAKEFILES): depend on *.in and config.status.
* Makefile.in (parse.c): replace "y.tab.c" with actual name for
byacc.
* ext/extmk.rb, lib/mkmf.rb: integrated.
* ext/extmk.rb: propagate MFLAGS.
* ext/extmk.rb (extmake): make dummy Makefile to clean even if no
Makefile is made.
* lib/mkmf.rb (older): accept multiple file names and Time
objects.
* lib/mkmf.rb (xsystem): split and qoute.
* lib/mkmf.rb (cpp_include): make include directives.
* lib/mkmf.rb (try_func): try wheather specified function is
available.
* lib/mkmf.rb (install_files): default to site-install.
* lib/mkmf.rb (checking_for): added.
* lib/mkmf.rb (find_executable0): just find executable file with
no message.
* lib/mkmf.rb (create_header): output header file is variable.
* lib/mkmf.rb (create_makefile): separate sections.
* lib/mkmf.rb (init_mkmf): initialize global variables.
* win32/Makefile.sub, bcc32/Makefile.sub (CPP, AR): added.
* bcc32/Makefile.sub (ARCH): fixed to i386.
* win32/Makefile.sub, bcc32/Makefile.sub (miniruby): should not
link EXTOBJS.
* ext/dl/extconf.rb: use try_cpp to cross compile.
* ext/dl/extconf.rb: not modify files in source directory.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@2977 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2002-10-21 10:17:44 -04:00
|
|
|
|
2004-02-09 03:48:55 -05:00
|
|
|
TESTUI = console
|
|
|
|
TESTS =
|
2009-09-16 03:20:19 -04:00
|
|
|
INSTALLDOC = @INSTALLDOC@
|
|
|
|
DOCTARGETS = @RDOCTARGET@ @CAPITARGET@
|
2004-02-09 03:48:55 -05:00
|
|
|
|
2005-01-31 10:19:27 -05:00
|
|
|
EXTOUT = @EXTOUT@
|
2007-06-09 23:06:15 -04:00
|
|
|
arch_hdrdir = $(EXTOUT)/include/$(arch)
|
2007-10-10 17:35:45 -04:00
|
|
|
VPATH = $(arch_hdrdir)/ruby:$(hdrdir)/ruby:$(srcdir):$(srcdir)/enc:$(srcdir)/missing
|
2004-02-09 03:48:55 -05:00
|
|
|
|
2005-11-10 18:22:03 -05:00
|
|
|
empty =
|
2013-03-22 03:57:09 -04:00
|
|
|
CC_VERSION = @CC_VERSION@
|
2005-11-10 18:22:03 -05:00
|
|
|
OUTFLAG = @OUTFLAG@$(empty)
|
2007-12-23 22:49:56 -05:00
|
|
|
COUTFLAG = @COUTFLAG@$(empty)
|
2009-02-07 04:02:50 -05:00
|
|
|
ARCH_FLAG = @ARCH_FLAG@
|
2011-12-02 17:17:34 -05:00
|
|
|
CFLAGS = @CFLAGS@ $(ARCH_FLAG)
|
2008-05-08 03:41:23 -04:00
|
|
|
cflags = @cflags@
|
|
|
|
optflags = @optflags@
|
|
|
|
debugflags = @debugflags@
|
2012-09-15 19:58:04 -04:00
|
|
|
warnflags = @warnflags@ @strict_warnflags@
|
2013-12-16 23:32:51 -05:00
|
|
|
cppflags = @cppflags@
|
2010-10-26 05:09:45 -04:00
|
|
|
INCFLAGS = -I. -I$(arch_hdrdir) -I$(hdrdir) -I$(srcdir)
|
|
|
|
XCFLAGS = @XCFLAGS@
|
|
|
|
CPPFLAGS = @CPPFLAGS@ $(INCFLAGS)
|
1998-01-16 07:13:05 -05:00
|
|
|
LDFLAGS = @STATIC@ $(CFLAGS) @LDFLAGS@
|
2011-11-24 20:41:59 -05:00
|
|
|
EXTLDFLAGS = @EXTLDFLAGS@
|
* configure.in (XCFLAGS): CFLAGS to comile ruby itself.
* configure.in (LIBEXT): suffix for static libraries.
* configure.in (LIBPATHFLAG): switch template to specify library
path.
* configure.in (LINK_SO): command to link shared objects.
* configure.in (DEFFILE, ARCHFILE): miscellaneous system dependent
files.
* configure.in (EXPORT_PREFIX): prefix to exported symbols on
Windows.
* configure.in (COMMON_LIBS, COMMON_MACROS, COMMON_HEADERS):
libraries, macros and headers used in common.
* configure.in (RUBYW_INSTALL_NAME, rubyw_install_name): GUI mode
excutable name.
* Makefile.in (CFLAGS): append XCFLAGS.
* Makefile.in (PREP): miscellaneous system dependent files.
* Makefile.in (ruby.imp, ext/extinit.o): moved from ext/extmk.rb.
* Makefile.in (fake.rb): CROSS_COMPILING keeps building platform.
* Makefile.in (MAKEFILES): depend on *.in and config.status.
* Makefile.in (parse.c): replace "y.tab.c" with actual name for
byacc.
* ext/extmk.rb, lib/mkmf.rb: integrated.
* ext/extmk.rb: propagate MFLAGS.
* ext/extmk.rb (extmake): make dummy Makefile to clean even if no
Makefile is made.
* lib/mkmf.rb (older): accept multiple file names and Time
objects.
* lib/mkmf.rb (xsystem): split and qoute.
* lib/mkmf.rb (cpp_include): make include directives.
* lib/mkmf.rb (try_func): try wheather specified function is
available.
* lib/mkmf.rb (install_files): default to site-install.
* lib/mkmf.rb (checking_for): added.
* lib/mkmf.rb (find_executable0): just find executable file with
no message.
* lib/mkmf.rb (create_header): output header file is variable.
* lib/mkmf.rb (create_makefile): separate sections.
* lib/mkmf.rb (init_mkmf): initialize global variables.
* win32/Makefile.sub, bcc32/Makefile.sub (CPP, AR): added.
* bcc32/Makefile.sub (ARCH): fixed to i386.
* win32/Makefile.sub, bcc32/Makefile.sub (miniruby): should not
link EXTOBJS.
* ext/dl/extconf.rb: use try_cpp to cross compile.
* ext/dl/extconf.rb: not modify files in source directory.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@2977 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2002-10-21 10:17:44 -04:00
|
|
|
XLDFLAGS = @XLDFLAGS@ $(EXTLDFLAGS)
|
2012-03-16 11:30:01 -04:00
|
|
|
EXTLIBS =
|
1998-01-16 07:13:05 -05:00
|
|
|
LIBS = @LIBS@ $(EXTLIBS)
|
|
|
|
MISSING = @LIBOBJS@ @ALLOCA@
|
1999-08-13 01:45:20 -04:00
|
|
|
LDSHARED = @LIBRUBY_LDSHARED@
|
2011-11-27 04:54:12 -05:00
|
|
|
DLDFLAGS = @LIBRUBY_DLDFLAGS@ $(XLDFLAGS) $(ARCH_FLAG)
|
1999-01-19 23:59:39 -05:00
|
|
|
SOLIBS = @SOLIBS@
|
2001-04-01 12:53:41 -04:00
|
|
|
MAINLIBS = @MAINLIBS@
|
2008-04-02 23:56:07 -04:00
|
|
|
ARCHMINIOBJS = @MINIOBJS@
|
2012-11-23 10:00:12 -05:00
|
|
|
DLNOBJ = @DLNOBJ@
|
2012-05-16 01:39:06 -04:00
|
|
|
ENCOBJS = @ENCOBJS@
|
|
|
|
EXTOBJS = @EXTOBJS@
|
2007-12-15 04:56:59 -05:00
|
|
|
BUILTIN_ENCOBJS = @BUILTIN_ENCOBJS@
|
2008-08-24 11:58:43 -04:00
|
|
|
BUILTIN_TRANSSRCS = @BUILTIN_TRANSSRCS@
|
|
|
|
BUILTIN_TRANSOBJS = @BUILTIN_TRANSOBJS@
|
2012-05-07 00:41:02 -04:00
|
|
|
POSTLINK = @POSTLINK@
|
1998-01-16 07:13:05 -05:00
|
|
|
|
2009-05-07 21:14:14 -04:00
|
|
|
RUBY_BASE_NAME=@RUBY_BASE_NAME@
|
2010-04-24 03:27:50 -04:00
|
|
|
RUBY_PROGRAM_VERSION=@RUBY_PROGRAM_VERSION@
|
1999-08-13 01:45:20 -04:00
|
|
|
RUBY_INSTALL_NAME=@RUBY_INSTALL_NAME@
|
2000-09-04 00:43:26 -04:00
|
|
|
RUBY_SO_NAME=@RUBY_SO_NAME@
|
2012-03-12 21:59:50 -04:00
|
|
|
RUBY_RELEASE_DATE=@RUBY_RELEASE_DATE@
|
1999-08-13 01:45:20 -04:00
|
|
|
EXEEXT = @EXEEXT@
|
2012-05-18 22:35:37 -04:00
|
|
|
LIBEXT = @LIBEXT@
|
1999-08-13 01:45:20 -04:00
|
|
|
PROGRAM=$(RUBY_INSTALL_NAME)$(EXEEXT)
|
* configure.in (XCFLAGS): CFLAGS to comile ruby itself.
* configure.in (LIBEXT): suffix for static libraries.
* configure.in (LIBPATHFLAG): switch template to specify library
path.
* configure.in (LINK_SO): command to link shared objects.
* configure.in (DEFFILE, ARCHFILE): miscellaneous system dependent
files.
* configure.in (EXPORT_PREFIX): prefix to exported symbols on
Windows.
* configure.in (COMMON_LIBS, COMMON_MACROS, COMMON_HEADERS):
libraries, macros and headers used in common.
* configure.in (RUBYW_INSTALL_NAME, rubyw_install_name): GUI mode
excutable name.
* Makefile.in (CFLAGS): append XCFLAGS.
* Makefile.in (PREP): miscellaneous system dependent files.
* Makefile.in (ruby.imp, ext/extinit.o): moved from ext/extmk.rb.
* Makefile.in (fake.rb): CROSS_COMPILING keeps building platform.
* Makefile.in (MAKEFILES): depend on *.in and config.status.
* Makefile.in (parse.c): replace "y.tab.c" with actual name for
byacc.
* ext/extmk.rb, lib/mkmf.rb: integrated.
* ext/extmk.rb: propagate MFLAGS.
* ext/extmk.rb (extmake): make dummy Makefile to clean even if no
Makefile is made.
* lib/mkmf.rb (older): accept multiple file names and Time
objects.
* lib/mkmf.rb (xsystem): split and qoute.
* lib/mkmf.rb (cpp_include): make include directives.
* lib/mkmf.rb (try_func): try wheather specified function is
available.
* lib/mkmf.rb (install_files): default to site-install.
* lib/mkmf.rb (checking_for): added.
* lib/mkmf.rb (find_executable0): just find executable file with
no message.
* lib/mkmf.rb (create_header): output header file is variable.
* lib/mkmf.rb (create_makefile): separate sections.
* lib/mkmf.rb (init_mkmf): initialize global variables.
* win32/Makefile.sub, bcc32/Makefile.sub (CPP, AR): added.
* bcc32/Makefile.sub (ARCH): fixed to i386.
* win32/Makefile.sub, bcc32/Makefile.sub (miniruby): should not
link EXTOBJS.
* ext/dl/extconf.rb: use try_cpp to cross compile.
* ext/dl/extconf.rb: not modify files in source directory.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@2977 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2002-10-21 10:17:44 -04:00
|
|
|
RUBY = $(RUBY_INSTALL_NAME)
|
2010-07-27 06:03:23 -04:00
|
|
|
MINIRUBY = @MINIRUBY@\
|
|
|
|
$(MINIRUBYOPT)
|
2013-09-30 03:07:06 -04:00
|
|
|
# RUNRUBY_COMMAND:: runruby.rb or baseruby. do not append options directly
|
|
|
|
RUNRUBY_COMMAND = @RUNRUBY_COMMAND@
|
|
|
|
# RUNRUBY:: run ruby with RUN_OPTS which is passed to ruby
|
|
|
|
RUNRUBY = @RUNRUBY@ $(RUN_OPTS)
|
|
|
|
# RUNRUBY_DEBUGGER:: debugging option for runruby.rb
|
2012-10-05 03:28:32 -04:00
|
|
|
RUNRUBY_DEBUGGER = --debugger='gdb -x run.gdb --quiet --args'
|
2009-10-22 18:32:39 -04:00
|
|
|
XRUBY = @XRUBY@
|
2012-05-16 22:48:59 -04:00
|
|
|
BTESTRUBY = @BTESTRUBY@\
|
|
|
|
$(MINIRUBYOPT)
|
2010-09-24 12:34:56 -04:00
|
|
|
INSTALL = @INSTALL@
|
|
|
|
INSTALL_DATA = @INSTALL_DATA@
|
|
|
|
INSTALL_SCRIPT = @INSTALL_SCRIPT@
|
|
|
|
INSTALL_PROGRAM = @INSTALL_PROGRAM@
|
|
|
|
XRUBY_LIBDIR = @XRUBY_LIBDIR@
|
|
|
|
XRUBY_RUBYLIBDIR = @XRUBY_RUBYLIBDIR@
|
|
|
|
XRUBY_RUBYHDRDIR = @XRUBY_RUBYHDRDIR@
|
1998-01-16 07:13:05 -05:00
|
|
|
|
2013-10-13 23:22:24 -04:00
|
|
|
DEFAULT_PRELUDES = $(GEM_PRELUDE)
|
2011-02-10 22:03:26 -05:00
|
|
|
|
1998-01-16 07:13:05 -05:00
|
|
|
#### End of system configuration section. ####
|
|
|
|
|
1999-08-13 01:45:20 -04:00
|
|
|
MAJOR= @MAJOR@
|
|
|
|
MINOR= @MINOR@
|
|
|
|
TEENY= @TEENY@
|
1998-01-16 07:13:05 -05:00
|
|
|
|
1999-08-13 01:45:20 -04:00
|
|
|
LIBRUBY_A = @LIBRUBY_A@
|
|
|
|
LIBRUBY_SO = @LIBRUBY_SO@
|
|
|
|
LIBRUBY_ALIASES= @LIBRUBY_ALIASES@
|
1999-01-19 23:59:39 -05:00
|
|
|
LIBRUBY = @LIBRUBY@
|
|
|
|
LIBRUBYARG = @LIBRUBYARG@
|
2002-11-14 08:51:19 -05:00
|
|
|
LIBRUBYARG_STATIC = @LIBRUBYARG_STATIC@
|
|
|
|
LIBRUBYARG_SHARED = @LIBRUBYARG_SHARED@
|
2012-07-02 22:16:08 -04:00
|
|
|
LIBRUBY_RELATIVE = @LIBRUBY_RELATIVE@
|
* configure.in, Makefile.in, common.mk: support DTrace on Solaris 10,
based on r26235 by Yugui. On Solaris 10, low optimization level
may also be needed, e.g. optflags="-xO1" or "-xO0" with Oracle
SolarisStudio 12.3 cc.
* configure.in (--enable-dtrace): new option to enable/disable
DTrace support. By default, trying to enable if dtrace command
is found on the system. It is disabled when cross compiling.
* configure.in (RUBY_DTRACE_POSTPROCESS): new macro. checks whether
the dtrace on the system needs postprocessing with "dtrace -G".
The postprocessing is needed on Solaris 10 and other platforms.
* configure.in (RUBY_DTRACE_BSD_BROKEN): new macro. checks whether
the dtrace supports USDT.
* configure.in (DTRACE): move after RUBY_DTRACE_POSTPROCESS.
* configure.in (LD): On Solaris, /usr/ccs/bin/ld is preferred.
* configure.in, Makefile.in, common.mk (DTRACE_OBJ): new macro for
DTrace probe object generated by postprocessing with "dtrace -G".
* Makefile.in, common.mk (probes.$(OBJEXT)): DTrace probe object
generated by the postprocessing. New file probes.stamp is for
rebuilding related objects that may be modified by "dtrace -G".
* configure.in, Makefile.in, common.mk (DTRACE_GLOMMED_OBJ): new
macro for DTrace static library hacks.
* configure.in, Makefile.in (LIBRUBY_A_OBJS): ditto.
* Makefile.in, common.mk (ruby-glommed.$(OBJEXT)): new target with
rule for DTrace static library hacks.
* common.mk (DTRACE_DEPENDENT_OBJS): objects depended on probes.h.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@37709 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2012-11-18 03:24:24 -05:00
|
|
|
LIBRUBY_A_OBJS = @LIBRUBY_A_OBJS@
|
1998-01-16 07:13:05 -05:00
|
|
|
|
2007-02-27 20:33:57 -05:00
|
|
|
THREAD_MODEL = @THREAD_MODEL@
|
|
|
|
|
2004-02-21 22:58:44 -05:00
|
|
|
PREP = @PREP@
|
|
|
|
ARCHFILE = @ARCHFILE@
|
* configure.in (XCFLAGS): CFLAGS to comile ruby itself.
* configure.in (LIBEXT): suffix for static libraries.
* configure.in (LIBPATHFLAG): switch template to specify library
path.
* configure.in (LINK_SO): command to link shared objects.
* configure.in (DEFFILE, ARCHFILE): miscellaneous system dependent
files.
* configure.in (EXPORT_PREFIX): prefix to exported symbols on
Windows.
* configure.in (COMMON_LIBS, COMMON_MACROS, COMMON_HEADERS):
libraries, macros and headers used in common.
* configure.in (RUBYW_INSTALL_NAME, rubyw_install_name): GUI mode
excutable name.
* Makefile.in (CFLAGS): append XCFLAGS.
* Makefile.in (PREP): miscellaneous system dependent files.
* Makefile.in (ruby.imp, ext/extinit.o): moved from ext/extmk.rb.
* Makefile.in (fake.rb): CROSS_COMPILING keeps building platform.
* Makefile.in (MAKEFILES): depend on *.in and config.status.
* Makefile.in (parse.c): replace "y.tab.c" with actual name for
byacc.
* ext/extmk.rb, lib/mkmf.rb: integrated.
* ext/extmk.rb: propagate MFLAGS.
* ext/extmk.rb (extmake): make dummy Makefile to clean even if no
Makefile is made.
* lib/mkmf.rb (older): accept multiple file names and Time
objects.
* lib/mkmf.rb (xsystem): split and qoute.
* lib/mkmf.rb (cpp_include): make include directives.
* lib/mkmf.rb (try_func): try wheather specified function is
available.
* lib/mkmf.rb (install_files): default to site-install.
* lib/mkmf.rb (checking_for): added.
* lib/mkmf.rb (find_executable0): just find executable file with
no message.
* lib/mkmf.rb (create_header): output header file is variable.
* lib/mkmf.rb (create_makefile): separate sections.
* lib/mkmf.rb (init_mkmf): initialize global variables.
* win32/Makefile.sub, bcc32/Makefile.sub (CPP, AR): added.
* bcc32/Makefile.sub (ARCH): fixed to i386.
* win32/Makefile.sub, bcc32/Makefile.sub (miniruby): should not
link EXTOBJS.
* ext/dl/extconf.rb: use try_cpp to cross compile.
* ext/dl/extconf.rb: not modify files in source directory.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@2977 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2002-10-21 10:17:44 -04:00
|
|
|
SETUP =
|
2003-08-11 22:12:48 -04:00
|
|
|
EXTSTATIC = @EXTSTATIC@
|
2008-07-02 18:06:05 -04:00
|
|
|
SET_LC_MESSAGES = env LC_MESSAGES=C
|
* configure.in (XCFLAGS): CFLAGS to comile ruby itself.
* configure.in (LIBEXT): suffix for static libraries.
* configure.in (LIBPATHFLAG): switch template to specify library
path.
* configure.in (LINK_SO): command to link shared objects.
* configure.in (DEFFILE, ARCHFILE): miscellaneous system dependent
files.
* configure.in (EXPORT_PREFIX): prefix to exported symbols on
Windows.
* configure.in (COMMON_LIBS, COMMON_MACROS, COMMON_HEADERS):
libraries, macros and headers used in common.
* configure.in (RUBYW_INSTALL_NAME, rubyw_install_name): GUI mode
excutable name.
* Makefile.in (CFLAGS): append XCFLAGS.
* Makefile.in (PREP): miscellaneous system dependent files.
* Makefile.in (ruby.imp, ext/extinit.o): moved from ext/extmk.rb.
* Makefile.in (fake.rb): CROSS_COMPILING keeps building platform.
* Makefile.in (MAKEFILES): depend on *.in and config.status.
* Makefile.in (parse.c): replace "y.tab.c" with actual name for
byacc.
* ext/extmk.rb, lib/mkmf.rb: integrated.
* ext/extmk.rb: propagate MFLAGS.
* ext/extmk.rb (extmake): make dummy Makefile to clean even if no
Makefile is made.
* lib/mkmf.rb (older): accept multiple file names and Time
objects.
* lib/mkmf.rb (xsystem): split and qoute.
* lib/mkmf.rb (cpp_include): make include directives.
* lib/mkmf.rb (try_func): try wheather specified function is
available.
* lib/mkmf.rb (install_files): default to site-install.
* lib/mkmf.rb (checking_for): added.
* lib/mkmf.rb (find_executable0): just find executable file with
no message.
* lib/mkmf.rb (create_header): output header file is variable.
* lib/mkmf.rb (create_makefile): separate sections.
* lib/mkmf.rb (init_mkmf): initialize global variables.
* win32/Makefile.sub, bcc32/Makefile.sub (CPP, AR): added.
* bcc32/Makefile.sub (ARCH): fixed to i386.
* win32/Makefile.sub, bcc32/Makefile.sub (miniruby): should not
link EXTOBJS.
* ext/dl/extconf.rb: use try_cpp to cross compile.
* ext/dl/extconf.rb: not modify files in source directory.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@2977 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2002-10-21 10:17:44 -04:00
|
|
|
|
2009-08-13 03:20:16 -04:00
|
|
|
MAKEDIRS = @MKDIR_P@
|
2007-12-11 02:19:28 -05:00
|
|
|
CP = cp
|
|
|
|
MV = mv
|
2004-03-21 18:21:31 -05:00
|
|
|
RM = rm -f
|
2010-07-21 17:26:56 -04:00
|
|
|
RMDIR = @RMDIR@
|
2009-01-24 21:06:29 -05:00
|
|
|
RMDIRS = @RMDIRS@
|
2009-06-08 21:58:51 -04:00
|
|
|
RMALL = @RMALL@
|
2004-03-21 18:21:31 -05:00
|
|
|
NM = @NM@
|
|
|
|
AR = @AR@
|
|
|
|
ARFLAGS = rcu
|
|
|
|
RANLIB = @RANLIB@
|
2006-07-26 09:28:17 -04:00
|
|
|
AS = @AS@
|
2010-10-26 05:09:45 -04:00
|
|
|
ASFLAGS = @ASFLAGS@ $(INCFLAGS)
|
2008-01-25 04:27:30 -05:00
|
|
|
IFCHANGE = $(srcdir)/tool/ifchange
|
2008-05-27 06:12:46 -04:00
|
|
|
SET_LC_MESSAGES = env LC_MESSAGES=C
|
2008-12-07 09:17:36 -05:00
|
|
|
OBJDUMP = @OBJDUMP@
|
|
|
|
OBJCOPY = @OBJCOPY@
|
2009-01-16 03:33:02 -05:00
|
|
|
VCS = @VCS@
|
|
|
|
VCSUP = @VCSUP@
|
* probes.d: add DTrace probe declarations. [ruby-core:27448]
* array.c (empty_ary_alloc, ary_new): added array create DTrace probe.
* compile.c (rb_insns_name): allowing DTrace probes to access
instruction sequence name.
* Makefile.in: translate probes.d file to appropriate header file.
* common.mk: declare dependencies on the DTrace header.
* configure.in: add a test for existence of DTrace.
* eval.c (setup_exception): add a probe for when an exception is
raised.
* gc.c: Add DTrace probes for mark begin and end, and sweep begin and
end.
* hash.c (empty_hash_alloc): Add a probe for hash allocation.
* insns.def: Add probes for function entry and return.
* internal.h: function declaration for compile.c change.
* load.c (rb_f_load): add probes for `load` entry and exit, require
entry and exit, and wrapping search_required for load path search.
* object.c (rb_obj_alloc): added a probe for general object creation.
* parse.y (yycompile0): added a probe around parse and compile phase.
* string.c (empty_str_alloc, str_new): DTrace probes for string
allocation.
* test/dtrace/*: tests for DTrace probes.
* vm.c (vm_invoke_proc): add probes for function return on exception
raise, hash create, and instruction sequence execution.
* vm_core.h: add probe declarations for function entry and exit.
* vm_dump.c: add probes header file.
* vm_eval.c (vm_call0_cfunc, vm_call0_cfunc_with_frame): add probe on
function entry and return.
* vm_exec.c: expose instruction number to instruction name function.
* vm_insnshelper.c: add function entry and exit probes for cfunc
methods.
* vm_insnhelper.h: vm usage information is always collected, so
uncomment the functions.
12 19:14:50 2012 Akinori MUSHA <knu@iDaemons.org>
* configure.in (isinf, isnan): isinf() and isnan() are macros on
DragonFly which cannot be found by AC_REPLACE_FUNCS(). This
workaround enforces the fact that they exist on DragonFly.
12 15:59:38 2012 Shugo Maeda <shugo@ruby-lang.org>
* vm_core.h (rb_call_info_t::refinements), compile.c (new_callinfo),
vm_insnhelper.c (vm_search_method): revert r37616 because it's too
slow. [ruby-dev:46477]
* test/ruby/test_refinement.rb (test_inline_method_cache): skip
the test until the bug is fixed efficiently.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@37631 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2012-11-12 16:52:12 -05:00
|
|
|
DTRACE = @DTRACE@
|
2012-11-16 10:22:37 -05:00
|
|
|
DTRACE_EXT = @DTRACE_EXT@
|
* configure.in, Makefile.in, common.mk: support DTrace on Solaris 10,
based on r26235 by Yugui. On Solaris 10, low optimization level
may also be needed, e.g. optflags="-xO1" or "-xO0" with Oracle
SolarisStudio 12.3 cc.
* configure.in (--enable-dtrace): new option to enable/disable
DTrace support. By default, trying to enable if dtrace command
is found on the system. It is disabled when cross compiling.
* configure.in (RUBY_DTRACE_POSTPROCESS): new macro. checks whether
the dtrace on the system needs postprocessing with "dtrace -G".
The postprocessing is needed on Solaris 10 and other platforms.
* configure.in (RUBY_DTRACE_BSD_BROKEN): new macro. checks whether
the dtrace supports USDT.
* configure.in (DTRACE): move after RUBY_DTRACE_POSTPROCESS.
* configure.in (LD): On Solaris, /usr/ccs/bin/ld is preferred.
* configure.in, Makefile.in, common.mk (DTRACE_OBJ): new macro for
DTrace probe object generated by postprocessing with "dtrace -G".
* Makefile.in, common.mk (probes.$(OBJEXT)): DTrace probe object
generated by the postprocessing. New file probes.stamp is for
rebuilding related objects that may be modified by "dtrace -G".
* configure.in, Makefile.in, common.mk (DTRACE_GLOMMED_OBJ): new
macro for DTrace static library hacks.
* configure.in, Makefile.in (LIBRUBY_A_OBJS): ditto.
* Makefile.in, common.mk (ruby-glommed.$(OBJEXT)): new target with
rule for DTrace static library hacks.
* common.mk (DTRACE_DEPENDENT_OBJS): objects depended on probes.h.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@37709 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2012-11-18 03:24:24 -05:00
|
|
|
DTRACE_OBJ = @DTRACE_OBJ@
|
|
|
|
DTRACE_GLOMMED_OBJ = @DTRACE_GLOMMED_OBJ@
|
2004-03-21 18:21:31 -05:00
|
|
|
|
|
|
|
OBJEXT = @OBJEXT@
|
2007-02-02 13:23:07 -05:00
|
|
|
ASMEXT = S
|
2007-12-15 04:56:59 -05:00
|
|
|
DLEXT = @DLEXT@
|
2003-01-20 07:51:50 -05:00
|
|
|
MANTYPE = @MANTYPE@
|
2010-11-11 06:45:32 -05:00
|
|
|
SYMBOL_PREFIX = @SYMBOL_PREFIX@
|
2003-01-20 07:51:50 -05:00
|
|
|
|
2006-09-16 03:06:57 -04:00
|
|
|
INSTALLED_LIST= .installed.list
|
2009-02-24 05:01:08 -05:00
|
|
|
|
|
|
|
MKMAIN_CMD = mkmain.sh
|
2009-03-14 20:17:21 -04:00
|
|
|
|
2012-03-26 01:08:55 -04:00
|
|
|
NEWLINE_C = newline.c
|
|
|
|
MINIPRELUDE_C = miniprelude.c
|
2013-01-04 06:19:19 -05:00
|
|
|
RBCONFIG = .rbconfig.time
|
2012-03-26 01:08:55 -04:00
|
|
|
|
2009-03-14 20:17:21 -04:00
|
|
|
SRC_FILE = $<
|
2012-11-16 10:22:37 -05:00
|
|
|
OS_SRC_FILE = $<
|
|
|
|
DEST_FILE = $@
|
|
|
|
OS_DEST_FILE = $@
|
2010-11-13 02:38:01 -05:00
|
|
|
|
|
|
|
MESSAGE_BEGIN = @for line in
|
|
|
|
MESSAGE_END = ; do echo "$$line"; done
|
2013-02-09 10:16:15 -05:00
|
|
|
ECHO_BEGIN = @sep=''; for word in
|
|
|
|
ECHO_END = ; do echo @ECHO_N@ "$$sep'$$word'@ECHO_C@"; sep=' '; done; echo
|
2010-11-17 17:37:48 -05:00
|
|
|
|
|
|
|
configure_args = @configure_args@
|
2004-03-21 18:21:31 -05:00
|
|
|
#### End of variables
|
|
|
|
|
2012-11-18 20:04:53 -05:00
|
|
|
.SUFFIXES: .inc .h .c .y .i .$(DTRACE_EXT)
|
|
|
|
|
2004-03-21 18:21:31 -05:00
|
|
|
all:
|
2003-01-25 13:59:34 -05:00
|
|
|
|
2004-03-21 18:21:31 -05:00
|
|
|
# Prevent GNU make v3 from overflowing arg limit on SysV.
|
|
|
|
.NOEXPORT:
|
1998-01-16 07:13:05 -05:00
|
|
|
|
2004-03-21 18:21:31 -05:00
|
|
|
miniruby$(EXEEXT):
|
2009-08-22 00:17:38 -04:00
|
|
|
@-if test -f $@; then $(MV) -f $@ $@.old; $(RM) $@.old; fi
|
2010-11-11 07:46:23 -05:00
|
|
|
$(ECHO) linking $@
|
2013-03-04 00:13:48 -05:00
|
|
|
$(Q) $(PURIFY) $(CC) $(LDFLAGS) $(XLDFLAGS) $(NORMALMAINOBJ) $(MINIOBJS) $(COMMONOBJS) $(DMYEXT) $(DTRACE_OBJ) $(MAINLIBS) $(LIBS) $(OUTFLAG)$@
|
1998-01-16 07:13:05 -05:00
|
|
|
|
2004-03-21 18:21:31 -05:00
|
|
|
$(PROGRAM):
|
|
|
|
@$(RM) $@
|
2010-11-11 07:46:23 -05:00
|
|
|
$(ECHO) linking $@
|
2013-03-04 00:13:48 -05:00
|
|
|
$(Q) $(PURIFY) $(CC) $(LDFLAGS) $(XLDFLAGS) $(MAINOBJ) $(EXTOBJS) $(LIBRUBYARG) $(MAINLIBS) $(LIBS) $(EXTLIBS) $(OUTFLAG)$@
|
2012-05-07 00:41:02 -04:00
|
|
|
$(Q) $(POSTLINK)
|
2004-02-09 03:48:55 -05:00
|
|
|
|
* gc.c (Init_stack): stack region is far smaller than usual if
pthread is used.
* marshal.c (w_extended): singleton methods should not be checked
when dumping via marshal_dump() or _dump(). [ruby-talk:85909]
* file.c (getcwdofdrv): avoid using getcwd() directly, use
my_getcwd() instead.
* merged NeXT, OpenStep, Rhapsody ports patch from Eric Sunshine
<sunshine@sunshineco.com>. [ruby-core:01596]
* marshal.c (w_object): LINK check earlier than anything else,
i.e. do not dump TYPE_IVAR for already dumped objects.
(ruby-bugs PR#1220)
* eval.c (rb_eval): call "inherited" only when a new class is
generated; not on reopening.
* eval.c (eval): prepend error position in evaluating string to
* configure.in: revived NextStep, OpenStep, and Rhapsody ports which
had become unbuildable; enhanced --enable-fat-binary option so that
it accepts a list of desired architectures (rather than assuming a
fixed list), or defaults to a platform-appropriate list if user does
not provide an explicit list; made the default list of architectures
for MAB (fat binary) more comprehensive; now uses -fno-common even
when building the interpreter (in addition to using it for
extensions), thus allowing the interpreter to be embedded into a
plugin module of an external project (in addition to allowing
embedding directly into an application); added checks for
<netinet/in_systm.h> (needed by `socket' extension) and getcwd(); now
ensures that -I/usr/local/include is employed when extensions'
extconf.rb scripts invoke have_header() since extension checks on
NextStep and OpenStep will fail without it if the desired resource
resides in the /usr/local tree; fixed formatting of --help message.
* Makefile.in: $(LIBRUBY_A) rule now deletes the archive before
invoking $(AR) since `ar' on Apple/NeXT can not "update" MAB archives
(see configure's --enable-fat-binary option); added rule for new
missing/getcwd.c.
* defines.h: fixed endian handling during MAB build (see configure's
--enable-fat-binary option) to ensure that all portions of the
project see the correct WORDS_BIGENDIAN value (some extension modules
were getting the wrong endian setting); added missing constants
GETPGRP_VOID, WNOHANG, WUNTRACED, X_OK, and type pid_t for NextStep
and OpenStep; removed unnecessary and problematic HAVE_SYS_WAIT_H
define in NeXT section.
* dir.c: do not allow NAMLEN() macro to trust dirent::d_namlen on
NextStep since, on some installations, this value always resolves
uselessly to zero.
* dln.c: added error reporting to NextStep extension loader since the
previous behavior of failing silently was not useful; now ensures
that NSLINKMODULE_OPTION_BINDNOW compatibility constant is defined
for OpenStep and Rhapsody; no longer includes <mach-o/dyld.h> twice
on Rhapsody since this header lacks multiple-include protection,
which resulted in "redefinition" compilation errors.
* main.c: also create hard reference to objc_msgSend() on NeXT
platforms (in addition to Apple platforms).
* lib/mkmf.rb: now exports XCFLAGS from configure script to extension
makefiles so that extensions can be built MAB (see configure's
--enable-fat-binary option); also utilize XCFLAGS in cc_command()
(but not cpp_command() because MAB flags are incompatible with
direct invocation of `cpp').
* ext/curses/extconf.rb: now additionally checks for presence of these
curses functions which are not present on NextStep or Openstep:
bkgd(), bkgdset(), color(), curs(), getbkgd(), init(), scrl(), set(),
setscrreg(), wattroff(), wattron(), wattrset(), wbkgd(), wbkgdset(),
wscrl(), wsetscrreg()
* ext/curses/curses.c: added appropriate #ifdef's for additional set of
curses functions now checked by extconf.rb; fixed curses_bkgd() and
window_bkgd() to correctly return boolean result rather than numeric
result; fixed window_getbkgd() to correctly signal an error by
returning nil rather than -1.
* ext/etc/etc.c: setup_passwd() and setup_group() now check for null
pointers before invoking rb_tainted_str_new2() upon fields extracted
from `struct passwd' and `struct group' since null pointers in some
fields are common on NextStep/OpenStep (especially so for the
`pw_comment' field) and rb_tainted_str_new2() throws an exception
when it receives a null pointer.
* ext/pty/pty.c: include "util.h" for strdup()/ruby_strdup() for
platforms such as NextStep and OpenStep which lack strdup().
* ext/socket/getaddrinfo.c: cast first argument of getservbyname(),
gethostbyaddr(), and gethostbyname() from (const char*) to non-const
(char*) for older platforms such as NextStep and OpenStep.
* ext/socket/socket.c: include "util.h" for strdup()/ruby_strdup() for
platforms such as NextStep and OpenStep which lack strdup(); include
<netinet/in_systm.h> if present for NextStep and OpenStep; cast first
argument of gethostbyaddr() and getservbyname() from (const char*) to
non-const (char*) for older platforms.
* ext/syslog/syslog.c: include "util.h" for strdup()/ruby_strdup() for
platforms such as NextStep and OpenStep which lack strdup().
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@5002 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2003-11-21 23:00:03 -05:00
|
|
|
# We must `rm' the library each time this rule is invoked because "updating" a
|
|
|
|
# MAB library on Apple/NeXT (see --enable-fat-binary in configure) is not
|
|
|
|
# supported.
|
2004-03-21 18:21:31 -05:00
|
|
|
$(LIBRUBY_A):
|
|
|
|
@$(RM) $@
|
2010-11-11 07:46:23 -05:00
|
|
|
$(ECHO) linking static-library $@
|
* configure.in, Makefile.in, common.mk: support DTrace on Solaris 10,
based on r26235 by Yugui. On Solaris 10, low optimization level
may also be needed, e.g. optflags="-xO1" or "-xO0" with Oracle
SolarisStudio 12.3 cc.
* configure.in (--enable-dtrace): new option to enable/disable
DTrace support. By default, trying to enable if dtrace command
is found on the system. It is disabled when cross compiling.
* configure.in (RUBY_DTRACE_POSTPROCESS): new macro. checks whether
the dtrace on the system needs postprocessing with "dtrace -G".
The postprocessing is needed on Solaris 10 and other platforms.
* configure.in (RUBY_DTRACE_BSD_BROKEN): new macro. checks whether
the dtrace supports USDT.
* configure.in (DTRACE): move after RUBY_DTRACE_POSTPROCESS.
* configure.in (LD): On Solaris, /usr/ccs/bin/ld is preferred.
* configure.in, Makefile.in, common.mk (DTRACE_OBJ): new macro for
DTrace probe object generated by postprocessing with "dtrace -G".
* Makefile.in, common.mk (probes.$(OBJEXT)): DTrace probe object
generated by the postprocessing. New file probes.stamp is for
rebuilding related objects that may be modified by "dtrace -G".
* configure.in, Makefile.in, common.mk (DTRACE_GLOMMED_OBJ): new
macro for DTrace static library hacks.
* configure.in, Makefile.in (LIBRUBY_A_OBJS): ditto.
* Makefile.in, common.mk (ruby-glommed.$(OBJEXT)): new target with
rule for DTrace static library hacks.
* common.mk (DTRACE_DEPENDENT_OBJS): objects depended on probes.h.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@37709 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2012-11-18 03:24:24 -05:00
|
|
|
$(Q) $(AR) $(ARFLAGS) $@ $(LIBRUBY_A_OBJS) $(DMYEXT)
|
2004-03-21 18:21:31 -05:00
|
|
|
@-$(RANLIB) $@ 2> /dev/null || true
|
2012-05-16 01:39:06 -04:00
|
|
|
$(ECHO) verifying static-library $@
|
2013-09-12 08:47:49 -04:00
|
|
|
@$(PURIFY) $(CC) $(LDFLAGS) $(XLDFLAGS) $(MAINOBJ) $(LIBRUBY_A) $(MAINLIBS) $(EXTLIBS) $(LIBS) $(OUTFLAG)conftest$(EXEEXT)
|
2012-05-18 22:34:37 -04:00
|
|
|
@$(RM) conftest$(EXEEXT) conftest.c
|
1999-01-19 23:59:39 -05:00
|
|
|
|
2004-03-21 18:21:31 -05:00
|
|
|
$(LIBRUBY_SO):
|
2006-10-01 11:00:45 -04:00
|
|
|
@-$(PRE_LIBRUBY_UPDATE)
|
2010-11-11 07:46:23 -05:00
|
|
|
$(ECHO) linking shared-library $@
|
* configure.in, Makefile.in, common.mk: support DTrace on Solaris 10,
based on r26235 by Yugui. On Solaris 10, low optimization level
may also be needed, e.g. optflags="-xO1" or "-xO0" with Oracle
SolarisStudio 12.3 cc.
* configure.in (--enable-dtrace): new option to enable/disable
DTrace support. By default, trying to enable if dtrace command
is found on the system. It is disabled when cross compiling.
* configure.in (RUBY_DTRACE_POSTPROCESS): new macro. checks whether
the dtrace on the system needs postprocessing with "dtrace -G".
The postprocessing is needed on Solaris 10 and other platforms.
* configure.in (RUBY_DTRACE_BSD_BROKEN): new macro. checks whether
the dtrace supports USDT.
* configure.in (DTRACE): move after RUBY_DTRACE_POSTPROCESS.
* configure.in (LD): On Solaris, /usr/ccs/bin/ld is preferred.
* configure.in, Makefile.in, common.mk (DTRACE_OBJ): new macro for
DTrace probe object generated by postprocessing with "dtrace -G".
* Makefile.in, common.mk (probes.$(OBJEXT)): DTrace probe object
generated by the postprocessing. New file probes.stamp is for
rebuilding related objects that may be modified by "dtrace -G".
* configure.in, Makefile.in, common.mk (DTRACE_GLOMMED_OBJ): new
macro for DTrace static library hacks.
* configure.in, Makefile.in (LIBRUBY_A_OBJS): ditto.
* Makefile.in, common.mk (ruby-glommed.$(OBJEXT)): new target with
rule for DTrace static library hacks.
* common.mk (DTRACE_DEPENDENT_OBJS): objects depended on probes.h.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@37709 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2012-11-18 03:24:24 -05:00
|
|
|
$(Q) $(LDSHARED) $(DLDFLAGS) $(OBJS) $(DLDOBJS) $(DTRACE_OBJ) $(SOLIBS) $(EXTSOLIBS) $(OUTFLAG)$@
|
2010-11-12 06:51:42 -05:00
|
|
|
-$(Q) $(OBJCOPY) -w -L '$(SYMBOL_PREFIX)Init_*' -L '$(SYMBOL_PREFIX)*_threadptr_*' $@
|
2012-12-10 00:05:32 -05:00
|
|
|
$(Q) $(POSTLINK)
|
2013-03-21 01:26:32 -04:00
|
|
|
@-$(MINIRUBY) -e 'ARGV.each{|link| File.delete link rescue nil; \
|
1999-08-13 01:45:20 -04:00
|
|
|
File.symlink "$(LIBRUBY_SO)", link}' \
|
|
|
|
$(LIBRUBY_ALIASES) || true
|
2010-04-05 22:21:40 -04:00
|
|
|
$(arch)-fake.rb: config.status $(srcdir)/template/fake.rb.in
|
2009-04-07 00:35:24 -04:00
|
|
|
@./config.status --file=$@:$(srcdir)/template/fake.rb.in
|
2010-04-05 22:21:40 -04:00
|
|
|
@chmod +x $@
|
1998-01-16 07:13:05 -05:00
|
|
|
|
2010-10-25 11:29:32 -04:00
|
|
|
ruby_pc = @ruby_pc@
|
2010-10-25 23:47:15 -04:00
|
|
|
$(ruby_pc):
|
2010-10-25 11:29:32 -04:00
|
|
|
@./config.status --file=$@:$(srcdir)/template/ruby.pc.in
|
|
|
|
|
2010-09-24 12:34:56 -04:00
|
|
|
install-cross: $(arch)-fake.rb $(RBCONFIG) rbconfig.rb $(arch_hdrdir)/ruby/config.h \
|
|
|
|
$(LIBRUBY_A) $(LIBRUBY_SO) $(ARCHFILE)
|
2010-11-11 08:03:42 -05:00
|
|
|
$(ECHO) installing cross-compiling stuff
|
2010-11-12 06:51:42 -05:00
|
|
|
$(Q) $(MAKEDIRS) $(XRUBY_RUBYLIBDIR)/$(arch) $(XRUBY_RUBYHDRDIR)/$(arch)/ruby
|
|
|
|
$(Q) sed '/^\$$:\.unshift/q' $(arch)-fake.rb > fake.rb
|
|
|
|
$(Q) $(BASERUBY) -p \
|
2010-09-24 12:34:56 -04:00
|
|
|
-e '~/^\s*CONFIG\["LDFLAGS"\]/ and' \
|
|
|
|
-e '$$_[/(?=\s*"$$)/] = %q[ #{(CONFIG["LIBPATHFLAG"]%File.dirname(__FILE__)).strip}]' \
|
|
|
|
rbconfig.rb > fake-rbconfig.rb
|
|
|
|
$(INSTALL_SCRIPT) fake.rb $(XRUBY_RUBYLIBDIR)/$(arch)/fake.rb
|
|
|
|
$(INSTALL_SCRIPT) fake-rbconfig.rb $(XRUBY_RUBYLIBDIR)/$(arch)/rbconfig.rb
|
|
|
|
@$(RM) fake.rb fake-rbconfig.rb
|
|
|
|
$(INSTALL_DATA) $(arch_hdrdir)/ruby/config.h $(XRUBY_RUBYHDRDIR)/$(arch)/ruby
|
|
|
|
$(INSTALL_DATA) $(top_srcdir)/include/ruby/win32.h $(XRUBY_RUBYHDRDIR)/ruby
|
|
|
|
$(INSTALL_DATA) $(LIBRUBY) $(LIBRUBY_A) $(XRUBY_RUBYLIBDIR)/$(arch)
|
|
|
|
$(INSTALL_PROGRAM) $(LIBRUBY_SO) $(XRUBY_RUBYLIBDIR)/$(arch)
|
|
|
|
|
2008-01-08 08:35:24 -05:00
|
|
|
Makefile: $(srcdir)/Makefile.in $(srcdir)/enc/Makefile.in
|
* configure.in (XCFLAGS): CFLAGS to comile ruby itself.
* configure.in (LIBEXT): suffix for static libraries.
* configure.in (LIBPATHFLAG): switch template to specify library
path.
* configure.in (LINK_SO): command to link shared objects.
* configure.in (DEFFILE, ARCHFILE): miscellaneous system dependent
files.
* configure.in (EXPORT_PREFIX): prefix to exported symbols on
Windows.
* configure.in (COMMON_LIBS, COMMON_MACROS, COMMON_HEADERS):
libraries, macros and headers used in common.
* configure.in (RUBYW_INSTALL_NAME, rubyw_install_name): GUI mode
excutable name.
* Makefile.in (CFLAGS): append XCFLAGS.
* Makefile.in (PREP): miscellaneous system dependent files.
* Makefile.in (ruby.imp, ext/extinit.o): moved from ext/extmk.rb.
* Makefile.in (fake.rb): CROSS_COMPILING keeps building platform.
* Makefile.in (MAKEFILES): depend on *.in and config.status.
* Makefile.in (parse.c): replace "y.tab.c" with actual name for
byacc.
* ext/extmk.rb, lib/mkmf.rb: integrated.
* ext/extmk.rb: propagate MFLAGS.
* ext/extmk.rb (extmake): make dummy Makefile to clean even if no
Makefile is made.
* lib/mkmf.rb (older): accept multiple file names and Time
objects.
* lib/mkmf.rb (xsystem): split and qoute.
* lib/mkmf.rb (cpp_include): make include directives.
* lib/mkmf.rb (try_func): try wheather specified function is
available.
* lib/mkmf.rb (install_files): default to site-install.
* lib/mkmf.rb (checking_for): added.
* lib/mkmf.rb (find_executable0): just find executable file with
no message.
* lib/mkmf.rb (create_header): output header file is variable.
* lib/mkmf.rb (create_makefile): separate sections.
* lib/mkmf.rb (init_mkmf): initialize global variables.
* win32/Makefile.sub, bcc32/Makefile.sub (CPP, AR): added.
* bcc32/Makefile.sub (ARCH): fixed to i386.
* win32/Makefile.sub, bcc32/Makefile.sub (miniruby): should not
link EXTOBJS.
* ext/dl/extconf.rb: use try_cpp to cross compile.
* ext/dl/extconf.rb: not modify files in source directory.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@2977 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2002-10-21 10:17:44 -04:00
|
|
|
|
2008-08-13 23:01:42 -04:00
|
|
|
$(MKFILES): config.status
|
2013-10-12 23:49:48 -04:00
|
|
|
@[ -f $@ ] && mv $@ $@.old
|
|
|
|
MAKE=$(MAKE) $(SHELL) ./config.status $@
|
|
|
|
@cmp $@ $@.old > /dev/null 2>&1 && echo $@ unchanged && exit 0; \
|
2013-01-10 03:45:42 -05:00
|
|
|
{ \
|
* configure.in (XCFLAGS): CFLAGS to comile ruby itself.
* configure.in (LIBEXT): suffix for static libraries.
* configure.in (LIBPATHFLAG): switch template to specify library
path.
* configure.in (LINK_SO): command to link shared objects.
* configure.in (DEFFILE, ARCHFILE): miscellaneous system dependent
files.
* configure.in (EXPORT_PREFIX): prefix to exported symbols on
Windows.
* configure.in (COMMON_LIBS, COMMON_MACROS, COMMON_HEADERS):
libraries, macros and headers used in common.
* configure.in (RUBYW_INSTALL_NAME, rubyw_install_name): GUI mode
excutable name.
* Makefile.in (CFLAGS): append XCFLAGS.
* Makefile.in (PREP): miscellaneous system dependent files.
* Makefile.in (ruby.imp, ext/extinit.o): moved from ext/extmk.rb.
* Makefile.in (fake.rb): CROSS_COMPILING keeps building platform.
* Makefile.in (MAKEFILES): depend on *.in and config.status.
* Makefile.in (parse.c): replace "y.tab.c" with actual name for
byacc.
* ext/extmk.rb, lib/mkmf.rb: integrated.
* ext/extmk.rb: propagate MFLAGS.
* ext/extmk.rb (extmake): make dummy Makefile to clean even if no
Makefile is made.
* lib/mkmf.rb (older): accept multiple file names and Time
objects.
* lib/mkmf.rb (xsystem): split and qoute.
* lib/mkmf.rb (cpp_include): make include directives.
* lib/mkmf.rb (try_func): try wheather specified function is
available.
* lib/mkmf.rb (install_files): default to site-install.
* lib/mkmf.rb (checking_for): added.
* lib/mkmf.rb (find_executable0): just find executable file with
no message.
* lib/mkmf.rb (create_header): output header file is variable.
* lib/mkmf.rb (create_makefile): separate sections.
* lib/mkmf.rb (init_mkmf): initialize global variables.
* win32/Makefile.sub, bcc32/Makefile.sub (CPP, AR): added.
* bcc32/Makefile.sub (ARCH): fixed to i386.
* win32/Makefile.sub, bcc32/Makefile.sub (miniruby): should not
link EXTOBJS.
* ext/dl/extconf.rb: use try_cpp to cross compile.
* ext/dl/extconf.rb: not modify files in source directory.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@2977 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2002-10-21 10:17:44 -04:00
|
|
|
echo "all:; -@rm -f conftest.mk"; \
|
|
|
|
echo "conftest.mk: .force; @echo AUTO_REMAKE"; \
|
|
|
|
echo ".force:"; \
|
2003-08-16 10:58:34 -04:00
|
|
|
} > conftest.mk || exit 1; \
|
|
|
|
$(MAKE) -f conftest.mk | grep '^AUTO_REMAKE$$' >/dev/null 2>&1 || \
|
2013-10-12 23:49:48 -04:00
|
|
|
{ echo "$@ updated, restart."; exit 1; }
|
* configure.in (XCFLAGS): CFLAGS to comile ruby itself.
* configure.in (LIBEXT): suffix for static libraries.
* configure.in (LIBPATHFLAG): switch template to specify library
path.
* configure.in (LINK_SO): command to link shared objects.
* configure.in (DEFFILE, ARCHFILE): miscellaneous system dependent
files.
* configure.in (EXPORT_PREFIX): prefix to exported symbols on
Windows.
* configure.in (COMMON_LIBS, COMMON_MACROS, COMMON_HEADERS):
libraries, macros and headers used in common.
* configure.in (RUBYW_INSTALL_NAME, rubyw_install_name): GUI mode
excutable name.
* Makefile.in (CFLAGS): append XCFLAGS.
* Makefile.in (PREP): miscellaneous system dependent files.
* Makefile.in (ruby.imp, ext/extinit.o): moved from ext/extmk.rb.
* Makefile.in (fake.rb): CROSS_COMPILING keeps building platform.
* Makefile.in (MAKEFILES): depend on *.in and config.status.
* Makefile.in (parse.c): replace "y.tab.c" with actual name for
byacc.
* ext/extmk.rb, lib/mkmf.rb: integrated.
* ext/extmk.rb: propagate MFLAGS.
* ext/extmk.rb (extmake): make dummy Makefile to clean even if no
Makefile is made.
* lib/mkmf.rb (older): accept multiple file names and Time
objects.
* lib/mkmf.rb (xsystem): split and qoute.
* lib/mkmf.rb (cpp_include): make include directives.
* lib/mkmf.rb (try_func): try wheather specified function is
available.
* lib/mkmf.rb (install_files): default to site-install.
* lib/mkmf.rb (checking_for): added.
* lib/mkmf.rb (find_executable0): just find executable file with
no message.
* lib/mkmf.rb (create_header): output header file is variable.
* lib/mkmf.rb (create_makefile): separate sections.
* lib/mkmf.rb (init_mkmf): initialize global variables.
* win32/Makefile.sub, bcc32/Makefile.sub (CPP, AR): added.
* bcc32/Makefile.sub (ARCH): fixed to i386.
* win32/Makefile.sub, bcc32/Makefile.sub (miniruby): should not
link EXTOBJS.
* ext/dl/extconf.rb: use try_cpp to cross compile.
* ext/dl/extconf.rb: not modify files in source directory.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@2977 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2002-10-21 10:17:44 -04:00
|
|
|
|
2008-08-13 23:01:42 -04:00
|
|
|
uncommon.mk: $(srcdir)/common.mk
|
|
|
|
sed 's/{\$$([^(){}]*)[^{}]*}//g' $< > $@
|
|
|
|
|
2010-11-17 17:37:48 -05:00
|
|
|
.PHONY: reconfig
|
|
|
|
reconfig-args = $(srcdir)/configure $(configure_args)
|
|
|
|
config.status-args = ./config.status --recheck
|
|
|
|
reconfig-exec-0 = exec 3>&1; exit `exec 4>&1; { "$$@" 3>&- 4>&-; echo $$? 1>&4; } | fgrep -v '(cached)' 1>&3`
|
|
|
|
reconfig-exec-1 = set -x; "$$@"
|
|
|
|
|
2012-03-12 21:59:50 -04:00
|
|
|
reconfig config.status: $(srcdir)/configure $(srcdir)/enc/Makefile.in \
|
2012-04-17 00:55:14 -04:00
|
|
|
$(srcdir)/include/ruby/version.h
|
2010-03-11 17:09:25 -05:00
|
|
|
@PWD= MINIRUBY="$(MINIRUBY)"; export MINIRUBY; \
|
2010-11-17 17:37:48 -05:00
|
|
|
set $(SHELL) $($@-args); $(reconfig-exec-$(V))
|
1999-01-19 23:59:39 -05:00
|
|
|
|
2001-01-11 03:32:54 -05:00
|
|
|
$(srcdir)/configure: $(srcdir)/configure.in
|
2009-03-06 04:37:31 -05:00
|
|
|
$(CHDIR) $(srcdir) && exec $(AUTOCONF)
|
1999-01-19 23:59:39 -05:00
|
|
|
|
2012-11-16 03:56:49 -05:00
|
|
|
incs: id.h
|
|
|
|
all-incs: probes.h
|
* probes.d: add DTrace probe declarations. [ruby-core:27448]
* array.c (empty_ary_alloc, ary_new): added array create DTrace probe.
* compile.c (rb_insns_name): allowing DTrace probes to access
instruction sequence name.
* Makefile.in: translate probes.d file to appropriate header file.
* common.mk: declare dependencies on the DTrace header.
* configure.in: add a test for existence of DTrace.
* eval.c (setup_exception): add a probe for when an exception is
raised.
* gc.c: Add DTrace probes for mark begin and end, and sweep begin and
end.
* hash.c (empty_hash_alloc): Add a probe for hash allocation.
* insns.def: Add probes for function entry and return.
* internal.h: function declaration for compile.c change.
* load.c (rb_f_load): add probes for `load` entry and exit, require
entry and exit, and wrapping search_required for load path search.
* object.c (rb_obj_alloc): added a probe for general object creation.
* parse.y (yycompile0): added a probe around parse and compile phase.
* string.c (empty_str_alloc, str_new): DTrace probes for string
allocation.
* test/dtrace/*: tests for DTrace probes.
* vm.c (vm_invoke_proc): add probes for function return on exception
raise, hash create, and instruction sequence execution.
* vm_core.h: add probe declarations for function entry and exit.
* vm_dump.c: add probes header file.
* vm_eval.c (vm_call0_cfunc, vm_call0_cfunc_with_frame): add probe on
function entry and return.
* vm_exec.c: expose instruction number to instruction name function.
* vm_insnshelper.c: add function entry and exit probes for cfunc
methods.
* vm_insnhelper.h: vm usage information is always collected, so
uncomment the functions.
12 19:14:50 2012 Akinori MUSHA <knu@iDaemons.org>
* configure.in (isinf, isnan): isinf() and isnan() are macros on
DragonFly which cannot be found by AC_REPLACE_FUNCS(). This
workaround enforces the fact that they exist on DragonFly.
12 15:59:38 2012 Shugo Maeda <shugo@ruby-lang.org>
* vm_core.h (rb_call_info_t::refinements), compile.c (new_callinfo),
vm_insnhelper.c (vm_search_method): revert r37616 because it's too
slow. [ruby-dev:46477]
* test/ruby/test_refinement.rb (test_inline_method_cache): skip
the test until the bug is fixed efficiently.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@37631 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2012-11-12 16:52:12 -05:00
|
|
|
|
2007-11-11 02:56:30 -05:00
|
|
|
# Things which should be considered:
|
|
|
|
# * with gperf v.s. without gperf
|
2009-10-13 07:43:01 -04:00
|
|
|
# * committers may have various versions of gperf
|
2007-11-11 02:56:30 -05:00
|
|
|
# * ./configure v.s. ../ruby/configure
|
|
|
|
# * GNU make v.s. HP-UX make # HP-UX make invokes the action if lex.c and keywords has same mtime.
|
2007-11-11 04:27:05 -05:00
|
|
|
# * svn checkout generate a file with mtime as current time
|
2009-10-13 07:43:01 -04:00
|
|
|
# * ext4 and XFS has a mtime with fractional part
|
2008-10-18 18:30:13 -04:00
|
|
|
lex.c: defs/keywords
|
2008-08-13 00:09:15 -04:00
|
|
|
@\
|
2008-10-18 18:30:13 -04:00
|
|
|
if cmp -s $(srcdir)/defs/lex.c.src $?; then \
|
2010-11-17 04:32:44 -05:00
|
|
|
[ $(Q) ] && echo copying $@ || set -x; \
|
2009-08-22 00:17:38 -04:00
|
|
|
$(CP) $(srcdir)/lex.c.blt $@; \
|
2007-11-11 02:56:30 -05:00
|
|
|
else \
|
2010-11-17 04:32:44 -05:00
|
|
|
[ $(Q) ] && echo generating $@ || set -x; \
|
2007-11-13 01:29:49 -05:00
|
|
|
gperf -C -p -j1 -i 1 -g -o -t -N rb_reserved_word -k1,3,$$ $? > $@.tmp && \
|
2009-08-22 00:17:38 -04:00
|
|
|
$(MV) $@.tmp $@ && \
|
|
|
|
$(CP) $? $(srcdir)/defs/lex.c.src && \
|
|
|
|
$(CP) $@ $(srcdir)/lex.c.blt; \
|
2007-11-11 02:56:30 -05:00
|
|
|
fi
|
1998-01-16 07:19:22 -05:00
|
|
|
|
2009-08-21 04:01:09 -04:00
|
|
|
NAME2CTYPE_OPTIONS = -7 -c -j1 -i1 -t -C -P -T -H uniname2ctype_hash -Q uniname2ctype_pool -N uniname2ctype_p
|
|
|
|
|
|
|
|
enc/unicode/name2ctype.h: enc/unicode/name2ctype.kwd
|
|
|
|
$(MAKEDIRS) $(@D)
|
2009-08-24 23:22:30 -04:00
|
|
|
@set +e; \
|
2009-08-21 04:01:09 -04:00
|
|
|
if cmp -s $(?:.kwd=.src) $?; then \
|
|
|
|
set -x; \
|
2009-08-22 00:17:38 -04:00
|
|
|
$(CP) $(?:.kwd=.h.blt) $@; \
|
2009-08-21 04:01:09 -04:00
|
|
|
else \
|
|
|
|
trap '$(RM) $@-1.h $@-2.h' 0 && \
|
|
|
|
set -x; \
|
|
|
|
sed '/^#ifdef USE_UNICODE_PROPERTIES/,/^#endif/d' $? | gperf $(NAME2CTYPE_OPTIONS) > $@-1.h && \
|
2012-06-13 13:54:14 -04:00
|
|
|
sed '/^#ifdef USE_UNICODE_PROPERTIES/d;/^#endif/d' $? | gperf $(NAME2CTYPE_OPTIONS) > $@-2.h && \
|
2009-08-24 22:42:55 -04:00
|
|
|
diff -DUSE_UNICODE_PROPERTIES $@-1.h $@-2.h > $@.tmp || :; \
|
2009-08-22 00:17:38 -04:00
|
|
|
$(MV) $@.tmp $@ && \
|
|
|
|
$(CP) $? $(?:.kwd=.src) && \
|
|
|
|
$(CP) $@ $(?:.kwd=.h.blt); \
|
2009-08-21 04:01:09 -04:00
|
|
|
fi
|
|
|
|
|
2004-03-21 18:21:31 -05:00
|
|
|
.c.@OBJEXT@:
|
2010-11-11 07:46:23 -05:00
|
|
|
@$(ECHO) compiling $<
|
2010-11-12 06:51:42 -05:00
|
|
|
$(Q) $(CC) $(CFLAGS) $(XCFLAGS) $(CPPFLAGS) $(COUTFLAG)$@ -c $<
|
2000-05-14 05:36:29 -04:00
|
|
|
|
2006-07-26 09:28:17 -04:00
|
|
|
.s.@OBJEXT@:
|
2010-11-11 07:46:23 -05:00
|
|
|
@$(ECHO) assembling $<
|
2010-11-12 06:51:42 -05:00
|
|
|
$(Q) $(AS) $(ASFLAGS) -o $@ $<
|
2006-07-26 09:28:17 -04:00
|
|
|
|
2007-02-02 13:23:07 -05:00
|
|
|
.c.S:
|
2010-11-11 07:46:23 -05:00
|
|
|
@$(ECHO) translating $<
|
2010-11-12 06:51:42 -05:00
|
|
|
$(Q) $(CC) $(CFLAGS) $(XCFLAGS) $(CPPFLAGS) $(COUTFLAG)$@ -S $<
|
2007-02-02 13:23:07 -05:00
|
|
|
|
2009-03-15 20:29:00 -04:00
|
|
|
.c.i:
|
2010-11-11 07:46:23 -05:00
|
|
|
@$(ECHO) preprocessing $<
|
2012-06-13 04:50:42 -04:00
|
|
|
$(Q) $(CPP) $(warnflags) $(XCFLAGS) $(CPPFLAGS) $(COUTFLAG)$@ -E $< > $@
|
2009-03-15 20:29:00 -04:00
|
|
|
|
2012-11-16 10:22:37 -05:00
|
|
|
.d.h:
|
|
|
|
@$(ECHO) translating probes $<
|
2012-11-22 03:01:49 -05:00
|
|
|
$(Q) $(DTRACE) -o $@.tmp -h -C $(INCFLAGS) -s $<
|
2012-11-20 08:48:04 -05:00
|
|
|
$(Q) sed -e 's/RUBY_/RUBY_DTRACE_/g' -e 's/PROBES_H_TMP/PROBES_H/g' -e 's/(char \*/(const char */g' -e 's/, char \*/, const char */g' $@.tmp > $@
|
2012-11-16 10:22:37 -05:00
|
|
|
$(Q) $(RM) $@.tmp
|
2012-11-13 01:35:30 -05:00
|
|
|
|
2012-11-22 06:25:01 -05:00
|
|
|
.dmyh.h:
|
2012-11-22 04:16:48 -05:00
|
|
|
@$(ECHO) copying dummy $(DEST_FILE)
|
|
|
|
$(Q) $(CP) $(OS_SRC_FILE) $(OS_DEST_FILE)
|
|
|
|
|
* configure.in, Makefile.in, common.mk: support DTrace on Solaris 10,
based on r26235 by Yugui. On Solaris 10, low optimization level
may also be needed, e.g. optflags="-xO1" or "-xO0" with Oracle
SolarisStudio 12.3 cc.
* configure.in (--enable-dtrace): new option to enable/disable
DTrace support. By default, trying to enable if dtrace command
is found on the system. It is disabled when cross compiling.
* configure.in (RUBY_DTRACE_POSTPROCESS): new macro. checks whether
the dtrace on the system needs postprocessing with "dtrace -G".
The postprocessing is needed on Solaris 10 and other platforms.
* configure.in (RUBY_DTRACE_BSD_BROKEN): new macro. checks whether
the dtrace supports USDT.
* configure.in (DTRACE): move after RUBY_DTRACE_POSTPROCESS.
* configure.in (LD): On Solaris, /usr/ccs/bin/ld is preferred.
* configure.in, Makefile.in, common.mk (DTRACE_OBJ): new macro for
DTrace probe object generated by postprocessing with "dtrace -G".
* Makefile.in, common.mk (probes.$(OBJEXT)): DTrace probe object
generated by the postprocessing. New file probes.stamp is for
rebuilding related objects that may be modified by "dtrace -G".
* configure.in, Makefile.in, common.mk (DTRACE_GLOMMED_OBJ): new
macro for DTrace static library hacks.
* configure.in, Makefile.in (LIBRUBY_A_OBJS): ditto.
* Makefile.in, common.mk (ruby-glommed.$(OBJEXT)): new target with
rule for DTrace static library hacks.
* common.mk (DTRACE_DEPENDENT_OBJS): objects depended on probes.h.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@37709 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2012-11-18 03:24:24 -05:00
|
|
|
probes.@OBJEXT@: $(srcdir)/probes.d
|
|
|
|
@$(ECHO) processing probes in object files
|
|
|
|
$(Q) stamp="$*.stamp"; \
|
|
|
|
if test -f "$$stamp" -o -f "$@"; then \
|
|
|
|
$(RM) $(DTRACE_DEPENDENT_OBJS) "$$stamp"; \
|
|
|
|
for o in $(DTRACE_DEPENDENT_OBJS); do \
|
|
|
|
echo "rebuilding $$o which was modified by \"dtrace -G\""; \
|
|
|
|
$(MAKE) "$$o"; \
|
|
|
|
done; \
|
|
|
|
fi; \
|
|
|
|
touch "$$stamp"
|
2012-11-19 19:51:00 -05:00
|
|
|
$(RM) $@
|
2012-11-22 04:03:43 -05:00
|
|
|
$(Q) $(DTRACE) -G -C $(INCFLAGS) -s $(srcdir)/probes.d -o $@ $(DTRACE_DEPENDENT_OBJS)
|
* configure.in, Makefile.in, common.mk: support DTrace on Solaris 10,
based on r26235 by Yugui. On Solaris 10, low optimization level
may also be needed, e.g. optflags="-xO1" or "-xO0" with Oracle
SolarisStudio 12.3 cc.
* configure.in (--enable-dtrace): new option to enable/disable
DTrace support. By default, trying to enable if dtrace command
is found on the system. It is disabled when cross compiling.
* configure.in (RUBY_DTRACE_POSTPROCESS): new macro. checks whether
the dtrace on the system needs postprocessing with "dtrace -G".
The postprocessing is needed on Solaris 10 and other platforms.
* configure.in (RUBY_DTRACE_BSD_BROKEN): new macro. checks whether
the dtrace supports USDT.
* configure.in (DTRACE): move after RUBY_DTRACE_POSTPROCESS.
* configure.in (LD): On Solaris, /usr/ccs/bin/ld is preferred.
* configure.in, Makefile.in, common.mk (DTRACE_OBJ): new macro for
DTrace probe object generated by postprocessing with "dtrace -G".
* Makefile.in, common.mk (probes.$(OBJEXT)): DTrace probe object
generated by the postprocessing. New file probes.stamp is for
rebuilding related objects that may be modified by "dtrace -G".
* configure.in, Makefile.in, common.mk (DTRACE_GLOMMED_OBJ): new
macro for DTrace static library hacks.
* configure.in, Makefile.in (LIBRUBY_A_OBJS): ditto.
* Makefile.in, common.mk (ruby-glommed.$(OBJEXT)): new target with
rule for DTrace static library hacks.
* common.mk (DTRACE_DEPENDENT_OBJS): objects depended on probes.h.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@37709 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2012-11-18 03:24:24 -05:00
|
|
|
|
|
|
|
# DTrace static library hacks described here:
|
|
|
|
# http://mail.opensolaris.org/pipermail/dtrace-discuss/2005-August/000207.html
|
|
|
|
ruby-glommed.$(OBJEXT):
|
|
|
|
@$(ECHO) generating a glommed object with DTrace probes for static library
|
|
|
|
$(Q) $(LD) -r -o $@ $(OBJS) $(DTRACE_OBJ)
|
|
|
|
|
2004-03-23 00:32:01 -05:00
|
|
|
clean-local::
|
2012-05-16 01:39:06 -04:00
|
|
|
$(Q)$(RM) ext/extinit.c ext/extinit.$(OBJEXT) ext/ripper/y.output \
|
|
|
|
enc/encinit.c enc/encinit.$(OBJEXT)
|
2010-12-30 06:18:12 -05:00
|
|
|
-$(Q)$(RM) $(pkgconfig_DATA)
|
2004-03-23 00:32:01 -05:00
|
|
|
|
|
|
|
distclean-local::
|
2010-12-30 06:18:12 -05:00
|
|
|
$(Q)$(RM) ext/config.cache $(RBCONFIG) Doxyfile
|
|
|
|
-$(Q)$(RM) run.gdb
|
2012-05-03 12:57:51 -04:00
|
|
|
-$(Q)$(RM) $(INSTALLED_LIST) $(arch_hdrdir)/ruby/config.h verconf.h
|
2010-12-30 06:18:12 -05:00
|
|
|
-$(Q)$(RMDIRS) $(arch_hdrdir)/ruby 2> /dev/null || true
|
2009-01-24 21:06:29 -05:00
|
|
|
|
2008-08-07 03:28:56 -04:00
|
|
|
clean-ext distclean-ext realclean-ext::
|
2010-06-14 13:32:03 -04:00
|
|
|
@cd ext 2>/dev/null || exit 0; set dummy `echo "${EXTS}" | tr , ' '`; shift; \
|
2010-01-19 00:29:18 -05:00
|
|
|
test "$$#" = 0 && set .; \
|
2010-08-06 05:56:22 -04:00
|
|
|
set dummy `\
|
|
|
|
find "$$@" -name Makefile -print | sed 's:^\./::;s:/Makefile$$:~:' | sort | sed 's:~$$::'; \
|
|
|
|
`; shift; \
|
2010-03-22 04:38:10 -04:00
|
|
|
cd ..; \
|
2010-07-11 04:01:59 -04:00
|
|
|
for dir do \
|
2008-12-31 17:16:51 -05:00
|
|
|
echo $(@:-ext=)ing "$$dir"; \
|
2010-03-22 04:38:10 -04:00
|
|
|
(cd "ext/$$dir" && exec $(MAKE) $(MFLAGS) $(@:-ext=)) && \
|
2008-12-31 17:16:51 -05:00
|
|
|
case "$@" in \
|
|
|
|
*distclean-ext*|*realclean-ext*) \
|
2010-08-06 05:56:22 -04:00
|
|
|
$(RMDIRS) "ext/$$dir" 2> /dev/null || true;; \
|
2008-12-31 17:16:51 -05:00
|
|
|
esac; \
|
2008-08-07 03:28:56 -04:00
|
|
|
done
|
2012-05-16 01:39:06 -04:00
|
|
|
-$(Q)$(RM) ext/extinit.$(OBJEXT)
|
2004-04-06 21:43:27 -04:00
|
|
|
|
2008-12-31 17:16:51 -05:00
|
|
|
distclean-ext realclean-ext::
|
2012-05-16 01:39:06 -04:00
|
|
|
-$(Q)$(RM) ext/extinit.c
|
2010-12-30 06:18:12 -05:00
|
|
|
-$(Q)$(RMDIR) ext 2> /dev/null || true
|
2008-12-31 17:16:51 -05:00
|
|
|
|
2010-06-14 13:32:03 -04:00
|
|
|
clean-extout:
|
2010-12-30 06:18:12 -05:00
|
|
|
-$(Q)$(RMDIRS) $(EXTOUT) 2> /dev/null || true
|
2010-06-14 13:32:03 -04:00
|
|
|
|
|
|
|
clean-enc distclean-enc realclean-enc:
|
|
|
|
@test -f "$(ENC_MK)" || exit 0; \
|
|
|
|
echo $(@:-enc=ing) encodings; \
|
2010-06-14 20:09:26 -04:00
|
|
|
exec $(MAKE) -f $(ENC_MK) $(MFLAGS) $(@:-enc=)
|
2010-06-14 13:32:03 -04:00
|
|
|
|
2010-09-19 09:10:25 -04:00
|
|
|
clean-rdoc distclean-rdoc realclean-rdoc:
|
2010-12-30 13:03:13 -05:00
|
|
|
@echo $(@:-rdoc=ing) rdoc
|
2010-12-30 06:18:12 -05:00
|
|
|
$(Q)$(RMALL) $(RDOCOUT)
|
2010-09-19 09:10:25 -04:00
|
|
|
clean-capi distclean-capi realclean-capi:
|
2010-12-30 13:03:13 -05:00
|
|
|
@echo $(@:-capi=ing) capi
|
2010-12-30 06:18:12 -05:00
|
|
|
$(Q)$(RMALL) $(CAPIOUT)
|
2010-09-19 09:10:25 -04:00
|
|
|
|
2012-02-28 10:51:25 -05:00
|
|
|
clean-platform:
|
2012-02-28 23:07:03 -05:00
|
|
|
@$(RM) $(PLATFORM_D)
|
2012-02-28 10:51:25 -05:00
|
|
|
-$(Q) $(RMDIR) $(PLATFORM_DIR) 2> /dev/null || true
|
2010-09-19 09:10:25 -04:00
|
|
|
|
2004-04-06 21:43:27 -04:00
|
|
|
ext/extinit.$(OBJEXT): ext/extinit.c $(SETUP)
|
2010-11-11 08:03:42 -05:00
|
|
|
$(ECHO) compiling $@
|
2010-11-12 06:51:42 -05:00
|
|
|
$(Q) $(CC) $(CFLAGS) $(XCFLAGS) $(CPPFLAGS) $(COUTFLAG)$@ -c ext/extinit.c
|
2008-08-01 10:27:21 -04:00
|
|
|
|
2012-05-16 01:39:06 -04:00
|
|
|
enc/encinit.$(OBJEXT): enc/encinit.c $(SETUP)
|
|
|
|
|
2009-01-16 03:33:02 -05:00
|
|
|
up::
|
2009-03-06 04:37:31 -05:00
|
|
|
@$(CHDIR) "$(srcdir)" && LC_TIME=C exec $(VCSUP)
|
2009-01-16 03:33:02 -05:00
|
|
|
|
2013-06-14 01:10:15 -04:00
|
|
|
up::
|
|
|
|
-$(Q)$(MAKE) $(MFLAGS) after-update
|
|
|
|
|
|
|
|
after-update:: update-config_files
|
|
|
|
|
2009-03-06 04:46:52 -05:00
|
|
|
update-mspec:
|
|
|
|
@$(CHDIR) $(srcdir); \
|
|
|
|
if [ -d spec/mspec ]; then \
|
|
|
|
cd spec/mspec; \
|
2008-12-31 05:38:39 -05:00
|
|
|
echo updating mspec ...; \
|
2009-03-06 04:46:52 -05:00
|
|
|
exec git pull; \
|
2008-08-04 07:44:41 -04:00
|
|
|
else \
|
2008-12-31 05:38:39 -05:00
|
|
|
echo retrieving mspec ...; \
|
2009-03-06 04:46:52 -05:00
|
|
|
exec git clone $(MSPEC_GIT_URL) spec/mspec; \
|
2008-08-04 07:44:41 -04:00
|
|
|
fi
|
2009-03-06 04:46:52 -05:00
|
|
|
|
|
|
|
update-rubyspec: update-mspec
|
|
|
|
@$(CHDIR) $(srcdir); \
|
|
|
|
if [ -d spec/rubyspec ]; then \
|
|
|
|
cd spec/rubyspec; \
|
2008-12-31 05:38:39 -05:00
|
|
|
echo updating rubyspec ...; \
|
2009-03-06 04:46:52 -05:00
|
|
|
exec git pull; \
|
2008-08-01 10:27:21 -04:00
|
|
|
else \
|
2008-12-31 05:38:39 -05:00
|
|
|
echo retrieving rubyspec ...; \
|
2009-03-06 04:46:52 -05:00
|
|
|
exec git clone $(RUBYSPEC_GIT_URL) spec/rubyspec; \
|
2008-08-01 10:27:21 -04:00
|
|
|
fi
|
|
|
|
|
2010-08-15 23:29:08 -04:00
|
|
|
test-rubyspec-precheck:
|
2008-08-04 07:44:41 -04:00
|
|
|
@if [ ! -d $(srcdir)/spec/rubyspec ]; then echo No rubyspec here. make update-rubyspec first.; exit 1; fi
|
2009-03-04 21:52:21 -05:00
|
|
|
|
2009-03-06 00:28:42 -05:00
|
|
|
INSNS = opt_sc.inc optinsn.inc optunifs.inc insns.inc insns_info.inc \
|
|
|
|
vmtc.inc vm.inc
|
|
|
|
|
2009-09-21 15:43:43 -04:00
|
|
|
$(INSNS): $(srcdir)/insns.def vm_opts.h \
|
|
|
|
$(srcdir)/defs/opt_operand.def $(srcdir)/defs/opt_insn_unif.def \
|
|
|
|
$(srcdir)/tool/instruction.rb $(srcdir)/tool/insns2vm.rb
|
2011-07-31 10:17:37 -04:00
|
|
|
$(ECHO) generating $@
|
2011-09-05 06:36:24 -04:00
|
|
|
$(Q) $(BASERUBY) -Ku $(srcdir)/tool/insns2vm.rb $(INSNS2VMOPT) $@
|
2013-05-16 03:54:04 -04:00
|
|
|
|
|
|
|
loadpath: verconf.h
|
|
|
|
@$(CPP) $(XCFLAGS) $(CPPFLAGS) $(srcdir)/loadpath.c | \
|
|
|
|
sed -e '1,/^const char ruby_initial_load_paths/d;/;/,$$d' \
|
|
|
|
-e '/^ /!d;s/ *"\\0"$$//;s/" *"//g'
|