2002-06-14 16:21:50 +04:00
|
|
|
@echo off
|
|
|
|
::: Don't set environment variable in batch file other than autoexec.bat
|
|
|
|
::: to avoid "Out of environment space" problem on Windows 95/98.
|
|
|
|
::: set TMPMAKE=~tmp~.mak
|
|
|
|
|
|
|
|
echo> ~tmp~.mak ####
|
|
|
|
echo>> ~tmp~.mak conf = %0
|
|
|
|
echo>> ~tmp~.mak $(conf:\=/): nul
|
2007-07-21 12:32:34 +04:00
|
|
|
echo>> ~tmp~.mak @del ~setup~.mak
|
* 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@2974 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2002-10-21 18:03:46 +04:00
|
|
|
echo>> ~tmp~.mak @-$(MAKE) -l$(MAKEFLAGS) -f $(@D)setup.mak \
|
2007-07-21 12:32:34 +04:00
|
|
|
if exist pathlist.tmp del pathlist.tmp
|
|
|
|
if exist confargs.mk del confargs.mk
|
* 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@2974 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2002-10-21 18:03:46 +04:00
|
|
|
:loop
|
|
|
|
if "%1" == "" goto :end
|
2004-02-29 11:22:48 +03:00
|
|
|
if "%1" == "--prefix" goto :prefix
|
2007-07-21 12:32:34 +04:00
|
|
|
if "%1" == "prefix" goto :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@2974 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2002-10-21 18:03:46 +04:00
|
|
|
if "%1" == "--srcdir" goto :srcdir
|
|
|
|
if "%1" == "srcdir" goto :srcdir
|
|
|
|
if "%1" == "--target" goto :target
|
|
|
|
if "%1" == "target" goto :target
|
2004-02-29 11:22:48 +03:00
|
|
|
if "%1" == "--with-static-linked-ext" goto :extstatic
|
2004-02-09 11:48:55 +03:00
|
|
|
if "%1" == "--program-suffix" goto :suffix
|
2007-07-21 12:32:34 +04:00
|
|
|
if "%1" == "RUBY_SUFFIX" goto :suffix
|
|
|
|
if "%1" == "--program-name" goto :installname
|
|
|
|
if "%1" == "--install-name" goto :installname
|
|
|
|
if "%1" == "RUBY_INSTALL_NAME" goto :installname
|
|
|
|
if "%1" == "--so-name" goto :soname
|
|
|
|
if "%1" == "RUBY_SO_NAME" goto :soname
|
2004-02-09 11:48:55 +03:00
|
|
|
if "%1" == "--enable-install-doc" goto :enable-rdoc
|
|
|
|
if "%1" == "--disable-install-doc" goto :disable-rdoc
|
2005-04-20 02:28:28 +04:00
|
|
|
if "%1" == "--extout" goto :extout
|
2007-07-21 12:32:34 +04:00
|
|
|
if "%1" == "EXTOUT" goto :extout
|
2007-01-23 09:41:22 +03:00
|
|
|
if "%1" == "--with-baseruby" goto :baseruby
|
2007-07-21 12:32:34 +04:00
|
|
|
if "%1" == "BASERUBY" goto :baseruby
|
|
|
|
if "%1" == "--path" goto :path
|
2004-02-09 11:48:55 +03:00
|
|
|
if "%1" == "-h" goto :help
|
|
|
|
if "%1" == "--help" goto :help
|
2007-07-21 12:32:34 +04:00
|
|
|
echo>>confargs.tmp %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@2974 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2002-10-21 18:03:46 +04:00
|
|
|
shift
|
|
|
|
goto :loop
|
|
|
|
:srcdir
|
2007-07-21 12:32:34 +04:00
|
|
|
echo>> ~tmp~.mak -Dsrcdir=%2 \
|
|
|
|
echo>>confargs.tmp --srcdir=%2 \
|
2004-02-09 11:48:55 +03:00
|
|
|
shift
|
|
|
|
shift
|
|
|
|
goto :loop
|
2004-02-29 11:22:48 +03:00
|
|
|
:prefix
|
2007-07-21 12:32:34 +04:00
|
|
|
echo>> ~tmp~.mak -Dprefix=%2 \
|
|
|
|
echo>>confargs.tmp %1=%2 \
|
2004-02-29 11:22:48 +03:00
|
|
|
shift
|
|
|
|
shift
|
|
|
|
goto :loop
|
2004-02-09 11:48:55 +03:00
|
|
|
:suffix
|
2007-07-21 12:32:34 +04:00
|
|
|
echo>>confargs.mk !ifndef RUBY_SUFFIX
|
|
|
|
echo>>confargs.mk RUBY_SUFFIX = %2
|
|
|
|
echo>>confargs.mk !endif
|
|
|
|
echo>>confargs.tmp %1=%2 \
|
2004-02-09 11:48:55 +03:00
|
|
|
shift
|
|
|
|
shift
|
|
|
|
goto :loop
|
|
|
|
:installname
|
2007-07-21 12:32:34 +04:00
|
|
|
echo>>confargs.mk !ifndef RUBY_INSTALL_NAME
|
|
|
|
echo>>confargs.mk RUBY_INSTALL_NAME = %2
|
|
|
|
echo>>confargs.mk !endif
|
|
|
|
echo>>confargs.tmp %1=%2 \
|
2004-02-09 11:48:55 +03:00
|
|
|
shift
|
|
|
|
shift
|
|
|
|
goto :loop
|
|
|
|
:soname
|
2007-07-21 12:32:34 +04:00
|
|
|
echo>>confargs.mk !ifndef RUBY_SO_NAME
|
|
|
|
echo>>confargs.mk RUBY_SO_NAME = %2
|
|
|
|
echo>>confargs.mk !endif
|
|
|
|
echo>>confargs.tmp %1=%2 \
|
* 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@2974 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2002-10-21 18:03:46 +04:00
|
|
|
shift
|
|
|
|
shift
|
|
|
|
goto :loop
|
|
|
|
:target
|
2007-07-21 12:32:34 +04:00
|
|
|
echo>> ~tmp~.mak %2 \
|
|
|
|
echo>>confargs.tmp --target=%2 \
|
2004-02-09 11:48:55 +03:00
|
|
|
shift
|
* 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@2974 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2002-10-21 18:03:46 +04:00
|
|
|
shift
|
2004-02-09 11:48:55 +03:00
|
|
|
goto :loop
|
2004-02-29 11:22:48 +03:00
|
|
|
:extstatic
|
2007-07-21 12:32:34 +04:00
|
|
|
echo>>confargs.mk !ifndef EXTSTATIC
|
|
|
|
echo>>confargs.mk EXTSTATIC = static
|
|
|
|
echo>>confargs.mk !endif
|
|
|
|
echo>>confargs.tmp %1 \
|
2004-02-29 11:22:48 +03:00
|
|
|
shift
|
|
|
|
goto :loop
|
2004-02-09 11:48:55 +03:00
|
|
|
:enable-rdoc
|
2007-07-21 12:32:34 +04:00
|
|
|
echo>>confargs.mk !ifndef RDOCTARGET
|
|
|
|
echo>>confargs.mk RDOCTARGET = install-doc
|
|
|
|
echo>>confargs.mk !endif
|
|
|
|
echo>>confargs.tmp %1 \
|
2004-02-09 11:48:55 +03:00
|
|
|
shift
|
|
|
|
goto :loop
|
|
|
|
:disable-rdoc
|
2007-07-21 12:32:34 +04:00
|
|
|
echo>>confargs.mk !ifndef RDOCTARGET
|
|
|
|
echo>>confargs.mk RDOCTARGET = install-nodoc
|
|
|
|
echo>>confargs.mk !endif
|
|
|
|
echo>>confargs.tmp %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@2974 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2002-10-21 18:03:46 +04:00
|
|
|
shift
|
|
|
|
goto :loop
|
2005-04-20 02:28:28 +04:00
|
|
|
:extout
|
2007-07-21 12:32:34 +04:00
|
|
|
echo>>confargs.mk !ifndef EXTOUT
|
|
|
|
echo>>confargs.mk EXTOUT = %2
|
|
|
|
echo>>confargs.mk !endif
|
|
|
|
echo>>confargs.tmp %1=%2 \
|
2005-04-20 02:28:28 +04:00
|
|
|
shift
|
|
|
|
shift
|
|
|
|
goto :loop
|
2007-01-23 09:41:22 +03:00
|
|
|
:baseruby
|
2007-07-21 12:32:34 +04:00
|
|
|
echo>>confargs.mk !ifndef BASERUBY
|
|
|
|
echo>>confargs.mk BASERUBY = %2
|
|
|
|
echo>>confargs.mk !endif
|
|
|
|
echo>>confargs.tmp %1=%2 \
|
|
|
|
shift
|
|
|
|
shift
|
|
|
|
goto :loop
|
|
|
|
:path
|
|
|
|
echo>>pathlist.tmp %2;\
|
|
|
|
echo>>confargs.tmp %1=%2 \
|
2007-01-23 09:41:22 +03:00
|
|
|
shift
|
|
|
|
shift
|
|
|
|
goto :loop
|
2004-02-09 11:48:55 +03:00
|
|
|
:help
|
|
|
|
echo Configuration:
|
|
|
|
echo --help display this help
|
|
|
|
echo --srcdir=DIR find the sources in DIR [configure dir or `..']
|
|
|
|
echo Installation directories:
|
2007-07-21 12:32:34 +04:00
|
|
|
echo --prefix=PREFIX install files in PREFIX (ignored currently)
|
2004-02-09 11:48:55 +03:00
|
|
|
echo System types:
|
2004-02-28 09:21:20 +03:00
|
|
|
echo --target=TARGET configure for TARGET [i386-bccwin32]
|
2004-02-09 11:48:55 +03:00
|
|
|
echo Optional Package:
|
2007-01-23 09:41:22 +03:00
|
|
|
echo --with-baseruby=RUBY use RUBY as baseruby [ruby]
|
2004-02-09 11:48:55 +03:00
|
|
|
echo --with-static-linked-ext link external modules statically
|
2007-07-21 12:32:34 +04:00
|
|
|
echo --enable-install-doc install rdoc indexes during install
|
|
|
|
del *.tmp
|
2004-02-09 11:48:55 +03:00
|
|
|
del ~tmp~.mak
|
|
|
|
goto :exit
|
* 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@2974 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2002-10-21 18:03:46 +04:00
|
|
|
:end
|
2007-07-21 12:32:34 +04:00
|
|
|
echo>> ~tmp~.mak -Dbcc32dir=$(@D)
|
|
|
|
if not exist confargs.tmp goto :noconfargs
|
|
|
|
echo>>confargs.mk configure_args = \
|
|
|
|
type>>confargs.mk confargs.tmp
|
|
|
|
echo.>>confargs.mk
|
|
|
|
echo>>confargs.mk ####
|
|
|
|
:noconfargs
|
|
|
|
if not exist pathlist.tmp goto :nopathlist
|
|
|
|
echo>>confargs.mk pathlist = \
|
|
|
|
type>>confargs.mk pathlist.tmp
|
|
|
|
echo.>>confargs.mk
|
|
|
|
echo>>confargs.mk ####
|
|
|
|
echo>>confargs.mk PATH = $(pathlist:;=/bin;)$(PATH)
|
|
|
|
echo>>confargs.mk INCLUDE = $(pathlist:;=/include;)
|
|
|
|
echo>>confargs.mk LIB = $(pathlist:;=/lib;)
|
|
|
|
:nopathlist
|
|
|
|
if exist confargs.mk copy confargs.mk ~setup~.mak > nul
|
|
|
|
type>>~setup~.mak ~tmp~.mak
|
|
|
|
del *.tmp > nul
|
|
|
|
del ~tmp~.mak > nul
|
|
|
|
make -s -f ~setup~.mak
|
2004-02-28 09:11:44 +03:00
|
|
|
:exit
|