2003-08-16 18:58:34 +04:00
|
|
|
# -*- makefile -*-
|
|
|
|
|
2002-06-11 05:27:48 +04:00
|
|
|
SHELL = $(COMSPEC)
|
2004-03-23 08:32:01 +03:00
|
|
|
MKFILES = Makefile
|
2002-06-11 05:27:48 +04:00
|
|
|
|
2007-12-22 09:30:40 +03:00
|
|
|
!ifndef MFLAGS
|
|
|
|
MFLAGS=-
|
|
|
|
!endif
|
|
|
|
|
2002-06-11 05:27:48 +04:00
|
|
|
#### Start of system configuration section. ####
|
2007-07-21 12:32:34 +04:00
|
|
|
!ifndef OS
|
* 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
|
|
|
OS = bccwin32
|
2007-07-21 12:32:34 +04:00
|
|
|
!endif
|
|
|
|
!if !defined(RT)
|
|
|
|
!error RT not defined. Retry from configure pass.
|
|
|
|
!endif
|
2002-06-11 05:27:48 +04:00
|
|
|
|
2007-07-21 12:48:29 +04:00
|
|
|
arch = $(ARCH)-$(OS)
|
|
|
|
|
2002-06-11 05:27:48 +04:00
|
|
|
## variables may be overridden by $(compile_dir)/Makefile
|
|
|
|
!ifndef srcdir
|
|
|
|
srcdir = ..
|
|
|
|
!endif
|
|
|
|
!ifndef RUBY_INSTALL_NAME
|
|
|
|
RUBY_INSTALL_NAME = ruby
|
|
|
|
!endif
|
|
|
|
!ifndef RUBYW_INSTALL_NAME
|
|
|
|
RUBYW_INSTALL_NAME = $(RUBY_INSTALL_NAME:ruby=rubyw)
|
|
|
|
!elif "$(RUBYW_INSTALL_NAME)" == "$(RUBY_INSTALL_NAME)"
|
|
|
|
RUBYW_INSTALL_NAME = $(RUBY_INSTALL_NAME:ruby=rubyw)
|
|
|
|
!endif
|
|
|
|
!if "$(RUBYW_INSTALL_NAME)" == "$(RUBY_INSTALL_NAME)"
|
|
|
|
RUBYW_INSTALL_NAME = $(RUBY_INSTALL_NAME)w
|
|
|
|
!endif
|
|
|
|
!ifndef RUBY_SO_NAME
|
2007-12-24 09:42:06 +03:00
|
|
|
RUBY_SO_NAME = $(RT)-$(RUBY_INSTALL_NAME)$(MAJOR)$(MINOR)$(TEENY)
|
2002-06-11 05:27:48 +04:00
|
|
|
!endif
|
|
|
|
!ifndef icondirs
|
|
|
|
!ifdef ICONDIRS
|
|
|
|
icondirs=$(ICONDIRS)
|
|
|
|
!endif
|
|
|
|
!endif
|
|
|
|
!ifdef icondirs
|
|
|
|
icondirs=$(icondirs:\=/)
|
|
|
|
iconinc=-I$(icondirs: = -I)
|
|
|
|
!endif
|
|
|
|
###############
|
|
|
|
|
|
|
|
.SUFFIXES: .y
|
|
|
|
|
|
|
|
!ifndef CC
|
|
|
|
CC = bcc32
|
|
|
|
!endif
|
* 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
|
|
|
!ifndef CPP
|
|
|
|
CPP = cpp32
|
|
|
|
!endif
|
2002-06-11 05:27:48 +04:00
|
|
|
!ifndef RC
|
2002-09-12 18:27:02 +04:00
|
|
|
RC = brcc32
|
2002-06-11 05:27:48 +04:00
|
|
|
!endif
|
|
|
|
!ifndef YACC
|
2004-09-17 15:38:49 +04:00
|
|
|
YACC = bison
|
2002-06-11 05:27:48 +04:00
|
|
|
!endif
|
* 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
|
|
|
!ifndef AR
|
|
|
|
AR = tlib
|
|
|
|
!endif
|
2007-01-23 09:41:22 +03:00
|
|
|
!ifndef BASERUBY
|
|
|
|
BASERUBY = ruby
|
|
|
|
!endif
|
* 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
|
|
|
|
2002-06-11 05:27:48 +04:00
|
|
|
PURIFY =
|
|
|
|
AUTOCONF = autoconf
|
2008-01-25 12:27:30 +03:00
|
|
|
IFCHANGE = $(srcdir:/=\)\win32\ifchange.bat
|
2004-03-22 02:21:31 +03:00
|
|
|
RM = $(srcdir:/=\)\win32\rm.bat
|
2007-12-11 10:19:28 +03:00
|
|
|
CP = copy > nul
|
2008-01-13 03:17:31 +03:00
|
|
|
MV = move > nul
|
2002-06-11 05:27:48 +04: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@2974 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2002-10-21 18:03:46 +04:00
|
|
|
!if !defined(PROCESSOR_ARCHITECTURE)
|
|
|
|
PROCESSOR_ARCHITECTURE = x86
|
|
|
|
!endif
|
|
|
|
MACHINE = $(PROCESSOR_ARCHITECTURE)
|
|
|
|
!if "$(PROCESSOR_ARCHITECTURE)" == "x86"
|
2002-06-11 05:27:48 +04:00
|
|
|
!ifndef PROCESSOR_LEVEL
|
|
|
|
PROCESSOR_LEVEL = 5
|
|
|
|
!endif
|
2002-06-11 08:16:58 +04:00
|
|
|
!if 6 < $(PROCESSOR_LEVEL)
|
|
|
|
PROCESSOR_LEVEL = 6
|
|
|
|
!endif
|
2002-06-11 05:27:48 +04:00
|
|
|
PROCESSOR_FLAG = -$(PROCESSOR_LEVEL)
|
|
|
|
CPU = i$(PROCESSOR_LEVEL)86
|
* 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
|
|
|
ARCH = i386
|
2002-06-11 05:27:48 +04:00
|
|
|
!else
|
|
|
|
CPU = $(PROCESSOR_ARCHITECTURE)
|
|
|
|
ARCH = $(PROCESSOR_ARCHITECTURE)
|
|
|
|
!endif
|
|
|
|
!ifndef DEBUGFLAGS
|
|
|
|
DEBUGFLAGS =
|
|
|
|
!endif
|
|
|
|
!ifndef OPTFLAGS
|
|
|
|
OPTFLAGS = -O
|
|
|
|
!endif
|
|
|
|
|
|
|
|
!ifndef prefix
|
|
|
|
prefix = /usr
|
|
|
|
!endif
|
2003-08-16 18:58:34 +04:00
|
|
|
!ifndef exec_prefix
|
|
|
|
exec_prefix = $(prefix)
|
|
|
|
!endif
|
|
|
|
!ifndef libdir
|
|
|
|
libdir = $(exec_prefix)/lib
|
|
|
|
!endif
|
2004-02-09 11:48:55 +03:00
|
|
|
!if !defined(datadir)
|
|
|
|
datadir = $(prefix)/share
|
|
|
|
!endif
|
|
|
|
!ifndef EXTOUT
|
|
|
|
EXTOUT = .ext
|
|
|
|
!endif
|
|
|
|
!ifndef TESTUI
|
|
|
|
TESTUI = console
|
|
|
|
!endif
|
|
|
|
!ifndef TESTS
|
|
|
|
TESTS =
|
|
|
|
!endif
|
|
|
|
!ifndef RDOCTARGET
|
|
|
|
RDOCTARGET = install-doc
|
|
|
|
!endif
|
2004-04-02 14:28:53 +04:00
|
|
|
|
|
|
|
OUTFLAG = -o
|
2007-12-24 06:49:56 +03:00
|
|
|
COUTFLAG = -o
|
2002-06-11 05:27:48 +04:00
|
|
|
!ifndef CFLAGS
|
2004-09-10 14:24:08 +04:00
|
|
|
CFLAGS = -q -tWR -tWC $(DEBUGFLAGS) $(OPTFLAGS) $(PROCESSOR_FLAG) -w- -wsus -wcpt -wdup -wext -wrng -wrpt -wzdi
|
2002-06-11 05:27:48 +04:00
|
|
|
!endif
|
2007-12-19 22:16:32 +03:00
|
|
|
!ifndef DEFS
|
|
|
|
DEFS =
|
|
|
|
!endif
|
|
|
|
!ifndef CPPFLAGS
|
|
|
|
CPPFLAGS =
|
|
|
|
!endif
|
|
|
|
CPPFLAGS = $(DEFS) $(CPPFLAGS)
|
2005-04-21 01:45:43 +04:00
|
|
|
!ifndef CXXFLAGS
|
|
|
|
CXXFLAGS = $(CFLAGS)
|
|
|
|
!endif
|
2002-06-11 05:27:48 +04:00
|
|
|
!ifndef LDFLAGS
|
* 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
|
|
|
LDFLAGS = -S:$(STACK)
|
2002-06-11 05:27:48 +04:00
|
|
|
!endif
|
|
|
|
!ifndef RFLAGS
|
* 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
|
|
|
RFLAGS = $(iconinc)
|
2002-06-11 05:27:48 +04:00
|
|
|
!endif
|
|
|
|
!ifndef EXTLIBS
|
* 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
|
|
|
EXTLIBS =
|
2002-06-11 05:27:48 +04:00
|
|
|
!endif
|
2006-02-23 16:46:03 +03:00
|
|
|
!ifndef MEMLIB
|
|
|
|
MEMLIB =
|
|
|
|
!endif
|
|
|
|
LIBS = $(MEMLIB) cw32i.lib import32.lib ws2_32.lib $(EXTLIBS)
|
2008-02-10 09:07:31 +03:00
|
|
|
MISSING = acosh.obj cbrt.obj crypt.obj erf.obj lgamma_r.obj strlcat.obj strlcpy.obj tgamma.obj win32.obj
|
2002-06-11 05:27:48 +04:00
|
|
|
|
|
|
|
!ifndef STACK
|
|
|
|
STACK = 0x2000000
|
|
|
|
!endif
|
|
|
|
|
2007-07-21 12:48:29 +04:00
|
|
|
XCFLAGS = -DRUBY_EXPORT -I. -I$(arch_hdrdir) -I$(hdrdir) -I$(srcdir) -I$(srcdir)/missing
|
* 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
|
|
|
|
2007-07-21 12:32:34 +04:00
|
|
|
ARFLAGS = /a /p32
|
* 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
|
|
|
LD = ilink32 -q -Gn
|
|
|
|
LDSHARED = $(LD)
|
|
|
|
XLDFLAGS = -Tpe c0x32.obj
|
2003-08-08 07:35:46 +04:00
|
|
|
WLDFLAGS = -aa -Tpe c0w32.obj
|
* 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
|
|
|
DLDFLAGS = -Tpd c0d32.obj
|
|
|
|
LIBRUBY_LDSHARED = $(LDSHARED)
|
|
|
|
LIBRUBY_DLDFLAGS = -Gi $(DLDFLAGS) $(EXTLDFLAGS)
|
|
|
|
LDOBJECTS = $(MAINOBJ)
|
2002-06-11 05:27:48 +04:00
|
|
|
|
|
|
|
SOLIBS =
|
|
|
|
|
|
|
|
EXEEXT = .exe
|
|
|
|
PROGRAM=$(RUBY_INSTALL_NAME)$(EXEEXT)
|
|
|
|
WPROGRAM=$(RUBYW_INSTALL_NAME)$(EXEEXT)
|
|
|
|
RUBYDEF = $(RUBY_SO_NAME).def
|
2007-12-31 00:50:40 +03:00
|
|
|
MINIRUBY = .\miniruby$(EXEEXT) -I$(srcdir)/lib $(MINIRUBYOPT)
|
2008-03-06 09:08:37 +03:00
|
|
|
RUNRUBY = .\$(PROGRAM) -i"$(EXTOUT)/$(arch)" "$(srcdir)/runruby.rb" --extout="$(EXTOUT)" --
|
2002-06-11 05:27:48 +04:00
|
|
|
|
|
|
|
ORGLIBPATH = $(LIB)
|
|
|
|
|
|
|
|
#### End of system configuration section. ####
|
|
|
|
|
2002-11-14 16:51:19 +03:00
|
|
|
LIBRUBY_A = $(RUBY_SO_NAME)-static.lib
|
2002-06-11 05:27:48 +04:00
|
|
|
LIBRUBY_SO = $(RUBY_SO_NAME).dll
|
|
|
|
LIBRUBY = $(RUBY_SO_NAME).lib
|
|
|
|
LIBRUBYARG = $(LIBRUBY)
|
2007-02-28 04:33:57 +03:00
|
|
|
THREAD_MODEL = win32
|
2002-06-11 05:27:48 +04:00
|
|
|
|
2004-03-04 16:50:48 +03:00
|
|
|
PREP = miniruby$(EXEEXT)
|
|
|
|
|
2004-03-22 02:21:31 +03:00
|
|
|
OBJEXT = obj
|
2007-07-21 11:11:39 +04:00
|
|
|
ASMEXT = asm
|
2004-03-22 02:21:31 +03:00
|
|
|
|
2006-09-20 04:54:45 +04:00
|
|
|
INSTALLED_LIST= .installed.list
|
|
|
|
|
2010-01-25 11:36:14 +03:00
|
|
|
MKMAIN_CMD = mkmain.bat
|
|
|
|
|
|
|
|
SRC_FILE = $(<:\=/)
|
|
|
|
|
2004-03-22 02:21:31 +03:00
|
|
|
WINMAINOBJ = winmain.$(OBJEXT)
|
2008-04-03 07:56:07 +04:00
|
|
|
ARCHMINIOBJS = dmydln.$(OBJEXT)
|
2004-03-22 02:21:31 +03:00
|
|
|
|
2007-07-21 12:48:29 +04:00
|
|
|
arch_hdrdir = $(EXTOUT)/include/$(arch)
|
|
|
|
hdrdir = $(srcdir)/include
|
2007-10-11 01:35:45 +04:00
|
|
|
VPATH = $(arch_hdrdir)/ruby;$(hdrdir)/ruby;$(srcdir);$(srcdir)/enc;$(srcdir)/missing;$(srcdir)/win32
|
2007-07-21 12:48:29 +04:00
|
|
|
|
2007-10-11 01:35:45 +04:00
|
|
|
.path.c = .;$(srcdir);$(srcdir)/enc;$(srcdir)/win32;$(srcdir)/missing
|
2007-07-21 12:48:29 +04:00
|
|
|
.path.ci = $(srcdir)
|
|
|
|
.path.inc = .;$(srcdir)
|
|
|
|
.path.def = .;$(srcdir)
|
|
|
|
.path.h = .;$(arch_hdrdir)/ruby;$(hdrdir)/ruby;$(srcdir);$(srcdir)/win32;$(srcdir)/missing
|
2004-03-22 02:21:31 +03:00
|
|
|
.path.y = $(srcdir)
|
|
|
|
.path. = $(srcdir)
|
|
|
|
|
|
|
|
.c.obj:
|
2007-12-24 06:49:56 +03:00
|
|
|
$(CC) $(CFLAGS) $(XCFLAGS) -I. $(CPPFLAGS) $(COUTFLAG)$@ -c $(<:/=\)
|
2004-03-22 02:21:31 +03:00
|
|
|
|
2007-02-02 21:23:07 +03:00
|
|
|
.c.asm:
|
2007-12-24 06:49:56 +03:00
|
|
|
$(CC) $(CFLAGS) $(XCFLAGS) -I. $(CPPFLAGS) $(COUTFLAG)$@ -S $(<:\=/)
|
2007-02-02 21:23:07 +03:00
|
|
|
|
2004-03-22 02:21:31 +03:00
|
|
|
.rc.res:
|
2007-07-10 09:50:10 +04:00
|
|
|
$(RC) $(RFLAGS) -I. -I$(<D). $(iconinc) -I$(srcdir)/win32 $(RFLAGS) -fo$@ $(<:/=\)
|
2004-03-22 02:21:31 +03:00
|
|
|
|
2007-07-10 09:50:10 +04:00
|
|
|
all: $(srcdir)/bcc32/Makefile.sub $(srcdir)/common.mk
|
2004-03-22 02:21:31 +03:00
|
|
|
|
2002-06-11 05:27:48 +04:00
|
|
|
ruby: $(PROGRAM)
|
|
|
|
rubyw: $(WPROGRAM)
|
2004-03-25 08:01:15 +03:00
|
|
|
|
|
|
|
!include $(srcdir)/common.mk
|
2002-06-11 05:27:48 +04:00
|
|
|
|
2007-07-21 12:32:34 +04:00
|
|
|
$(MKFILES): $(srcdir)/bcc32/Makefile.sub $(srcdir)/bcc32/configure.bat $(srcdir)/bcc32/setup.mak
|
|
|
|
$(COMSPEC) /C $(srcdir:/=\)\bcc32\configure.bat $(configure_args)
|
|
|
|
@echo $(MKFILES) should be updated, re-run $(MAKE).
|
|
|
|
@$(MAKE) > nul -q -f &&|
|
|
|
|
PHONY: nul
|
|
|
|
@exit
|
|
|
|
|
|
2004-04-13 16:51:01 +04:00
|
|
|
|
2008-02-10 09:07:31 +03:00
|
|
|
PHONY: nul
|
|
|
|
|
2007-07-21 12:48:29 +04:00
|
|
|
RUBY_CONFIG_H = $(arch_hdrdir)/ruby/config.h
|
2005-03-03 12:38:40 +03:00
|
|
|
CONFIG_H = ./.config.h.time
|
2002-06-11 05:27:48 +04:00
|
|
|
|
2005-03-03 12:38:40 +03:00
|
|
|
config: config.status
|
|
|
|
|
|
|
|
config.status: $(CONFIG_H)
|
|
|
|
|
2007-07-10 09:50:10 +04:00
|
|
|
$(CONFIG_H): $(MKFILES) $(srcdir)/bcc32/Makefile.sub
|
2007-07-21 12:48:29 +04:00
|
|
|
@if not exist $(arch_hdrdir:/=\) md $(arch_hdrdir:/=\)
|
|
|
|
@if not exist $(arch_hdrdir:/=\)\ruby md $(arch_hdrdir:/=\)\ruby
|
2008-01-25 12:27:30 +03:00
|
|
|
@$(IFCHANGE) $(RUBY_CONFIG_H:/=\) &&|
|
2008-08-08 17:47:48 +04:00
|
|
|
\#define NO_BIG_INLINE 1
|
2004-02-14 17:59:19 +03:00
|
|
|
\#define HAVE_SYS_TYPES_H 1
|
|
|
|
\#define HAVE_SYS_STAT_H 1
|
|
|
|
\#define HAVE_STDLIB_H 1
|
|
|
|
\#define HAVE_STRING_H 1
|
|
|
|
\#define HAVE_MEMORY_H 1
|
2006-08-12 10:56:09 +04:00
|
|
|
\#define HAVE_LONG_LONG 1
|
2004-02-14 17:59:19 +03:00
|
|
|
\#define HAVE_OFF_T 1
|
|
|
|
\#define SIZEOF_INT 4
|
|
|
|
\#define SIZEOF_SHORT 2
|
|
|
|
\#define SIZEOF_LONG 4
|
|
|
|
\#define SIZEOF_LONG_LONG 0
|
|
|
|
\#define SIZEOF___INT64 8
|
2006-08-12 10:56:09 +04:00
|
|
|
\#define SIZEOF_OFF_T 8
|
2004-02-14 17:59:19 +03:00
|
|
|
\#define SIZEOF_VOIDP 4
|
|
|
|
\#define SIZEOF_FLOAT 4
|
|
|
|
\#define SIZEOF_DOUBLE 8
|
2004-04-07 05:43:27 +04:00
|
|
|
\#define SIZEOF_TIME_T 4
|
2008-07-13 00:39:02 +04:00
|
|
|
\#define SIZEOF_RLIM_T 0
|
|
|
|
\#define SIZEOF_SIZE_T 4
|
|
|
|
\#define SIZEOF_PTRDIFF_T 4
|
2002-06-11 05:27:48 +04:00
|
|
|
\#define HAVE_PROTOTYPES 1
|
2004-02-14 17:59:19 +03:00
|
|
|
\#define TOKEN_PASTE(x,y) x\#\#y
|
2002-06-11 05:27:48 +04:00
|
|
|
\#define HAVE_STDARG_PROTOTYPES 1
|
|
|
|
\#define NORETURN(x) x
|
2005-10-25 21:00:03 +04:00
|
|
|
\#define RUBY_EXTERN extern __declspec(dllimport)
|
2004-02-14 17:59:19 +03:00
|
|
|
\#define HAVE_DECL_SYS_NERR 1
|
2002-06-11 05:27:48 +04:00
|
|
|
\#define HAVE_LIMITS_H 1
|
|
|
|
\#define HAVE_FCNTL_H 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
|
|
|
\#define HAVE_UTIME_H 1
|
2004-02-14 17:59:19 +03:00
|
|
|
\#define HAVE_FLOAT_H 1
|
2005-05-16 17:22:09 +04:00
|
|
|
\#define rb_uid_t uid_t
|
|
|
|
\#define rb_gid_t gid_t
|
|
|
|
\#define rb_pid_t int
|
2004-02-14 17:59:19 +03:00
|
|
|
\#define HAVE_STRUCT_STAT_ST_RDEV 1
|
2002-06-11 05:27:48 +04:00
|
|
|
\#define HAVE_ST_RDEV 1
|
2008-08-05 11:39:21 +04:00
|
|
|
!if $(BORLANDC) < 0x0580
|
2008-03-14 05:35:24 +03:00
|
|
|
\#define int8_t signed char
|
|
|
|
\#define uint8_t unsigned char
|
|
|
|
\#define int16_t short
|
|
|
|
\#define uint16_t unsigned short
|
|
|
|
\#define int32_t int
|
|
|
|
\#define uint32_t unsigned int
|
|
|
|
\#define int64_t __int64
|
|
|
|
\#define uint64_t unsigned __int64
|
2008-08-05 11:39:21 +04:00
|
|
|
\#define ssize_t int
|
|
|
|
!endif
|
2010-03-02 23:49:02 +03:00
|
|
|
\#define HAVE_INT8_T 1
|
2008-08-05 11:39:21 +04:00
|
|
|
\#define HAVE_UINT8_T 1
|
2010-03-02 23:49:02 +03:00
|
|
|
\#define SIZEOF_INT8_T 1
|
2008-08-05 11:39:21 +04:00
|
|
|
\#define HAVE_INT16_T 1
|
|
|
|
\#define HAVE_UINT16_T 1
|
2010-03-02 23:49:02 +03:00
|
|
|
\#define SIZEOF_INT32_T 2
|
2008-08-05 11:39:21 +04:00
|
|
|
\#define HAVE_INT32_T 1
|
|
|
|
\#define HAVE_UINT32_T 1
|
2010-03-02 23:49:02 +03:00
|
|
|
\#define SIZEOF_INT32_T 4
|
|
|
|
\#define HAVE_INT64_T 1
|
|
|
|
\#define HAVE_UINT64_T 1
|
|
|
|
\#define SIZEOF_INT64_T 8
|
2008-03-14 05:35:24 +03:00
|
|
|
\#define HAVE_INTPTR_T 1
|
|
|
|
\#define HAVE_UINTPTR_T 1
|
2008-03-31 13:58:41 +04:00
|
|
|
\#define HAVE_SSIZE_T 1
|
2002-06-11 05:27:48 +04:00
|
|
|
\#define GETGROUPS_T int
|
|
|
|
\#define RETSIGTYPE void
|
|
|
|
\#define HAVE_ALLOCA 1
|
2004-02-14 17:59:19 +03:00
|
|
|
\#define HAVE_DUP2 1
|
|
|
|
\#define HAVE_MEMMOVE 1
|
|
|
|
\#define HAVE_MKDIR 1
|
|
|
|
\#define HAVE_STRCASECMP 1
|
|
|
|
\#define HAVE_STRNCASECMP 1
|
|
|
|
\#define HAVE_STRERROR 1
|
|
|
|
\#define HAVE_STRFTIME 1
|
|
|
|
\#define HAVE_STRCHR 1
|
|
|
|
\#define HAVE_STRSTR 1
|
|
|
|
\#define HAVE_STRTOD 1
|
|
|
|
\#define HAVE_STRTOL 1
|
|
|
|
\#define HAVE_STRTOUL 1
|
2005-08-03 05:21:20 +04:00
|
|
|
\#define HAVE_SNPRINTF 1
|
|
|
|
\#define HAVE_VSNPRINTF 1
|
2004-02-14 17:59:19 +03:00
|
|
|
\#define HAVE_ISNAN 1
|
|
|
|
\#define HAVE_FINITE 1
|
2005-10-21 10:46:41 +04:00
|
|
|
\#define HAVE_HYPOT 1
|
2002-06-11 05:27:48 +04:00
|
|
|
\#define HAVE_FMOD 1
|
|
|
|
\#define HAVE_WAITPID 1
|
2003-05-13 12:59:36 +04:00
|
|
|
\#define HAVE_FSYNC 1
|
2004-02-14 17:59:19 +03:00
|
|
|
\#define HAVE_GETCWD 1
|
2006-08-12 10:56:09 +04:00
|
|
|
\#define HAVE_TRUNCATE 1
|
2008-02-15 04:27:48 +03:00
|
|
|
\#define HAVE_FTRUNCATE 1
|
2006-08-12 10:56:09 +04:00
|
|
|
\#define HAVE_FSEEKO 1
|
|
|
|
\#define HAVE_FTELLO 1
|
2002-06-11 05:27:48 +04:00
|
|
|
\#define HAVE_TIMES 1
|
2004-09-07 07:52:15 +04:00
|
|
|
\#define HAVE_FCNTL 1
|
2004-01-21 19:09:40 +03:00
|
|
|
\#define HAVE_LINK 1
|
2002-06-11 05:27:48 +04:00
|
|
|
\#define HAVE_TELLDIR 1
|
|
|
|
\#define HAVE_SEEKDIR 1
|
|
|
|
\#define HAVE_COSH 1
|
|
|
|
\#define HAVE_SINH 1
|
|
|
|
\#define HAVE_TANH 1
|
2004-02-14 17:59:19 +03:00
|
|
|
\#define RSHIFT(x,y) ((x)>>(int)y)
|
2002-06-11 05:27:48 +04:00
|
|
|
\#define FILE_COUNT level
|
|
|
|
\#define FILE_READPTR curp
|
2008-08-05 11:39:21 +04:00
|
|
|
\#define RUBY_SETJMP(env) setjmp(env)
|
2008-04-01 04:42:06 +04:00
|
|
|
\#define RUBY_LONGJMP(env,val) longjmp(env,val)
|
|
|
|
\#define RUBY_JMP_BUF jmp_buf
|
2004-02-14 17:59:19 +03:00
|
|
|
\#define inline __inline
|
|
|
|
\#define NEED_IO_SEEK_BETWEEN_RW 1
|
|
|
|
\#define STACK_GROW_DIRECTION -1
|
2002-06-11 05:27:48 +04:00
|
|
|
\#define DEFAULT_KCODE KCODE_NONE
|
2009-02-19 08:48:14 +03:00
|
|
|
\#define LOAD_RELATIVE 1
|
2002-06-11 05:27:48 +04:00
|
|
|
\#define DLEXT ".so"
|
2010-01-25 11:36:14 +03:00
|
|
|
\#define RUBY_LIB_PREFIX "/lib/ruby"
|
2002-06-11 05:27:48 +04:00
|
|
|
\#define RUBY_PLATFORM "$(ARCH)-$(OS)"
|
|
|
|
|
|
2007-07-21 12:48:29 +04:00
|
|
|
@exit > $(@:/=\)
|
2002-06-11 05:27:48 +04:00
|
|
|
|
2007-07-10 09:50:10 +04:00
|
|
|
config.status: $(MKFILES) $(srcdir)/bcc32/Makefile.sub $(srcdir)/common.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
|
|
|
@echo Creating $@
|
|
|
|
@type > $@ &&|
|
2002-06-11 05:27:48 +04:00
|
|
|
# Generated automatically by Makefile.sub.
|
|
|
|
s,@SHELL@,$$(COMSPEC),;t t
|
2005-04-20 19:08:36 +04:00
|
|
|
s,@BUILD_FILE_SEPARATOR@,\,;t t
|
2004-03-23 08:32:01 +03:00
|
|
|
s,@PATH_SEPARATOR@,;,;t t
|
2002-06-11 05:27:48 +04:00
|
|
|
s,@CFLAGS@,$(CFLAGS),;t t
|
2007-12-19 22:16:32 +03:00
|
|
|
s,@DEFS@,$(DEFS),;t t
|
2002-06-11 05:27:48 +04:00
|
|
|
s,@CPPFLAGS@,$(CPPFLAGS),;t t
|
|
|
|
s,@CXXFLAGS@,$(CXXFLAGS),;t t
|
|
|
|
s,@FFLAGS@,$(FFLAGS),;t t
|
2002-10-22 08:19:26 +04:00
|
|
|
s,@LDFLAGS@,,;t t
|
* 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
|
|
|
s,@LIBS@,$(LIBS),;t t
|
2002-06-11 05:27:48 +04:00
|
|
|
s,@exec_prefix@,$${prefix},;t t
|
2004-02-29 11:22:48 +03:00
|
|
|
s,@prefix@,$(prefix),;t t
|
2002-06-11 05:27:48 +04:00
|
|
|
s,@program_transform_name@,s,,,,;t t
|
|
|
|
s,@bindir@,$${exec_prefix}/bin,;t t
|
|
|
|
s,@sbindir@,$${exec_prefix}/sbin,;t t
|
|
|
|
s,@libexecdir@,$${exec_prefix}/libexec,;t t
|
|
|
|
s,@datadir@,$${prefix}/share,;t t
|
|
|
|
s,@sysconfdir@,$${prefix}/etc,;t t
|
|
|
|
s,@sharedstatedir@,/etc,;t t
|
|
|
|
s,@localstatedir@,/var,;t t
|
|
|
|
s,@libdir@,$${exec_prefix}/lib,;t t
|
|
|
|
s,@includedir@,$${prefix}/include,;t t
|
|
|
|
s,@oldincludedir@,/usr/include,;t t
|
|
|
|
s,@infodir@,$${prefix}/info,;t t
|
|
|
|
s,@mandir@,$${prefix}/man,;t t
|
2009-05-23 20:07:46 +04:00
|
|
|
s,@ridir@,$${prefix}/share/ri,;t t
|
2002-06-11 05:27:48 +04:00
|
|
|
s,@build@,$(CPU)-pc-$(OS),;t t
|
|
|
|
s,@build_alias@,$(CPU)-$(OS),;t t
|
|
|
|
s,@build_cpu@,$(CPU),;t t
|
|
|
|
s,@build_vendor@,pc,;t t
|
|
|
|
s,@build_os@,$(OS),;t t
|
|
|
|
s,@host@,$(CPU)-pc-$(OS),;t t
|
|
|
|
s,@host_alias@,$(CPU)-$(OS),;t t
|
|
|
|
s,@host_cpu@,$(CPU),;t t
|
|
|
|
s,@host_vendor@,pc,;t t
|
|
|
|
s,@host_os@,$(OS),;t t
|
|
|
|
s,@target@,$(ARCH)-pc-$(OS),;t t
|
|
|
|
s,@target_alias@,$(ARCH)-$(OS),;t t
|
|
|
|
s,@target_cpu@,$(ARCH),;t t
|
|
|
|
s,@target_vendor@,pc,;t t
|
|
|
|
s,@target_os@,$(OS),;t t
|
|
|
|
s,@CC@,$(CC),;t t
|
|
|
|
s,@CPP@,cpp32,;t t
|
2005-04-21 01:45:43 +04:00
|
|
|
s,@CXX@,$$(CC),;t t
|
|
|
|
s,@LD@,$(LD),;t t
|
2002-06-11 05:27:48 +04:00
|
|
|
s,@YACC@,$(YACC),;t t
|
2002-10-22 08:19:26 +04:00
|
|
|
s,@RANLIB@,,;t t
|
* 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
|
|
|
s,@AR@,$(AR),;t t
|
2002-10-22 08:19:26 +04:00
|
|
|
s,@ARFLAGS@,$(ARFLAGS) ,;t t
|
2002-06-11 05:27:48 +04:00
|
|
|
s,@LN_S@,$(LN_S),;t t
|
2007-12-24 05:56:33 +03:00
|
|
|
s,@SET_MAKE@,MFLAGS = -$$(MAKEFLAGS),;t t
|
2007-12-19 22:16:32 +03:00
|
|
|
s,@RM@,$$(top_srcdir:/=\)\win32\rm.bat,;t t
|
2005-04-20 19:08:36 +04:00
|
|
|
s,@CP@,copy > nul,;t t
|
2008-02-07 05:14:54 +03:00
|
|
|
s,@LIBOBJS@, $(MISSING),;t t
|
2002-06-11 05:27:48 +04:00
|
|
|
s,@ALLOCA@,$(ALLOCA),;t t
|
|
|
|
s,@DEFAULT_KCODE@,$(DEFAULT_KCODE),;t t
|
|
|
|
s,@EXEEXT@,.exe,;t t
|
|
|
|
s,@OBJEXT@,obj,;t t
|
2003-12-01 03:30:37 +03:00
|
|
|
s,@XCFLAGS@,$(XCFLAGS),;t t
|
2002-06-11 05:27:48 +04:00
|
|
|
s,@XLDFLAGS@,$(XLDFLAGS),;t t
|
* 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
|
|
|
s,@DLDFLAGS@,$(DLDFLAGS),;t t
|
2003-12-01 03:30:37 +03:00
|
|
|
s,@ARCH_FLAG@,$(ARCH_FLAG),;t t
|
2002-06-11 05:27:48 +04:00
|
|
|
s,@STATIC@,$(STATIC),;t t
|
2003-03-04 17:12:19 +03:00
|
|
|
s,@CCDLFLAGS@,,;t t
|
* 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
|
|
|
s,@LDSHARED@,$(LDSHARED),;t t
|
2002-06-11 05:27:48 +04:00
|
|
|
s,@DLEXT@,so,;t t
|
* 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
|
|
|
s,@LIBEXT@,lib,;t t
|
2002-06-11 05:27:48 +04:00
|
|
|
s,@STRIP@,$(STRIP),;t t
|
|
|
|
s,@EXTSTATIC@,$(EXTSTATIC),;t t
|
|
|
|
s,@setup@,Setup,;t t
|
2002-09-08 13:08:15 +04:00
|
|
|
s,@MINIRUBY@,$(MINIRUBY),;t t
|
2005-03-03 12:38:40 +03:00
|
|
|
s,@PREP@,miniruby$(EXEEXT),;t t
|
|
|
|
s,@RUNRUBY@,$(RUNRUBY),;t t
|
|
|
|
s,@EXTOUT@,$(EXTOUT),;t t
|
|
|
|
s,@ARCHFILE@,,;t t
|
|
|
|
s,@RDOCTARGET@,,;t t
|
* 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
|
|
|
s,@LIBRUBY_LDSHARED@,$$(LDSHARED),;t t
|
|
|
|
s,@LIBRUBY_DLDFLAGS@,-Gi $$(DLDFLAGS),;t t
|
2002-06-11 05:27:48 +04:00
|
|
|
s,@RUBY_INSTALL_NAME@,$(RUBY_INSTALL_NAME),;t t
|
* 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
|
|
|
s,@rubyw_install_name@,$(RUBYW_INSTALL_NAME),;t t
|
|
|
|
s,@RUBYW_INSTALL_NAME@,$(RUBYW_INSTALL_NAME),;t t
|
2002-06-11 05:27:48 +04:00
|
|
|
s,@RUBY_SO_NAME@,$(RUBY_SO_NAME),;t t
|
2002-11-14 16:51:19 +03:00
|
|
|
s,@LIBRUBY_A@,$$(RUBY_SO_NAME)-static.lib,;t t
|
2002-06-11 05:27:48 +04:00
|
|
|
s,@LIBRUBY_SO@,$$(RUBY_SO_NAME).dll,;t t
|
|
|
|
s,@LIBRUBY_ALIASES@,$(LIBRUBY_ALIASES),;t t
|
|
|
|
s,@LIBRUBY@,$$(RUBY_SO_NAME).lib,;t t
|
2002-11-14 16:51:19 +03:00
|
|
|
s,@LIBRUBYARG@,$$(LIBRUBYARG_SHARED),;t t
|
|
|
|
s,@LIBRUBYARG_STATIC@,$$(LIBRUBY_A),;t t
|
|
|
|
s,@LIBRUBYARG_SHARED@,$$(LIBRUBY),;t t
|
2002-06-11 05:27:48 +04:00
|
|
|
s,@SOLIBS@,$(SOLIBS),;t t
|
|
|
|
s,@DLDLIBS@,$(DLDLIBS),;t t
|
|
|
|
s,@ENABLE_SHARED@,yes,;t t
|
2004-04-02 14:28:53 +04:00
|
|
|
s,@OUTFLAG@,$(OUTFLAG),;t t
|
2007-12-24 06:49:56 +03:00
|
|
|
s,@COUTFLAG@,$(COUTFLAG),;t t
|
2002-09-15 16:57:21 +04:00
|
|
|
s,@CPPOUTFILE@,,;t t
|
2004-01-10 17:01:50 +03:00
|
|
|
s,@LIBPATHFLAG@, -L"%s",;t t
|
2003-10-31 06:58:21 +03:00
|
|
|
s,@RPATHFLAG@,,;t t
|
* 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
|
|
|
s,@LIBARG@,%s.lib,;t t
|
2007-12-24 06:49:56 +03:00
|
|
|
s,@LINK_SO@,$$(LDSHARED) $$(DLDFLAGS) $$(LIBPATH) $$(OBJS:/=\), $$(@:/=\), nul, $$(LIBS) $$(LOCAL_LIBS), $$(DEFFILE:/=\), $$(RESFILE:/=\),;t t
|
|
|
|
s,@COMPILE_C@,$$(CC) $$(INCFLAGS) $$(CFLAGS) $$(CPPFLAGS) $(COUTFLAG)$$(@) -c $$(<:/=\),;t t
|
|
|
|
s,@COMPILE_CXX@,$$(CXX) $$(INCFLAGS) $$(CXXFLAGS) $$(CPPFLAGS) -P $(COUTFLAG)$$(@) -c $$(<:/=\),;t t
|
2005-02-22 17:52:59 +03:00
|
|
|
s,@COMPILE_RULES@,{$$(srcdir)}.%s{}.%s: {$$(topdir)}.%s{}.%s: {$$(hdrdir)}.%s{}.%s: .%s.%s:,;t t
|
|
|
|
s,@RULE_SUBST@,{.;$$(VPATH)}%s,;t t
|
2005-02-10 06:07:24 +03:00
|
|
|
s,@COMMON_LIBS@,m advapi32 avicap32 avifil32 cap comctl32 comdlg32 dlcapi gdi32 glu32 imagehlp imm32 inetmib1 kernel32 loadperf lsapi32 lz32 mapi32 mgmtapi mpr msacm32 msvfw32 nddeapi netapi32 ole32 oleaut32 oledlg olepro32 opengl32 pdh pkpd32 rasapi32 rasdlg rassapi rpcrt4 setupapi shell32 shfolder snmpapi sporder tapi32 url user32 vdmdbg version win32spl winmm wintrust wsock32,;t t
|
2007-10-11 09:31:48 +04:00
|
|
|
s,@COMMON_MACROS@,WIN32_LEAN_AND_MEAN WIN32,;t t
|
* 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
|
|
|
s,@COMMON_HEADERS@,winsock2.h windows.h,;t t
|
2008-08-07 09:16:27 +04:00
|
|
|
s,@cleanlibs@,$$*.tds,;t t
|
|
|
|
s,@cleanobjs@,$$*-$$(arch).def $$*.il? $$*.lib,;t t
|
2002-10-22 08:19:26 +04:00
|
|
|
s,@TRY_LINK@,$$(CC) -oconftest $$(INCFLAGS) -I$$(hdrdir) $$(CPPFLAGS) $$(CFLAGS) $$(LIBPATH) $$(LDFLAGS) $$(src) $$(LOCAL_LIBS) $$(LIBS),;t t
|
* 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
|
|
|
s,@EXPORT_PREFIX@,_,;t t
|
2002-06-11 05:27:48 +04:00
|
|
|
s,@arch@,$(ARCH)-$(OS),;t t
|
2002-09-08 09:46:29 +04:00
|
|
|
s,@sitearch@,$(ARCH)-$(OS),;t t
|
2002-06-11 05:27:48 +04:00
|
|
|
s,@sitedir@,$${prefix}/lib/ruby/site_ruby,;t t
|
2007-11-10 07:18:44 +03:00
|
|
|
s,@vendordir@,$${prefix}/lib/ruby/vendor_ruby,;t t
|
2007-12-24 09:42:06 +03:00
|
|
|
s,@rubyhdrdir@,$$(includedir)/ruby-$$(MAJOR).$$(MINOR).$$(TEENY),;t t
|
2007-11-10 07:18:44 +03:00
|
|
|
s,@sitehdrdir@,$$(rubyhdrdir)/site_ruby,;t t
|
|
|
|
s,@vendorhdrdir@,$$(rubyhdrdir)/vendor_ruby,;t t
|
2002-06-11 05:27:48 +04:00
|
|
|
s,@configure_args@,--enable-shared $(configure_args),;t t
|
|
|
|
s,@configure_input@,$$configure_input,;t t
|
|
|
|
s,@srcdir@,$(srcdir),;t t
|
|
|
|
s,@top_srcdir@,$(srcdir),;t t
|
|
|
|
|
|
|
|
|
|
2004-03-22 02:21:31 +03:00
|
|
|
miniruby$(EXEEXT):
|
2002-06-11 05:27:48 +04:00
|
|
|
@echo $(LIBS)
|
2007-12-24 06:49:56 +03:00
|
|
|
$(LD) $(LDFLAGS) $(XLDFLAGS) $(MAINOBJ) $(MINIOBJS) $(COMMONOBJS:/=\) $(DMYEXT),$@,nul,$(LIBS)
|
2002-06-11 05:27:48 +04:00
|
|
|
|
2002-09-12 18:27:02 +04:00
|
|
|
$(PROGRAM): $(MAINOBJ) $(LIBRUBY_SO) $(RUBY_INSTALL_NAME).res
|
* 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
|
|
|
$(LD) $(LDFLAGS) $(XLDFLAGS) $(MAINOBJ),$@,nul,$(LIBRUBYARG) $(LIBS),,$(RUBY_INSTALL_NAME).res
|
2002-06-11 05:27:48 +04:00
|
|
|
|
2002-09-12 18:27:02 +04:00
|
|
|
$(WPROGRAM): $(MAINOBJ) $(WINMAINOBJ) $(LIBRUBY_SO) $(RUBYW_INSTALL_NAME).res
|
* 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
|
|
|
$(LD) $(LDFLAGS) $(WLDFLAGS) $(MAINOBJ) $(WINMAINOBJ),$@,nul,$(LIBRUBYARG) $(LIBS),,$(RUBYW_INSTALL_NAME).res
|
2002-06-11 05:27:48 +04:00
|
|
|
|
2005-08-03 19:27:13 +04:00
|
|
|
$(LIBRUBY_A): $(OBJS) $(DMYEXT)
|
2002-06-11 05:27:48 +04:00
|
|
|
@-if exist $@ del $@
|
2005-08-03 19:27:13 +04:00
|
|
|
$(AR) $(ARFLAGS) "$@" $(OBJS) $(DMYEXT)
|
2002-06-11 05:27:48 +04: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@2974 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2002-10-21 18:03:46 +04:00
|
|
|
# $(LIBRUBY): $(LIBRUBY_SO)
|
|
|
|
# implib $@ $(LIBRUBY_SO)
|
2002-09-12 18:27:02 +04:00
|
|
|
|
2005-08-03 19:27:13 +04:00
|
|
|
$(LIBRUBY_SO): $(LIBRUBY_A) $(DLDOBJS) $(RUBYDEF) $(RUBY_SO_NAME).res
|
|
|
|
@echo $(DLDOBJS)
|
2006-10-19 19:38:31 +04:00
|
|
|
@$(PRE_LIBRUBY_UPDATE)
|
2005-08-03 19:27:13 +04:00
|
|
|
$(LIBRUBY_LDSHARED) $(LIBRUBY_DLDFLAGS) $(DLDOBJS:/=\),$(LIBRUBY_SO),nul,$(LIBRUBY_A) $(LIBS),$(RUBYDEF),$(RUBY_SO_NAME).res
|
2002-06-11 05:27:48 +04:00
|
|
|
|
2004-03-22 02:21:31 +03:00
|
|
|
$(LIBRUBY): $(LIBRUBY_SO)
|
2002-06-11 05:27:48 +04:00
|
|
|
|
2004-03-22 02:21:31 +03:00
|
|
|
$(RUBYDEF): $(LIBRUBY_A) $(PREP)
|
2007-07-10 09:50:10 +04:00
|
|
|
$(MINIRUBY) $(srcdir)/bcc32/mkexports.rb -output=$@ -base=$(RUBY_SO_NAME) $(LIBRUBY_A)
|
2004-03-22 02:21:31 +03:00
|
|
|
|
2008-02-16 21:16:21 +03:00
|
|
|
$(RUBY_INSTALL_NAME).rc $(RUBYW_INSTALL_NAME).rc $(RUBY_SO_NAME).rc: rbconfig.rb $(srcdir)/revision.h $(srcdir)/win32/resource.rb
|
2007-07-10 09:50:10 +04:00
|
|
|
@$(MINIRUBY) $(srcdir)/win32/resource.rb \
|
2004-03-23 08:32:01 +03:00
|
|
|
-ruby_name=$(RUBY_INSTALL_NAME) \
|
|
|
|
-rubyw_name=$(RUBYW_INSTALL_NAME) \
|
|
|
|
-so_name=$(RUBY_SO_NAME) \
|
2007-07-10 09:50:10 +04:00
|
|
|
. $(icondirs) $(srcdir)/win32
|
2004-03-23 08:32:01 +03:00
|
|
|
|
2007-11-13 09:29:49 +03:00
|
|
|
lex.c: {$(srcdir)}lex.c.blt
|
|
|
|
copy "$(?:/=\)" $@
|
|
|
|
|
2006-10-13 19:56:48 +04:00
|
|
|
post-install-bin::
|
2006-10-20 03:44:00 +04:00
|
|
|
@$(NULLCMD)
|
2006-10-13 19:56:48 +04:00
|
|
|
post-install-lib::
|
2006-10-20 03:44:00 +04:00
|
|
|
@$(NULLCMD)
|
2006-10-13 19:56:48 +04:00
|
|
|
post-install-ext-comm::
|
2006-10-20 03:44:00 +04:00
|
|
|
@$(NULLCMD)
|
2006-10-13 19:56:48 +04:00
|
|
|
post-install-ext-arch::
|
2006-10-20 03:44:00 +04:00
|
|
|
@$(NULLCMD)
|
2006-10-13 19:56:48 +04:00
|
|
|
post-install-man::
|
2006-10-20 03:44:00 +04:00
|
|
|
@$(NULLCMD)
|
2006-10-13 19:56:48 +04:00
|
|
|
post-install-doc::
|
2006-10-20 03:44:00 +04:00
|
|
|
@$(NULLCMD)
|
2005-03-03 12:44:33 +03:00
|
|
|
|
2004-03-22 02:21:31 +03:00
|
|
|
clean-local::
|
2008-03-11 06:39:55 +03:00
|
|
|
@$(RM) $(WINMAINOBJ) ext\extinit.c ext\extinit.$(OBJEXT) *.tds *.il? $(RUBY_SO_NAME).lib
|
2004-03-22 02:21:31 +03:00
|
|
|
@$(RM) $(RUBY_INSTALL_NAME).res $(RUBYW_INSTALL_NAME).res $(RUBY_SO_NAME).res
|
2008-02-24 17:29:51 +03:00
|
|
|
@$(RM) *.map *.pdb *.ilk *.exp $(RUBYDEF) ext\ripper\y.output
|
2004-03-22 02:21:31 +03:00
|
|
|
|
|
|
|
distclean-local::
|
2004-04-22 05:08:23 +04:00
|
|
|
@$(RM) ext\config.cache $(RBCONFIG:/=\)
|
2004-03-22 02:21:31 +03:00
|
|
|
@$(RM) $(RUBY_INSTALL_NAME).rc $(RUBYW_INSTALL_NAME).rc $(RUBY_SO_NAME).rc
|
|
|
|
|
2008-08-07 11:28:56 +04:00
|
|
|
clean-ext distclean-ext realclean-ext::
|
|
|
|
@for /R ext %I in (.) do @if exist %I\Makefile ( \
|
|
|
|
echo $(@:-ext=)ing %~nI & \
|
|
|
|
cd %I & \
|
|
|
|
$(MAKE) $(MFLAGS) $(@:-ext=) & \
|
|
|
|
cd %CD% \
|
|
|
|
)
|
|
|
|
|
2004-04-07 05:43:27 +04:00
|
|
|
ext/extinit.obj: ext/extinit.c $(SETUP)
|
2007-12-24 06:49:56 +03:00
|
|
|
$(CC) $(CFLAGS) $(XCFLAGS) $(CPPFLAGS) $(COUTFLAG)$@ -c ext/extinit.c
|
2004-04-07 05:43:27 +04:00
|
|
|
|
2004-03-22 02:21:31 +03:00
|
|
|
main.$(OBJEXT): win32.h
|
|
|
|
ascii.$(OBJEXT): win32.h
|
|
|
|
array.$(OBJEXT): win32.h
|
|
|
|
bignum.$(OBJEXT): win32.h
|
|
|
|
class.$(OBJEXT): win32.h
|
|
|
|
compar.$(OBJEXT): win32.h
|
|
|
|
dir.$(OBJEXT): dir.h win32.h
|
|
|
|
dln.$(OBJEXT): win32.h
|
|
|
|
enum.$(OBJEXT): win32.h
|
|
|
|
error.$(OBJEXT): win32.h
|
|
|
|
euc_jp.$(OBJEXT): win32.h
|
|
|
|
eval.$(OBJEXT): win32.h
|
|
|
|
file.$(OBJEXT): win32.h
|
|
|
|
gc.$(OBJEXT): win32.h
|
|
|
|
hash.$(OBJEXT): win32.h
|
|
|
|
inits.$(OBJEXT): win32.h
|
|
|
|
io.$(OBJEXT): win32.h
|
|
|
|
marshal.$(OBJEXT): win32.h
|
|
|
|
math.$(OBJEXT): win32.h
|
|
|
|
numeric.$(OBJEXT): win32.h
|
|
|
|
object.$(OBJEXT): win32.h
|
|
|
|
pack.$(OBJEXT): win32.h
|
|
|
|
parse.$(OBJEXT): win32.h
|
|
|
|
process.$(OBJEXT): win32.h
|
|
|
|
prec.$(OBJEXT): win32.h
|
|
|
|
random.$(OBJEXT): win32.h
|
|
|
|
range.$(OBJEXT): win32.h
|
|
|
|
re.$(OBJEXT): win32.h
|
|
|
|
regcomp.$(OBJEXT): win32.h
|
|
|
|
regenc.$(OBJEXT): win32.h
|
|
|
|
regerror.$(OBJEXT): win32.h
|
|
|
|
regexec.$(OBJEXT): win32.h
|
|
|
|
reggnu.$(OBJEXT): win32.h
|
|
|
|
regparse.$(OBJEXT): win32.h
|
|
|
|
ruby.$(OBJEXT): win32.h
|
|
|
|
signal.$(OBJEXT): win32.h
|
|
|
|
sjis.$(OBJEXT): win32.h
|
|
|
|
sprintf.$(OBJEXT): win32.h
|
|
|
|
st.$(OBJEXT): win32.h
|
|
|
|
string.$(OBJEXT): win32.h
|
|
|
|
struct.$(OBJEXT): win32.h
|
|
|
|
time.$(OBJEXT): win32.h
|
2008-01-15 11:26:54 +03:00
|
|
|
utf_8.$(OBJEXT): win32.h
|
2004-03-22 02:21:31 +03:00
|
|
|
util.$(OBJEXT): win32.h
|
|
|
|
variable.$(OBJEXT): win32.h
|
|
|
|
version.$(OBJEXT): win32.h
|