2003-08-16 10:58:34 -04:00
|
|
|
# -*- makefile -*-
|
|
|
|
|
2000-12-06 04:10:17 -05:00
|
|
|
SHELL = $(COMSPEC)
|
2011-12-14 06:02:00 -05:00
|
|
|
ECHO1 = $(V:1=@:)
|
2009-02-24 05:01:08 -05:00
|
|
|
RUNCMD = $(COMSPEC) /c
|
2004-03-23 00:32:01 -05:00
|
|
|
MKFILES = Makefile
|
2004-03-21 18:21:31 -05:00
|
|
|
NULL = nul
|
2009-03-06 04:37:31 -05:00
|
|
|
CHDIR = cd
|
2000-08-03 05:55:54 -04:00
|
|
|
|
2007-12-22 01:30:40 -05:00
|
|
|
!ifndef MFLAGS
|
2007-12-23 22:35:06 -05:00
|
|
|
MFLAGS=-l
|
2007-12-22 01:30:40 -05:00
|
|
|
!endif
|
|
|
|
|
2008-01-08 06:02:10 -05:00
|
|
|
!ifndef CROSS_COMPILING
|
|
|
|
CROSS_COMPILING = 0
|
|
|
|
!endif
|
|
|
|
!ifndef LARGEFILE_SUPPORT
|
|
|
|
LARGEFILE_SUPPORT = 1
|
|
|
|
!endif
|
|
|
|
!ifndef win_srcdir
|
|
|
|
win_srcdir = $(srcdir)/win32
|
|
|
|
!endif
|
|
|
|
|
2000-08-03 05:55:54 -04:00
|
|
|
#### Start of system configuration section. ####
|
|
|
|
|
2005-10-14 10:10:08 -04:00
|
|
|
!if defined(pathlist)
|
|
|
|
PATH = $(pathlist:;=/bin;)$(PATH)
|
|
|
|
INCLUDE = $(pathlist:;=/include;)
|
|
|
|
LIB = $(pathlist:;=/lib;)
|
|
|
|
!endif
|
|
|
|
|
2000-08-03 05:55:54 -04:00
|
|
|
## variables may be overridden by $(compile_dir)/Makefile
|
|
|
|
!ifndef srcdir
|
|
|
|
srcdir = ..
|
|
|
|
!endif
|
2009-05-07 21:14:14 -04:00
|
|
|
!ifndef RUBY_BASE_NAME
|
|
|
|
RUBY_BASE_NAME = ruby
|
|
|
|
!endif
|
2000-08-03 05:55:54 -04:00
|
|
|
!ifndef RUBY_INSTALL_NAME
|
2010-12-16 05:55:11 -05:00
|
|
|
RUBY_INSTALL_NAME = $(PROGRAM_PREFIX)$(RUBY_BASE_NAME)$(PROGRAM_SUFFIX)
|
2000-08-03 05:55:54 -04:00
|
|
|
!endif
|
|
|
|
!if !defined(RUBYW_INSTALL_NAME) || "$(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
|
2010-11-18 09:56:34 -05:00
|
|
|
STUBPROGRAM = rubystub$(EXEEXT)
|
2001-06-09 03:41:44 -04:00
|
|
|
!if !defined(icondirs) && defined(ICONDIRS)
|
|
|
|
icondirs=$(ICONDIRS)
|
|
|
|
!endif
|
|
|
|
!if defined(icondirs)
|
|
|
|
icondirs=$(icondirs:\=/)
|
2002-03-20 06:21:19 -05:00
|
|
|
iconinc=-I$(icondirs: = -I)
|
2001-06-09 03:41:44 -04:00
|
|
|
!endif
|
2000-08-03 05:55:54 -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 10:03:46 -04:00
|
|
|
.SUFFIXES: .y .def .lib
|
2000-08-03 05:55:54 -04:00
|
|
|
|
2002-03-20 06:21:19 -05:00
|
|
|
!if !defined(CC)
|
2000-08-03 05:55:54 -04:00
|
|
|
CC = cl
|
2002-03-20 06:21:19 -05:00
|
|
|
!endif
|
2006-09-26 02:32:09 -04:00
|
|
|
!if !defined(CPP) || "$(CPP)" == "cl"
|
* 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 10:03:46 -04:00
|
|
|
CPP = $(CC) -E
|
|
|
|
!endif
|
2002-03-20 06:21:19 -05:00
|
|
|
!if !defined(YACC)
|
2004-09-17 07:38:49 -04:00
|
|
|
YACC = bison
|
2002-03-20 06:21:19 -05:00
|
|
|
!endif
|
2002-09-10 04:24:11 -04:00
|
|
|
AR = lib -nologo
|
2000-08-03 05:55:54 -04:00
|
|
|
PURIFY =
|
|
|
|
AUTOCONF = autoconf
|
2008-01-25 04:27:30 -05:00
|
|
|
IFCHANGE = $(COMSPEC) /C $(srcdir:/=\)\win32\ifchange.bat
|
2006-01-16 21:08:33 -05:00
|
|
|
RM = $(COMSPEC) /C $(srcdir:/=\)\win32\rm.bat
|
2010-12-26 08:46:02 -05:00
|
|
|
RMDIR = $(COMSPEC) /C $(srcdir:/=\)\win32\rmdirs.bat
|
2009-01-24 21:06:29 -05:00
|
|
|
RMDIRS = $(COMSPEC) /C $(srcdir:/=\)\win32\rmdirs.bat
|
2010-12-26 09:10:41 -05:00
|
|
|
RMALL = $(COMSPEC) /C $(srcdir:/=\)\win32\rmall.bat
|
2007-12-11 02:19:28 -05:00
|
|
|
CP = copy > nul
|
2008-01-12 19:17:31 -05:00
|
|
|
MV = move > nul
|
2007-01-23 01:41:22 -05:00
|
|
|
!if !defined(BASERUBY)
|
|
|
|
BASERUBY = ruby
|
|
|
|
!endif
|
2009-07-21 00:35:56 -04:00
|
|
|
!if !defined(TEST_RUNNABLE)
|
|
|
|
TEST_RUNNABLE = yes
|
|
|
|
!endif
|
2000-08-03 05:55:54 -04:00
|
|
|
|
2002-09-10 04:24:11 -04:00
|
|
|
!if !defined(PROCESSOR_ARCHITECTURE)
|
|
|
|
PROCESSOR_ARCHITECTURE = x86
|
|
|
|
!endif
|
|
|
|
MACHINE = $(PROCESSOR_ARCHITECTURE)
|
|
|
|
!if "$(PROCESSOR_ARCHITECTURE)" == "x86"
|
2002-03-20 06:21:19 -05:00
|
|
|
!if !defined(PROCESSOR_LEVEL)
|
|
|
|
PROCESSOR_LEVEL = 5
|
|
|
|
!endif
|
2002-06-11 00:16:58 -04:00
|
|
|
!if 6 < $(PROCESSOR_LEVEL)
|
|
|
|
PROCESSOR_LEVEL = 6
|
|
|
|
!endif
|
2005-12-30 04:23:15 -05:00
|
|
|
!if $(MSC_VER) < 1400
|
2002-03-20 06:21:19 -05:00
|
|
|
PROCESSOR_FLAG = -G$(PROCESSOR_LEVEL)
|
2005-12-30 04:23:15 -05:00
|
|
|
!endif
|
2002-03-20 06:21:19 -05:00
|
|
|
CPU = i$(PROCESSOR_LEVEL)86
|
|
|
|
ARCH = i386
|
|
|
|
!else
|
|
|
|
CPU = $(PROCESSOR_ARCHITECTURE)
|
|
|
|
ARCH = $(PROCESSOR_ARCHITECTURE)
|
|
|
|
!endif
|
2007-02-24 21:48:19 -05:00
|
|
|
!if !defined(DEBUGFLAGS)
|
2002-03-20 06:21:19 -05:00
|
|
|
DEBUGFLAGS = -Zi
|
|
|
|
!endif
|
|
|
|
!if !defined(OPTFLAGS)
|
2006-01-09 00:27:43 -05:00
|
|
|
!if $(MSC_VER) < 1400
|
|
|
|
OPTFLAGS = -O2b2xg-
|
|
|
|
!else
|
2009-03-10 00:52:29 -04:00
|
|
|
OPTFLAGS = -O2sy-
|
2002-03-20 06:21:19 -05:00
|
|
|
!endif
|
2006-01-09 00:27:43 -05:00
|
|
|
!endif
|
2008-07-11 09:10:29 -04:00
|
|
|
!if !defined(PLATFORM)
|
|
|
|
PLATFORM = mswin32
|
2005-04-13 06:25:41 -04:00
|
|
|
!endif
|
|
|
|
!if !defined(RT)
|
|
|
|
!error RT not defined. Retry from configure pass.
|
2003-12-18 07:48:43 -05:00
|
|
|
!endif
|
2009-11-26 03:55:34 -05:00
|
|
|
!ifdef NTVER
|
|
|
|
ARCHDEFS = -D_WIN32_WINNT=$(NTVER) $(ARCHDEFS)
|
|
|
|
!endif
|
2000-08-03 05:55:54 -04:00
|
|
|
|
2008-07-11 09:10:29 -04:00
|
|
|
arch = $(ARCH)-$(PLATFORM)
|
2009-10-26 14:45:34 -04:00
|
|
|
sitearch = $(ARCH)-$(RT)
|
2008-07-15 09:34:49 -04:00
|
|
|
!if !defined(ruby_version)
|
|
|
|
ruby_version = $(MAJOR).$(MINOR).$(TEENY)
|
|
|
|
!endif
|
2007-06-09 23:06:15 -04:00
|
|
|
|
2002-09-10 04:24:11 -04:00
|
|
|
!ifndef RUBY_SO_NAME
|
2009-05-07 21:14:14 -04:00
|
|
|
RUBY_SO_NAME = $(RT)-$(RUBY_BASE_NAME)$(MAJOR)$(MINOR)$(TEENY)
|
2011-05-15 22:22:27 -04:00
|
|
|
!if "$(ARCH)" != "i386"
|
|
|
|
RUBY_SO_NAME = $(ARCH)-$(RUBY_SO_NAME)
|
|
|
|
!endif
|
2002-09-10 04:24:11 -04:00
|
|
|
!endif
|
2008-01-08 06:02:10 -05:00
|
|
|
!ifndef RUBY_PLATFORM
|
|
|
|
RUBY_PLATFORM = $(arch)
|
|
|
|
!endif
|
2002-09-10 04:24:11 -04:00
|
|
|
|
2002-03-20 06:21:19 -05:00
|
|
|
!if !defined(prefix)
|
2000-08-03 05:55:54 -04:00
|
|
|
prefix = /usr
|
2002-03-20 06:21:19 -05:00
|
|
|
!endif
|
2003-08-16 10:58:34 -04:00
|
|
|
!if !defined(exec_prefix)
|
|
|
|
exec_prefix = $(prefix)
|
|
|
|
!endif
|
|
|
|
!if !defined(libdir)
|
|
|
|
libdir = $(exec_prefix)/lib
|
|
|
|
!endif
|
2004-02-09 03:48:55 -05:00
|
|
|
!if !defined(datadir)
|
|
|
|
datadir = $(prefix)/share
|
|
|
|
!endif
|
|
|
|
!ifndef EXTOUT
|
|
|
|
EXTOUT = .ext
|
|
|
|
!endif
|
|
|
|
!ifndef TESTUI
|
|
|
|
TESTUI = console
|
|
|
|
!endif
|
|
|
|
!ifndef TESTS
|
|
|
|
TESTS =
|
|
|
|
!endif
|
2009-09-16 03:20:19 -04:00
|
|
|
!ifndef CAPITARGET
|
|
|
|
! ifdef DOXYGEN
|
|
|
|
CAPITARGET = capi
|
|
|
|
! else
|
|
|
|
CAPITARGET = nodoc
|
|
|
|
! endif
|
|
|
|
!endif
|
|
|
|
!ifndef DOCTARGETS
|
2009-09-16 04:00:07 -04:00
|
|
|
! if "$(RDOCTARGET)" == "rdoc" || "$(RDOCTARGET)" == ""
|
2009-09-16 03:20:19 -04:00
|
|
|
DOCTARGETS = $(DOCTARGETS) rdoc
|
|
|
|
! endif
|
|
|
|
! if "$(CAPITARGET)" == "capi"
|
|
|
|
DOCTARGETS = $(DOCTARGETS) capi
|
|
|
|
! endif
|
2009-09-16 03:27:58 -04:00
|
|
|
!endif
|
2009-09-16 03:20:19 -04:00
|
|
|
!ifndef INSTALLDOC
|
2009-09-16 04:06:24 -04:00
|
|
|
! if "$(DOCTARGETS)" != ""
|
2009-09-16 03:20:19 -04:00
|
|
|
INSTALLDOC = all
|
|
|
|
! else
|
|
|
|
INSTALLDOC = nodoc
|
|
|
|
DOCTARGETS = nodoc
|
|
|
|
! endif
|
2004-02-09 03:48:55 -05:00
|
|
|
!endif
|
2004-03-21 18:21:31 -05:00
|
|
|
|
|
|
|
OUTFLAG = -Fe
|
2007-12-23 22:49:56 -05:00
|
|
|
COUTFLAG = -Fo
|
2008-01-08 06:02:10 -05:00
|
|
|
!if !defined(RUNTIMEFLAG)
|
|
|
|
RUNTIMEFLAG = -MD
|
|
|
|
!endif
|
2008-09-01 23:59:39 -04:00
|
|
|
!if !defined(COMPILERFLAG)
|
2009-01-14 23:14:18 -05:00
|
|
|
COMPILERFLAG = -Zm600
|
2008-09-01 23:59:39 -04:00
|
|
|
!endif
|
2009-03-10 07:07:42 -04:00
|
|
|
!if !defined(WARNFLAGS)
|
2009-03-12 09:31:11 -04:00
|
|
|
!if $(MSC_VER) >= 1400
|
2010-12-06 18:00:47 -05:00
|
|
|
WARNFLAGS = -W2 -wd4996 -we4028 -we4142
|
2009-03-12 09:31:11 -04:00
|
|
|
!else
|
|
|
|
WARNFLAGS = -W2
|
|
|
|
!endif
|
2009-03-10 07:07:42 -04:00
|
|
|
!endif
|
2010-12-06 18:00:47 -05:00
|
|
|
WERRORFLAG = -WX
|
2002-03-20 06:21:19 -05:00
|
|
|
!if !defined(CFLAGS)
|
2008-09-01 23:59:39 -04:00
|
|
|
CFLAGS = $(RUNTIMEFLAG) $(DEBUGFLAGS) $(WARNFLAGS) $(OPTFLAGS) $(PROCESSOR_FLAG) $(COMPILERFLAG)
|
2002-03-20 06:21:19 -05:00
|
|
|
!endif
|
2005-04-20 17:45:43 -04:00
|
|
|
!if !defined(CXXFLAGS)
|
|
|
|
CXXFLAGS = $(CFLAGS)
|
|
|
|
!endif
|
2003-12-18 07:48:43 -05:00
|
|
|
!if !defined(LDFLAGS)
|
2009-03-08 10:02:50 -04:00
|
|
|
LDFLAGS = -incremental:no -debug -opt:ref -opt:icf
|
2003-12-18 07:48:43 -05:00
|
|
|
!endif
|
2002-03-20 06:21:19 -05:00
|
|
|
!if !defined(XLDFLAGS)
|
2003-12-18 07:48:43 -05:00
|
|
|
XLDFLAGS = -stack:$(STACK)
|
2002-03-20 06:21:19 -05:00
|
|
|
!endif
|
|
|
|
!if !defined(RFLAGS)
|
|
|
|
RFLAGS = -r
|
|
|
|
!endif
|
|
|
|
!if !defined(EXTLIBS)
|
|
|
|
EXTLIBS =
|
|
|
|
!endif
|
2008-01-08 06:02:10 -05:00
|
|
|
!if !defined(LIBS)
|
2010-05-16 02:09:40 -04:00
|
|
|
LIBS = oldnames.lib user32.lib advapi32.lib shell32.lib ws2_32.lib imagehlp.lib $(EXTLIBS)
|
2008-01-08 06:02:10 -05:00
|
|
|
!endif
|
2009-03-04 09:29:58 -05:00
|
|
|
!if "$(ENABLE_WIN95)" == "yes"
|
2009-03-04 06:27:12 -05:00
|
|
|
LIBS = unicows.lib $(LIBS)
|
|
|
|
!endif
|
2008-01-08 06:02:10 -05:00
|
|
|
!if !defined(MISSING)
|
2011-05-14 12:01:28 -04:00
|
|
|
MISSING = acosh.obj cbrt.obj crypt.obj erf.obj ffs.obj langinfo.obj lgamma_r.obj strlcat.obj strlcpy.obj tgamma.obj win32.obj setproctitle.obj
|
2008-01-08 06:02:10 -05: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 10:03:46 -04:00
|
|
|
|
|
|
|
ARFLAGS = -machine:$(MACHINE) -out:
|
|
|
|
CC = $(CC) -nologo
|
|
|
|
LD = $(CC)
|
|
|
|
LDSHARED = $(LD) -LD
|
2008-01-08 06:02:10 -05:00
|
|
|
XCFLAGS = -DRUBY_EXPORT -I. -I$(arch_hdrdir) -I$(hdrdir) -I$(srcdir) -I$(srcdir)/missing $(XCFLAGS)
|
2005-12-30 04:23:15 -05:00
|
|
|
!if $(MSC_VER) >= 1400
|
|
|
|
# Prevents VC++ 2005 (cl ver 14) warnings
|
2006-05-24 12:52:00 -04:00
|
|
|
MANIFESTTOOL = mt -nologo
|
2009-10-01 01:19:19 -04:00
|
|
|
LDSHARED_0 = @if exist $(@).manifest $(MINIRUBY) -run -e wait_writable -- -n 10 $@
|
|
|
|
LDSHARED_1 = @if exist $(@).manifest $(MANIFESTTOOL) -manifest $(@).manifest -outputresource:$(@);2
|
|
|
|
LDSHARED_2 = @if exist $(@).manifest @$(RM) $(@:/=\).manifest
|
2005-12-30 04:23:15 -05:00
|
|
|
!endif
|
2009-03-10 07:07:42 -04:00
|
|
|
CPPFLAGS = $(DEFS) $(ARCHDEFS) $(CPPFLAGS)
|
2005-12-30 04:23:15 -05:00
|
|
|
|
* configure.in (XCFLAGS): CFLAGS to comile ruby itself.
* configure.in (LIBEXT): suffix for static libraries.
* configure.in (LIBPATHFLAG): switch template to specify library
path.
* configure.in (LINK_SO): command to link shared objects.
* configure.in (DEFFILE, ARCHFILE): miscellaneous system dependent
files.
* configure.in (EXPORT_PREFIX): prefix to exported symbols on
Windows.
* configure.in (COMMON_LIBS, COMMON_MACROS, COMMON_HEADERS):
libraries, macros and headers used in common.
* configure.in (RUBYW_INSTALL_NAME, rubyw_install_name): GUI mode
excutable name.
* Makefile.in (CFLAGS): append XCFLAGS.
* Makefile.in (PREP): miscellaneous system dependent files.
* Makefile.in (ruby.imp, ext/extinit.o): moved from ext/extmk.rb.
* Makefile.in (fake.rb): CROSS_COMPILING keeps building platform.
* Makefile.in (MAKEFILES): depend on *.in and config.status.
* Makefile.in (parse.c): replace "y.tab.c" with actual name for
byacc.
* ext/extmk.rb, lib/mkmf.rb: integrated.
* ext/extmk.rb: propagate MFLAGS.
* ext/extmk.rb (extmake): make dummy Makefile to clean even if no
Makefile is made.
* lib/mkmf.rb (older): accept multiple file names and Time
objects.
* lib/mkmf.rb (xsystem): split and qoute.
* lib/mkmf.rb (cpp_include): make include directives.
* lib/mkmf.rb (try_func): try wheather specified function is
available.
* lib/mkmf.rb (install_files): default to site-install.
* lib/mkmf.rb (checking_for): added.
* lib/mkmf.rb (find_executable0): just find executable file with
no message.
* lib/mkmf.rb (create_header): output header file is variable.
* lib/mkmf.rb (create_makefile): separate sections.
* lib/mkmf.rb (init_mkmf): initialize global variables.
* win32/Makefile.sub, bcc32/Makefile.sub (CPP, AR): added.
* bcc32/Makefile.sub (ARCH): fixed to i386.
* win32/Makefile.sub, bcc32/Makefile.sub (miniruby): should not
link EXTOBJS.
* ext/dl/extconf.rb: use try_cpp to cross compile.
* ext/dl/extconf.rb: not modify files in source directory.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@2974 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2002-10-21 10:03:46 -04:00
|
|
|
DLDFLAGS = $(LDFLAGS) -dll
|
2000-08-03 05:55:54 -04:00
|
|
|
SOLIBS =
|
2010-10-07 05:10:47 -04:00
|
|
|
RCFILES = $(RUBY_INSTALL_NAME).rc $(RUBYW_INSTALL_NAME).rc $(RUBY_SO_NAME).rc
|
2010-12-02 09:06:54 -05:00
|
|
|
!ifndef RCFLAGS
|
2010-12-02 22:56:21 -05:00
|
|
|
!if $(MSC_VER) >= 1600
|
2010-12-02 09:06:54 -05:00
|
|
|
RCFLAGS=-nologo
|
|
|
|
!endif
|
|
|
|
!endif
|
2000-08-03 05:55:54 -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 10:03:46 -04:00
|
|
|
LIBRUBY_LDSHARED = $(LDSHARED)
|
2008-07-12 10:58:07 -04:00
|
|
|
LIBRUBY_DLDFLAGS = $(EXTLDFLAGS) -implib:dummy.lib -def:$(RUBYDEF)
|
* 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 10:03:46 -04:00
|
|
|
|
2000-08-03 05:55:54 -04:00
|
|
|
EXEEXT = .exe
|
2009-11-30 02:54:26 -05:00
|
|
|
EXECUTABLE_EXTS = ".exe",".com",".cmd",".bat"
|
2008-01-08 06:02:10 -05:00
|
|
|
!if !defined(PROGRAM)
|
2000-08-03 05:55:54 -04:00
|
|
|
PROGRAM=$(RUBY_INSTALL_NAME)$(EXEEXT)
|
2008-01-08 06:02:10 -05:00
|
|
|
!endif
|
|
|
|
!if !defined(WPROGRAM) && defined(RUBYW_INSTALL_NAME)
|
2000-08-03 05:55:54 -04:00
|
|
|
WPROGRAM=$(RUBYW_INSTALL_NAME)$(EXEEXT)
|
2008-01-08 06:02:10 -05:00
|
|
|
!endif
|
2000-08-03 05:55:54 -04:00
|
|
|
RUBYDEF = $(RUBY_SO_NAME).def
|
2008-01-08 06:02:10 -05:00
|
|
|
!if $(CROSS_COMPILING)
|
|
|
|
MINIRUBY = $(RUBY) -I$(MAKEDIR) -rfake
|
|
|
|
RUNRUBY = $(MINIRUBY)
|
|
|
|
!else
|
2011-01-13 21:37:34 -05:00
|
|
|
MINIRUBY = .\miniruby$(EXEEXT) -I$(srcdir)/lib -I.
|
|
|
|
RUNRUBY = .\$(PROGRAM) -I$(srcdir)/lib -I"$(EXTOUT)/$(arch)" -I.
|
2008-01-08 06:02:10 -05:00
|
|
|
!endif
|
|
|
|
MINIRUBY = $(MINIRUBY) $(MINIRUBYOPT)
|
2011-07-08 19:39:42 -04:00
|
|
|
RUNRUBY = $(RUNRUBY) "$(srcdir)/tool/runruby.rb" --extout="$(EXTOUT)" $(RUNRUBYOPT) -- $(RUN_OPTS)
|
2009-10-22 18:32:39 -04:00
|
|
|
!if $(CROSS_COMPILING)
|
|
|
|
XRUBY = $(MINIRUBY)
|
|
|
|
!else
|
|
|
|
XRUBY = $(RUNRUBY)
|
|
|
|
!endif
|
2008-01-08 06:02:10 -05:00
|
|
|
!ifndef RUBY
|
|
|
|
RUBY = ruby
|
|
|
|
!endif
|
2011-02-10 22:03:26 -05:00
|
|
|
!if "$(USE_RUBYGEMS)" == "NO"
|
|
|
|
DEFAULT_PRELUDES = $(NO_GEM_PRELUDE)
|
|
|
|
!else
|
|
|
|
DEFAULT_PRELUDES = $(YES_GEM_PRELUDE)
|
|
|
|
!endif
|
|
|
|
|
2010-11-17 04:38:38 -05:00
|
|
|
MAKEDIRS = $(MINIRUBY) -run -e mkdir -- -p
|
2000-08-03 05:55:54 -04:00
|
|
|
|
2002-03-20 06:21:19 -05:00
|
|
|
!if !defined(STACK)
|
* include/ruby/intern.h, thread.c, win32/Makefile.sub (rb_fdset_t,
rb_fd_init, rb_fd_term, rb_fd_zero, rb_fd_set, rb_fd_clr, rb_fd_isset,
rb_fd_select, rb_fd_ptr, rb_fd_max, HAVE_RB_FD_INIT): new type,
functions, and macros for Windows.
* win32/win32.c (extract_fd, rb_w32_select): use rb_fdset_t to expand
fd_array if needed. [ruby-core:19946]
* win32/win32.c (copy_fd): new funcion for rb_w32_select().
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@21487 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2009-01-13 02:52:22 -05:00
|
|
|
!if "$(ARCH)" == "x64" || "$(ARCH)" == "ia64"
|
|
|
|
STACK = 0x400000
|
|
|
|
!else
|
2007-02-14 08:13:52 -05:00
|
|
|
STACK = 0x200000
|
* include/ruby/intern.h, thread.c, win32/Makefile.sub (rb_fdset_t,
rb_fd_init, rb_fd_term, rb_fd_zero, rb_fd_set, rb_fd_clr, rb_fd_isset,
rb_fd_select, rb_fd_ptr, rb_fd_max, HAVE_RB_FD_INIT): new type,
functions, and macros for Windows.
* win32/win32.c (extract_fd, rb_w32_select): use rb_fdset_t to expand
fd_array if needed. [ruby-core:19946]
* win32/win32.c (copy_fd): new funcion for rb_w32_select().
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@21487 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2009-01-13 02:52:22 -05:00
|
|
|
!endif
|
2008-01-08 06:02:10 -05:00
|
|
|
!if defined(STACK_COMMIT)
|
|
|
|
STACK = $(STACK),$(STACK_COMMIT)
|
|
|
|
!endif
|
2002-03-20 06:21:19 -05:00
|
|
|
!endif
|
2000-08-03 05:55:54 -04:00
|
|
|
ORGLIBPATH = $(LIB)
|
|
|
|
|
|
|
|
#### End of system configuration section. ####
|
|
|
|
|
2002-11-14 08:51:19 -05:00
|
|
|
LIBRUBY_A = $(RUBY_SO_NAME)-static.lib
|
2000-08-03 05:55:54 -04:00
|
|
|
LIBRUBY_SO = $(RUBY_SO_NAME).dll
|
|
|
|
LIBRUBY = $(RUBY_SO_NAME).lib
|
|
|
|
LIBRUBYARG = $(LIBRUBY)
|
2007-02-27 20:33:57 -05:00
|
|
|
THREAD_MODEL = win32
|
2000-08-03 05:55:54 -04:00
|
|
|
|
2008-01-08 06:02:10 -05:00
|
|
|
!if $(CROSS_COMPILING)
|
|
|
|
PREP = fake.rb
|
|
|
|
!else
|
2004-03-04 08:50:48 -05:00
|
|
|
PREP = miniruby$(EXEEXT)
|
2008-01-08 06:02:10 -05:00
|
|
|
!endif
|
2004-03-04 08:50:48 -05:00
|
|
|
|
2004-01-18 23:10:53 -05:00
|
|
|
!if !defined(EXTSTATIC)
|
|
|
|
EXTSTATIC =
|
|
|
|
!endif
|
|
|
|
|
2004-03-21 18:21:31 -05:00
|
|
|
OBJEXT = obj
|
2007-02-02 13:23:07 -05:00
|
|
|
ASMEXT = asm
|
2004-03-21 18:21:31 -05:00
|
|
|
|
2006-09-19 20:54:45 -04:00
|
|
|
INSTALLED_LIST= .installed.list
|
|
|
|
|
2009-02-24 05:01:08 -05:00
|
|
|
MKMAIN_CMD = mkmain.bat
|
|
|
|
|
2009-03-14 20:17:21 -04:00
|
|
|
SRC_FILE = $(<:\=/)
|
|
|
|
|
2008-01-08 06:02:10 -05:00
|
|
|
!if !defined(WINMAINOBJ)
|
2004-03-21 18:21:31 -05:00
|
|
|
WINMAINOBJ = winmain.$(OBJEXT)
|
2008-01-08 06:02:10 -05:00
|
|
|
!endif
|
2009-03-04 21:27:20 -05:00
|
|
|
ARCHMINIOBJS = dmydln.$(OBJEXT) miniruby.res
|
2008-02-06 21:14:54 -05:00
|
|
|
LIBOBJS = $(MISSING) $(LIBOBJS)
|
2008-01-08 06:02:10 -05:00
|
|
|
|
|
|
|
!ifndef COMMON_LIBS
|
|
|
|
COMMON_LIBS = m
|
|
|
|
!endif
|
|
|
|
!ifndef COMMON_MACROS
|
|
|
|
COMMON_MACROS = WIN32_LEAN_AND_MEAN WIN32
|
|
|
|
!endif
|
|
|
|
!ifndef COMMON_HEADERS
|
2008-06-06 08:52:30 -04:00
|
|
|
COMMON_HEADERS = winsock2.h ws2tcpip.h windows.h
|
2008-01-08 06:02:10 -05:00
|
|
|
!endif
|
2004-03-21 18:21:31 -05:00
|
|
|
|
2007-06-09 23:06:15 -04:00
|
|
|
arch_hdrdir = $(EXTOUT)/include/$(arch)
|
|
|
|
hdrdir = $(srcdir)/include
|
2008-01-08 06:02:10 -05:00
|
|
|
VPATH = $(arch_hdrdir)/ruby;$(hdrdir)/ruby;$(srcdir);$(srcdir)/enc;$(srcdir)/missing;$(win_srcdir)
|
2007-06-09 23:06:15 -04:00
|
|
|
|
2009-01-16 03:33:02 -05:00
|
|
|
!if exist($(srcdir)/.svn)
|
|
|
|
VCS = svn
|
|
|
|
VCSUP = $(VCS) up $(SVNUPOPTIONS)
|
|
|
|
!else if exist($(srcdir)/.git/svn)
|
|
|
|
VCS = git svn
|
2009-01-17 05:40:51 -05:00
|
|
|
VCSUP = $(VCS) rebase $(GITSVNREBASEOPTIONS)
|
2009-01-16 03:33:02 -05:00
|
|
|
!else if exist($(srcdir)/.git)
|
|
|
|
VCS = git
|
2009-01-17 05:40:51 -05:00
|
|
|
VCSUP = $(VCS) pull $(GITPULLOPTIONS)
|
2009-01-16 03:33:02 -05:00
|
|
|
!endif
|
2010-10-25 23:47:15 -04:00
|
|
|
ruby_pc = $(RUBY_BASE_NAME)-$(MAJOR).$(MINOR).pc
|
2009-01-16 03:33:02 -05:00
|
|
|
|
2010-11-13 02:38:01 -05:00
|
|
|
MESSAGE_BEGIN = @for %I in (
|
|
|
|
MESSAGE_END = ) do @echo.%~I
|
2010-11-12 06:52:45 -05:00
|
|
|
|
2008-01-08 06:02:10 -05:00
|
|
|
all: $(srcdir)/win32/Makefile.sub $(win_srcdir)/Makefile.sub $(srcdir)/common.mk
|
2004-03-21 18:21:31 -05:00
|
|
|
|
2000-08-03 05:55:54 -04:00
|
|
|
ruby: $(PROGRAM)
|
|
|
|
rubyw: $(WPROGRAM)
|
2010-11-18 09:56:34 -05:00
|
|
|
stub: $(STUBPROGRAM)
|
|
|
|
|
|
|
|
!ifdef SCRIPTPROGRAMS
|
|
|
|
!else if [echo>scriptbin.mk SCRIPTPROGRAMS = \]
|
|
|
|
!else if [for %I in ($(srcdir:/=\)\bin\*) do @echo>>scriptbin.mk %~nI.exe \]
|
|
|
|
!else if [echo.>>scriptbin.mk]
|
|
|
|
!else if [echo.>>scriptbin.mk]
|
|
|
|
!else
|
|
|
|
!include scriptbin.mk
|
|
|
|
!endif
|
|
|
|
!if [for %I in ($(srcdir:/=\)\bin\*) do @for %J in (\
|
|
|
|
"%~nI.exe: $$(srcdir)/bin/%~nI" \
|
2010-11-29 08:53:16 -05:00
|
|
|
" @echo generating $$(@)" \
|
|
|
|
" @copy /b $$(STUBPROGRAM) +<< +$$(srcdir:/=\)\bin\%~nI $$(@) > nul" \
|
2010-11-18 09:56:34 -05:00
|
|
|
"" "<<" "" \
|
|
|
|
) do @echo.%~J>>scriptbin.mk]
|
|
|
|
!else
|
|
|
|
! include scriptbin.mk
|
|
|
|
! if [del scriptbin.mk > nul]
|
|
|
|
! endif
|
|
|
|
!endif
|
|
|
|
|
|
|
|
scriptbin: $(SCRIPTPROGRAMS)
|
|
|
|
|
|
|
|
$(SCRIPTPROGRAMS): $(STUBPROGRAM)
|
2004-03-25 00:01:15 -05:00
|
|
|
|
2009-01-16 03:33:02 -05:00
|
|
|
up::
|
2009-03-06 04:37:31 -05:00
|
|
|
@cd "$(srcdir:/=\)" && set LC_TIME=C && $(VCSUP)
|
2009-01-16 03:33:02 -05:00
|
|
|
|
2004-03-25 00:01:15 -05:00
|
|
|
!include $(srcdir)/common.mk
|
2000-08-03 05:55:54 -04:00
|
|
|
|
2009-03-06 04:46:52 -05:00
|
|
|
update-mspec:
|
|
|
|
!if exist($(srcdir)/spec/mspec)
|
|
|
|
@echo updating mspec ...
|
|
|
|
@cd $(srcdir:/=\)\spec\mspec && git pull
|
|
|
|
!else
|
|
|
|
@echo retrieving mspec ...
|
|
|
|
@cd $(srcdir:/=\) && git clone $(MSPEC_GIT_URL) spec/mspec
|
|
|
|
!endif
|
|
|
|
|
|
|
|
update-rubyspec: update-mspec
|
|
|
|
!if exist($(srcdir)/spec/rubyspec)
|
|
|
|
@echo updating rubyspec ...
|
|
|
|
@cd $(srcdir:/=\)\spec\rubyspec && git pull
|
|
|
|
!else
|
|
|
|
@echo retrieving rubyspec ...
|
|
|
|
@cd $(srcdir:/=\) && git clone $(RUBYSPEC_GIT_URL) spec/rubyspec
|
|
|
|
!endif
|
2010-08-15 23:29:08 -04:00
|
|
|
|
|
|
|
test-rubyspec-precheck:
|
|
|
|
!if !exist($(srcdir)/spec/rubyspec/.)
|
|
|
|
@echo No rubyspec here. make update-rubyspec first.
|
|
|
|
@exit 1
|
|
|
|
!endif
|
2009-03-06 04:46:52 -05:00
|
|
|
|
2010-11-29 08:53:16 -05:00
|
|
|
$(MKFILES): $(win_srcdir)/Makefile.sub $(win_srcdir)/configure.bat $(win_srcdir)/setup.mak $(win_srcdir)/enc-setup.mak $(srcdir)/enc/Makefile.in
|
2008-01-08 06:02:10 -05:00
|
|
|
$(COMSPEC) /C $(win_srcdir:/=\)\configure.bat $(configure_args)
|
2005-10-14 10:10:08 -04:00
|
|
|
@echo $(MKFILES) should be updated, re-run $(MAKE).
|
2008-01-15 04:05:23 -05:00
|
|
|
@exit 1
|
2005-10-14 10:10:08 -04:00
|
|
|
|
2007-06-09 23:06:15 -04:00
|
|
|
RUBY_CONFIG_H = $(arch_hdrdir)/ruby/config.h
|
2005-03-03 04:38:40 -05:00
|
|
|
CONFIG_H = ./.config.h.time
|
2002-03-20 06:21:19 -05:00
|
|
|
|
2005-03-03 04:38:40 -05:00
|
|
|
config: config.status
|
|
|
|
|
|
|
|
config.status: $(CONFIG_H)
|
|
|
|
|
2008-01-08 06:02:10 -05:00
|
|
|
BANG = !
|
|
|
|
|
|
|
|
!if exist(config.h)
|
|
|
|
!include config.h
|
|
|
|
!endif
|
|
|
|
|
2010-07-26 05:18:21 -04:00
|
|
|
guard = INCLUDE_RUBY_CONFIG_H
|
|
|
|
|
2008-01-08 06:02:10 -05:00
|
|
|
$(CONFIG_H): $(MKFILES) $(srcdir)/win32/Makefile.sub $(win_srcdir)/Makefile.sub
|
2005-03-03 04:38:40 -05:00
|
|
|
@echo Creating config.h
|
2007-06-09 23:06:15 -04:00
|
|
|
!if !exist("$(arch_hdrdir)")
|
|
|
|
@md $(arch_hdrdir:/=\)
|
|
|
|
!endif
|
|
|
|
!if !exist("$(arch_hdrdir)/ruby")
|
|
|
|
@md $(arch_hdrdir:/=\)\ruby
|
|
|
|
!endif
|
2008-01-25 04:27:30 -05:00
|
|
|
@$(IFCHANGE) $(RUBY_CONFIG_H:/=\) <<
|
2010-07-26 05:18:21 -04:00
|
|
|
#ifndef $(guard)
|
|
|
|
#define $(guard) 1
|
2005-12-30 04:23:15 -05:00
|
|
|
#if _MSC_VER != $(MSC_VER)
|
2007-06-09 23:06:15 -04:00
|
|
|
#error MSC version unmatch: _MSC_VER: $(MSC_VER) is expected.
|
2005-12-30 04:23:15 -05:00
|
|
|
#endif
|
2009-03-04 09:29:58 -05:00
|
|
|
!if "$(ENABLE_WIN95)" == "yes" && "$(MACHINE)" == "x86"
|
2009-03-04 05:35:28 -05:00
|
|
|
#define WIN95 1
|
|
|
|
!endif
|
2009-10-01 01:19:19 -04:00
|
|
|
#define RT_VER $(RT_VER)
|
2002-05-14 05:22:22 -04:00
|
|
|
#define STDC_HEADERS 1
|
|
|
|
#define HAVE_SYS_TYPES_H 1
|
|
|
|
#define HAVE_SYS_STAT_H 1
|
|
|
|
#define HAVE_STDLIB_H 1
|
2010-08-01 04:27:34 -04:00
|
|
|
#define HAVE_STDDEF_H 1
|
2002-05-14 05:22:22 -04:00
|
|
|
#define HAVE_STRING_H 1
|
|
|
|
#define HAVE_MEMORY_H 1
|
2006-02-13 23:39:32 -05:00
|
|
|
!if $(MSC_VER) >= 1400
|
|
|
|
#define HAVE_LONG_LONG 1
|
|
|
|
!endif
|
2002-05-14 05:22:22 -04:00
|
|
|
#define HAVE_OFF_T 1
|
|
|
|
#define SIZEOF_INT 4
|
|
|
|
#define SIZEOF_SHORT 2
|
|
|
|
#define SIZEOF_LONG 4
|
2006-02-13 21:48:08 -05:00
|
|
|
!if $(MSC_VER) >= 1400
|
|
|
|
#define SIZEOF_LONG_LONG 8
|
|
|
|
!else
|
2002-05-14 05:22:22 -04:00
|
|
|
#define SIZEOF_LONG_LONG 0
|
2006-02-13 21:48:08 -05:00
|
|
|
!endif
|
2002-05-14 05:22:22 -04:00
|
|
|
#define SIZEOF___INT64 8
|
2006-08-12 02:56:09 -04:00
|
|
|
#define _INTEGRAL_MAX_BITS 64
|
2008-01-08 06:02:10 -05:00
|
|
|
!if $(LARGEFILE_SUPPORT)
|
2006-08-12 02:56:09 -04:00
|
|
|
#define SIZEOF_OFF_T 8
|
2008-01-08 06:02:10 -05:00
|
|
|
!else
|
|
|
|
#define SIZEOF_OFF_T 4
|
|
|
|
!endif
|
2007-06-27 07:47:53 -04:00
|
|
|
!if "$(ARCH)" == "x64" || "$(ARCH)" == "ia64"
|
|
|
|
#define SIZEOF_VOIDP 8
|
|
|
|
!else
|
2002-05-14 05:22:22 -04:00
|
|
|
#define SIZEOF_VOIDP 4
|
2007-06-27 07:47:53 -04:00
|
|
|
!endif
|
2002-05-14 05:22:22 -04:00
|
|
|
#define SIZEOF_FLOAT 4
|
|
|
|
#define SIZEOF_DOUBLE 8
|
2009-10-01 01:19:19 -04:00
|
|
|
!if $(RT_VER) >= 80
|
2006-02-13 21:48:08 -05:00
|
|
|
#define SIZEOF_TIME_T 8
|
2009-03-10 15:47:46 -04:00
|
|
|
#define TIMET2NUM(v) LL2NUM(v)
|
|
|
|
#define NUM2TIMET(v) NUM2LL(v)
|
2006-02-13 21:48:08 -05:00
|
|
|
!else
|
2004-04-06 21:43:27 -04:00
|
|
|
#define SIZEOF_TIME_T 4
|
2009-03-10 15:47:46 -04:00
|
|
|
#define TIMET2NUM(v) LONG2NUM(v)
|
|
|
|
#define NUM2TIMET(v) NUM2LONG(v)
|
2006-02-13 21:48:08 -05:00
|
|
|
!endif
|
2008-07-12 16:39:02 -04:00
|
|
|
#define SIZEOF_RLIM_T 0
|
|
|
|
!if "$(ARCH)" == "x64" || "$(ARCH)" == "ia64"
|
|
|
|
#define SIZEOF_SIZE_T 8
|
|
|
|
#define SIZEOF_PTRDIFF_T 8
|
2009-01-15 22:18:09 -05:00
|
|
|
#define SIZEOF_INTPTR_T 8
|
|
|
|
#define SIZEOF_UINTPTR_T 8
|
2008-07-12 16:39:02 -04:00
|
|
|
!else
|
|
|
|
#define SIZEOF_SIZE_T 4
|
|
|
|
#define SIZEOF_PTRDIFF_T 4
|
2009-01-15 22:18:09 -05:00
|
|
|
#define SIZEOF_INTPTR_T 4
|
|
|
|
#define SIZEOF_UINTPTR_T 4
|
2008-07-12 16:39:02 -04:00
|
|
|
!endif
|
2008-09-08 05:09:41 -04:00
|
|
|
!if $(MSC_VER) < 1400
|
|
|
|
#define SIZE_MAX UINT_MAX
|
|
|
|
!endif
|
2002-05-14 05:22:22 -04:00
|
|
|
#define HAVE_PROTOTYPES 1
|
|
|
|
#define TOKEN_PASTE(x,y) x##y
|
|
|
|
#define HAVE_STDARG_PROTOTYPES 1
|
2005-08-03 11:27:13 -04:00
|
|
|
!if $(MSC_VER) > 1100
|
2002-05-14 05:22:22 -04:00
|
|
|
#define NORETURN(x) __declspec(noreturn) x
|
2005-08-03 11:27:13 -04:00
|
|
|
!endif
|
|
|
|
!if $(MSC_VER) >= 1300
|
2005-04-29 22:59:44 -04:00
|
|
|
#define DEPRECATED(x) __declspec(deprecated) x
|
|
|
|
#define NOINLINE(x) __declspec(noinline) x
|
2005-08-03 11:27:13 -04:00
|
|
|
!endif
|
2006-07-07 01:08:05 -04:00
|
|
|
#define FUNC_STDCALL(x) __stdcall x
|
|
|
|
#define FUNC_CDECL(x) __cdecl x
|
2007-06-28 09:31:08 -04:00
|
|
|
#define FUNC_FASTCALL(x) __fastcall x
|
2005-10-25 13:00:03 -04:00
|
|
|
#define RUBY_EXTERN extern __declspec(dllimport)
|
2002-05-14 05:22:22 -04:00
|
|
|
#define HAVE_DECL_SYS_NERR 1
|
|
|
|
#define HAVE_LIMITS_H 1
|
|
|
|
#define HAVE_FCNTL_H 1
|
|
|
|
#define HAVE_SYS_UTIME_H 1
|
2004-02-14 09:59:19 -05:00
|
|
|
#define HAVE_FLOAT_H 1
|
2005-05-16 09:22:09 -04:00
|
|
|
#define rb_pid_t int
|
|
|
|
#define rb_gid_t int
|
|
|
|
#define rb_uid_t int
|
2002-05-14 05:22:22 -04:00
|
|
|
#define HAVE_STRUCT_STAT_ST_RDEV 1
|
|
|
|
#define HAVE_ST_RDEV 1
|
2011-10-29 08:08:47 -04:00
|
|
|
!if $(MSC_VER) >= 1600
|
|
|
|
#define HAVE_STDINT_H 1
|
|
|
|
!else
|
* configure.in (int8_t, uint8_t, int16_t, uint16_t int32_t,
uint32_t int64_t, uint64_t, int128_t, uint128_t,
intptr_t, uintptr_t): check if defined.
* win32/Makefile.sub: follow configure.in.
* ext/digest/defs.h: remove checks for uint8_t, uint32_t and uint64_t.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@15772 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2008-03-13 21:47:02 -04:00
|
|
|
#define int8_t signed char
|
|
|
|
#define uint8_t unsigned char
|
2011-10-29 08:08:47 -04:00
|
|
|
#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
|
2010-04-29 11:54:18 -04:00
|
|
|
#define INT8_MIN _I8_MIN
|
|
|
|
#define INT8_MAX _I8_MAX
|
|
|
|
#define UINT8_MAX _UI8_MAX
|
2011-10-29 08:08:47 -04:00
|
|
|
#define INT16_MIN _I16_MIN
|
|
|
|
#define INT16_MAX _I16_MAX
|
|
|
|
#define UINT16_MAX _UI16_MAX
|
|
|
|
#define INT32_MIN _I32_MIN
|
|
|
|
#define INT32_MAX _I32_MAX
|
|
|
|
#define UINT32_MAX _UI32_MAX
|
|
|
|
#define INT64_MIN _I64_MIN
|
|
|
|
#define INT64_MAX _I64_MAX
|
|
|
|
#define UINT64_MAX _UI64_MAX
|
|
|
|
!endif
|
|
|
|
#define HAVE_INT8_T 1
|
|
|
|
#define HAVE_UINT8_T 1
|
|
|
|
#define SIZEOF_INT8_T 1
|
|
|
|
#define SIZEOF_UINT8_T 1
|
* configure.in (int8_t, uint8_t, int16_t, uint16_t int32_t,
uint32_t int64_t, uint64_t, int128_t, uint128_t,
intptr_t, uintptr_t): check if defined.
* win32/Makefile.sub: follow configure.in.
* ext/digest/defs.h: remove checks for uint8_t, uint32_t and uint64_t.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@15772 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2008-03-13 21:47:02 -04:00
|
|
|
#define HAVE_INT16_T 1
|
|
|
|
#define HAVE_UINT16_T 1
|
2010-03-02 15:49:02 -05:00
|
|
|
#define SIZEOF_INT16_T 2
|
2010-04-29 11:54:18 -04:00
|
|
|
#define SIZEOF_UINT16_T 2
|
* configure.in (int8_t, uint8_t, int16_t, uint16_t int32_t,
uint32_t int64_t, uint64_t, int128_t, uint128_t,
intptr_t, uintptr_t): check if defined.
* win32/Makefile.sub: follow configure.in.
* ext/digest/defs.h: remove checks for uint8_t, uint32_t and uint64_t.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@15772 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2008-03-13 21:47:02 -04:00
|
|
|
#define HAVE_INT32_T 1
|
|
|
|
#define HAVE_UINT32_T 1
|
2010-03-02 15:49:02 -05:00
|
|
|
#define SIZEOF_INT32_T 4
|
2010-04-29 11:54:18 -04:00
|
|
|
#define SIZEOF_UINT32_T 4
|
2010-03-02 15:49:02 -05:00
|
|
|
#define HAVE_INT64_T 1
|
|
|
|
#define HAVE_UINT64_T 1
|
|
|
|
#define SIZEOF_INT64_T 8
|
2010-04-29 11:54:18 -04:00
|
|
|
#define SIZEOF_UINT64_T 8
|
* configure.in (int8_t, uint8_t, int16_t, uint16_t int32_t,
uint32_t int64_t, uint64_t, int128_t, uint128_t,
intptr_t, uintptr_t): check if defined.
* win32/Makefile.sub: follow configure.in.
* ext/digest/defs.h: remove checks for uint8_t, uint32_t and uint64_t.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@15772 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2008-03-13 21:47:02 -04:00
|
|
|
#define HAVE_INTPTR_T 1
|
|
|
|
#define HAVE_UINTPTR_T 1
|
2008-03-31 05:58:41 -04:00
|
|
|
#define HAVE_SSIZE_T 1
|
2008-03-31 20:42:06 -04:00
|
|
|
!if "$(ARCH)" == "x64" || "$(ARCH)" == "ia64"
|
2008-03-31 05:58:41 -04:00
|
|
|
#define ssize_t __int64
|
|
|
|
!else
|
|
|
|
#define ssize_t int
|
|
|
|
!endif
|
2010-11-11 10:30:24 -05:00
|
|
|
#define PRI_LL_PREFIX "I64"
|
|
|
|
#define PRI_PIDT_PREFIX PRI_INT_PREFIX
|
2002-05-14 05:22:22 -04:00
|
|
|
#define GETGROUPS_T int
|
|
|
|
#define RETSIGTYPE void
|
2009-03-10 15:47:46 -04:00
|
|
|
#define TYPEOF_TIMEVAL_TV_SEC long
|
2011-07-08 01:36:57 -04:00
|
|
|
#define GC_MARK_STACKFRAME_WORD 30
|
2002-05-14 05:22:22 -04:00
|
|
|
#define HAVE_ALLOCA 1
|
|
|
|
#define HAVE_DUP2 1
|
|
|
|
#define HAVE_MEMCMP 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
|
|
|
|
#define HAVE_FLOCK 1
|
2003-04-21 08:26:08 -04:00
|
|
|
#define HAVE_ISNAN 1
|
2002-05-14 05:22:22 -04:00
|
|
|
#define HAVE_FINITE 1
|
2004-02-14 09:59:19 -05:00
|
|
|
#define HAVE_HYPOT 1
|
2002-05-14 05:22:22 -04:00
|
|
|
#define HAVE_FMOD 1
|
|
|
|
#define HAVE_FREXP 1
|
|
|
|
#define HAVE_MODF 1
|
|
|
|
#define HAVE_WAITPID 1
|
2003-05-13 04:59:36 -04:00
|
|
|
#define HAVE_FSYNC 1
|
2004-02-14 09:59:19 -05:00
|
|
|
#define HAVE_GETCWD 1
|
2006-08-12 02:56:09 -04:00
|
|
|
#define HAVE_TRUNCATE 1
|
2008-02-14 20:27:48 -05:00
|
|
|
#define HAVE_FTRUNCATE 1
|
2006-08-12 02:56:09 -04:00
|
|
|
#define HAVE_FSEEKO 1
|
|
|
|
#define HAVE_FTELLO 1
|
2002-05-14 05:22:22 -04:00
|
|
|
#define HAVE_TIMES 1
|
2004-09-06 23:52:15 -04:00
|
|
|
#define HAVE_FCNTL 1
|
2004-01-21 11:09:40 -05:00
|
|
|
#define HAVE_LINK 1
|
2002-05-14 05:22:22 -04:00
|
|
|
#define HAVE__SETJMP 1
|
|
|
|
#define HAVE_TELLDIR 1
|
|
|
|
#define HAVE_SEEKDIR 1
|
|
|
|
#define HAVE_MKTIME 1
|
|
|
|
#define HAVE_COSH 1
|
|
|
|
#define HAVE_SINH 1
|
|
|
|
#define HAVE_TANH 1
|
2010-03-02 16:19:33 -05:00
|
|
|
#define HAVE_SIGNBIT 1
|
2002-05-14 05:22:22 -04:00
|
|
|
#define HAVE_TZNAME 1
|
|
|
|
#define HAVE_DAYLIGHT 1
|
|
|
|
#define SETPGRP_VOID 1
|
|
|
|
#define RSHIFT(x,y) ((x)>>(int)y)
|
* include/ruby/intern.h, thread.c, win32/Makefile.sub (rb_fdset_t,
rb_fd_init, rb_fd_term, rb_fd_zero, rb_fd_set, rb_fd_clr, rb_fd_isset,
rb_fd_select, rb_fd_ptr, rb_fd_max, HAVE_RB_FD_INIT): new type,
functions, and macros for Windows.
* win32/win32.c (extract_fd, rb_w32_select): use rb_fdset_t to expand
fd_array if needed. [ruby-core:19946]
* win32/win32.c (copy_fd): new funcion for rb_w32_select().
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@21487 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2009-01-13 02:52:22 -05:00
|
|
|
#define HAVE_RB_FD_INIT 1
|
2008-03-31 20:42:06 -04:00
|
|
|
#define RUBY_SETJMP(env) _setjmp(env)
|
|
|
|
#define RUBY_LONGJMP(env,val) longjmp(env,val)
|
|
|
|
#define RUBY_JMP_BUF jmp_buf
|
2004-02-14 09:59:19 -05:00
|
|
|
#define inline __inline
|
|
|
|
#define NEED_IO_SEEK_BETWEEN_RW 1
|
2009-03-04 05:35:28 -05:00
|
|
|
!if "$(MACHINE)" == "x86" || "$(ARCH)" == "x64" || "$(ARCH)" == "ia64"
|
2004-02-14 09:59:19 -05:00
|
|
|
#define STACK_GROW_DIRECTION -1
|
2008-01-08 06:02:10 -05:00
|
|
|
!endif
|
2008-12-15 05:08:48 -05:00
|
|
|
#define CANONICALIZATION_FOR_MATHN 1
|
2002-05-14 05:22:22 -04:00
|
|
|
#define DEFAULT_KCODE KCODE_NONE
|
2010-06-26 00:07:20 -04:00
|
|
|
!if "$(ENABLE_DEBUG_ENV)" == "yes"
|
|
|
|
#define RUBY_DEBUG_ENV 1
|
|
|
|
!endif
|
2009-02-19 00:48:14 -05:00
|
|
|
#define LOAD_RELATIVE 1
|
2002-05-14 05:22:22 -04:00
|
|
|
#define DLEXT ".so"
|
2009-11-30 02:54:26 -05:00
|
|
|
#define EXECUTABLE_EXTS $(EXECUTABLE_EXTS)
|
2009-04-01 18:42:29 -04:00
|
|
|
#define RUBY_LIB_VERSION_STYLE 3 /* full */
|
2009-05-07 21:14:14 -04:00
|
|
|
#define RUBY_LIB_PREFIX "/lib/$(RUBY_BASE_NAME)"
|
2007-06-09 23:06:15 -04:00
|
|
|
#define RUBY_PLATFORM "$(arch)"
|
2009-10-26 14:45:34 -04:00
|
|
|
#define RUBY_SITEARCH "$(sitearch)"
|
2009-03-17 00:48:03 -04:00
|
|
|
#define RUBY_COREDLL "$(RT)"
|
2008-01-08 06:02:10 -05:00
|
|
|
#define LIBRUBY_SO "$(LIBRUBY_SO)"
|
|
|
|
#if 0
|
2008-07-11 09:10:29 -04:00
|
|
|
$(BANG)if "$(RUBY_SO_NAME)"!="$$(RUBY_SO_NAME)" || "$(ARCH)-$(PLATFORM)"!="$$(ARCH)-$$(PLATFORM)"
|
2008-01-08 06:02:10 -05:00
|
|
|
config.h: nul
|
|
|
|
$(BANG)endif
|
|
|
|
#endif
|
2010-07-26 05:18:21 -04:00
|
|
|
#endif /* $(guard) */
|
2005-03-03 04:38:40 -05:00
|
|
|
<<
|
|
|
|
@exit > $(@:/=\)
|
|
|
|
|
2007-06-09 23:06:15 -04:00
|
|
|
#!if exist($(RUBY_CONFIG_H))
|
2005-03-03 04:38:40 -05:00
|
|
|
#! if exist(config_h.bak)
|
2007-06-09 23:06:15 -04:00
|
|
|
# @del $(RUBY_CONFIG_H:.h=_h).bak
|
2005-03-03 04:38:40 -05:00
|
|
|
#! endif
|
2007-06-09 23:06:15 -04:00
|
|
|
# @copy $(RUBY_CONFIG_H) $(RUBY_CONFIG_H:.h=_h).bak
|
2005-03-03 04:38:40 -05:00
|
|
|
#!endif
|
2007-06-09 23:06:15 -04:00
|
|
|
#!if exist($(RUBY_CONFIG_H))
|
2005-03-03 04:38:40 -05:00
|
|
|
# @echo NMAKE will abort if config.h is changed, then restart NMAKE.
|
2007-06-09 23:06:15 -04:00
|
|
|
# @fc.exe $(RUBY_CONFIG_H) $(RUBY_CONFIG_H:.h=_h).bak > nul
|
|
|
|
# @echo $(RUBY_CONFIG_H) unchanged.
|
|
|
|
# @del $(RUBY_CONFIG_H)
|
|
|
|
# @ren $(RUBY_CONFIG_H:.h=_h).bak $(RUBY_CONFIG_H)
|
2005-03-03 04:38:40 -05:00
|
|
|
#!endif
|
2002-03-20 06:21:19 -05:00
|
|
|
|
2010-01-29 00:21:55 -05:00
|
|
|
EXECUTABLE_EXTS = $(EXECUTABLE_EXTS:"=) # "
|
|
|
|
EXECUTABLE_EXTS = $(EXECUTABLE_EXTS:,= )
|
|
|
|
|
2008-01-08 06:02:10 -05:00
|
|
|
config.status: $(MKFILES) $(srcdir)/win32/Makefile.sub $(win_srcdir)/Makefile.sub $(srcdir)/common.mk
|
2005-03-03 04:38:40 -05:00
|
|
|
@echo Creating $@
|
|
|
|
@exit <<$@
|
2002-03-20 07:59:21 -05:00
|
|
|
# Generated automatically by Makefile.sub.
|
|
|
|
s,@SHELL@,$$(COMSPEC),;t t
|
2005-04-20 11:08:36 -04:00
|
|
|
s,@BUILD_FILE_SEPARATOR@,\,;t t
|
2004-03-23 00:32:01 -05:00
|
|
|
s,@PATH_SEPARATOR@,;,;t t
|
2002-03-20 07:59:21 -05:00
|
|
|
s,@CFLAGS@,$(CFLAGS),;t t
|
2010-12-06 18:00:47 -05:00
|
|
|
s,@WERRORFLAG@,$(WERRORFLAG),;t t
|
2007-12-19 14:16:32 -05:00
|
|
|
s,@DEFS@,$(DEFS),;t t
|
2002-03-20 07:59:21 -05:00
|
|
|
s,@CPPFLAGS@,$(CPPFLAGS),;t t
|
|
|
|
s,@CXXFLAGS@,$(CXXFLAGS),;t t
|
|
|
|
s,@FFLAGS@,$(FFLAGS),;t t
|
2009-03-09 23:27:54 -04:00
|
|
|
s,@LDFLAGS@,$(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 10:03:46 -04:00
|
|
|
s,@LIBS@,$(LIBS),;t t
|
2002-03-20 07:59:21 -05:00
|
|
|
s,@exec_prefix@,$${prefix},;t t
|
2003-12-28 12:25:31 -05:00
|
|
|
s,@prefix@,$(prefix),;t t
|
2010-12-16 05:55:11 -05:00
|
|
|
s,@program_transform_name@,s,.*,$(PROGRAM_PREFIX)&$(PROGRAM_SUFFIX),,;t t
|
2002-03-20 07:59:21 -05:00
|
|
|
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
|
2009-09-16 04:42:48 -04:00
|
|
|
s,@infodir@,$${datadir}/info,;t t
|
|
|
|
s,@mandir@,$${datadir}/man,;t t
|
|
|
|
s,@ridir@,$${datadir}/ri,;t t
|
|
|
|
s,@docdir@,$${datadir}/doc/$${RUBY_BASE_NAME},;t t
|
2008-07-11 09:10:29 -04:00
|
|
|
s,@build@,$(CPU)-pc-$(PLATFORM),;t t
|
|
|
|
s,@build_alias@,$(CPU)-$(PLATFORM),;t t
|
2002-03-20 07:59:21 -05:00
|
|
|
s,@build_cpu@,$(CPU),;t t
|
|
|
|
s,@build_vendor@,pc,;t t
|
2008-07-11 09:10:29 -04:00
|
|
|
s,@build_os@,$(PLATFORM),;t t
|
|
|
|
s,@host@,$(CPU)-pc-$(PLATFORM),;t t
|
|
|
|
s,@host_alias@,$(CPU)-$(PLATFORM),;t t
|
2002-03-20 07:59:21 -05:00
|
|
|
s,@host_cpu@,$(CPU),;t t
|
|
|
|
s,@host_vendor@,pc,;t t
|
2008-07-11 09:10:29 -04:00
|
|
|
s,@host_os@,$(PLATFORM),;t t
|
|
|
|
s,@target@,$(ARCH)-pc-$(PLATFORM),;t t
|
|
|
|
s,@target_alias@,$(ARCH)-$(PLATFORM),;t t
|
2002-03-20 07:59:21 -05:00
|
|
|
s,@target_cpu@,$(ARCH),;t t
|
|
|
|
s,@target_vendor@,pc,;t t
|
2008-07-11 09:10:29 -04:00
|
|
|
s,@target_os@,$(PLATFORM),;t t
|
2011-12-14 06:02:00 -05:00
|
|
|
s,@NULLCMD@,:,;t t
|
2002-03-28 04:59:49 -05:00
|
|
|
s,@CC@,$(CC),;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 10:03:46 -04:00
|
|
|
s,@CPP@,$(CPP),;t t
|
2005-04-20 17:45:43 -04:00
|
|
|
s,@CXX@,$$(CC),;t t
|
|
|
|
s,@LD@,$$(CC),;t t
|
2002-03-20 07:59:21 -05:00
|
|
|
s,@YACC@,$(YACC),;t t
|
2002-10-22 00:19:26 -04:00
|
|
|
s,@RANLIB@,,;t t
|
2002-09-10 04:24:11 -04:00
|
|
|
s,@AR@,$(AR),;t t
|
2002-10-22 00:19:26 -04:00
|
|
|
s,@ARFLAGS@,$(ARFLAGS),;t t
|
2002-03-20 07:59:21 -05:00
|
|
|
s,@LN_S@,$(LN_S),;t t
|
2007-12-23 21:56:33 -05:00
|
|
|
s,@SET_MAKE@,MFLAGS = -$$(MAKEFLAGS),;t t
|
2007-12-19 14:16:32 -05:00
|
|
|
s,@RM@,$$(COMSPEC) /C $$(top_srcdir:/=\)\win32\rm.bat,;t t
|
2010-12-26 08:46:02 -05:00
|
|
|
s,@RMDIR@,$$(COMSPEC) /C $$(top_srcdir:/=\)\win32\rmdirs.bat,:t t
|
2009-01-24 21:06:29 -05:00
|
|
|
s,@RMDIRS@,$$(COMSPEC) /C $$(top_srcdir:/=\)\win32\rmdirs.bat,;t t
|
|
|
|
s,@RMALL@,$$(COMSPEC) /C rmdir /s /q,;t t
|
2008-01-08 06:02:10 -05:00
|
|
|
s,@LIBOBJS@,$(LIBOBJS),;t t
|
2002-03-20 07:59:21 -05:00
|
|
|
s,@ALLOCA@,$(ALLOCA),;t t
|
|
|
|
s,@DEFAULT_KCODE@,$(DEFAULT_KCODE),;t t
|
|
|
|
s,@EXEEXT@,.exe,;t t
|
2009-11-30 02:54:26 -05:00
|
|
|
s,@EXECUTABLE_EXTS@,$(EXECUTABLE_EXTS),;t t
|
2004-03-21 18:21:31 -05:00
|
|
|
s,@OBJEXT@,$(OBJEXT),;t t
|
2003-11-30 19:30:37 -05:00
|
|
|
s,@XCFLAGS@,$(XCFLAGS),;t t
|
2002-03-20 07:59:21 -05:00
|
|
|
s,@XLDFLAGS@,$(XLDFLAGS),;t t
|
2007-12-23 22:49:56 -05:00
|
|
|
s,@DLDFLAGS@,$(DLDFLAGS) $$(LIBPATH),;t t
|
2003-11-30 19:30:37 -05:00
|
|
|
s,@ARCH_FLAG@,$(ARCH_FLAG),;t t
|
2002-03-20 07:59:21 -05:00
|
|
|
s,@STATIC@,$(STATIC),;t t
|
2003-03-04 09:12:19 -05: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 10:03:46 -04:00
|
|
|
s,@LDSHARED@,$(LDSHARED),;t t
|
2002-03-20 07:59:21 -05: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 10:03:46 -04:00
|
|
|
s,@LIBEXT@,lib,;t t
|
2002-03-20 07:59:21 -05:00
|
|
|
s,@STRIP@,$(STRIP),;t t
|
|
|
|
s,@EXTSTATIC@,$(EXTSTATIC),;t t
|
|
|
|
s,@setup@,Setup,;t t
|
2002-09-08 05:08:15 -04:00
|
|
|
s,@MINIRUBY@,$(MINIRUBY),;t t
|
2005-03-03 04:38:40 -05: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
|
2002-03-20 07:59:21 -05:00
|
|
|
s,@LIBRUBY_LDSHARED@,$(LIBRUBY_LDSHARED),;t t
|
|
|
|
s,@LIBRUBY_DLDFLAGS@,$(LIBRUBY_DLDFLAGS),;t t
|
2009-05-07 21:14:14 -04:00
|
|
|
s,@RUBY_BASE_NAME@,$(RUBY_BASE_NAME),;t t
|
2002-03-20 07:59:21 -05: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 10:03:46 -04:00
|
|
|
s,@rubyw_install_name@,$(RUBYW_INSTALL_NAME),;t t
|
|
|
|
s,@RUBYW_INSTALL_NAME@,$(RUBYW_INSTALL_NAME),;t t
|
2002-03-20 07:59:21 -05:00
|
|
|
s,@RUBY_SO_NAME@,$(RUBY_SO_NAME),;t t
|
2002-11-14 08:51:19 -05:00
|
|
|
s,@LIBRUBY_A@,$$(RUBY_SO_NAME)-static.lib,;t t
|
2002-03-20 07:59:21 -05: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 08:51:19 -05:00
|
|
|
s,@LIBRUBYARG@,$$(LIBRUBYARG_SHARED),;t t
|
|
|
|
s,@LIBRUBYARG_STATIC@,$$(LIBRUBY_A),;t t
|
|
|
|
s,@LIBRUBYARG_SHARED@,$$(LIBRUBY),;t t
|
2002-03-20 07:59:21 -05:00
|
|
|
s,@SOLIBS@,$(SOLIBS),;t t
|
|
|
|
s,@DLDLIBS@,$(DLDLIBS),;t t
|
|
|
|
s,@ENABLE_SHARED@,yes,;t t
|
2008-08-06 00:55:39 -04:00
|
|
|
s,@BASERUBY@,$(BASERUBY),;t t
|
2004-03-21 18:21:31 -05:00
|
|
|
s,@OUTFLAG@,$(OUTFLAG),;t t
|
2007-12-23 22:49:56 -05:00
|
|
|
s,@COUTFLAG@,$(COUTFLAG),;t t
|
2002-09-15 08:57:21 -04:00
|
|
|
s,@CPPOUTFILE@,-P,;t t
|
2009-07-15 03:30:42 -04:00
|
|
|
s,@LIBPATHFLAG@, -libpath:%s,;t t
|
2003-10-30 22:58:21 -05: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 10:03:46 -04:00
|
|
|
s,@LIBARG@,%s.lib,;t t
|
2009-03-10 00:45:51 -04:00
|
|
|
s,@LINK_SO@,$$(LDSHARED) -Fe$$(@) $$(OBJS) $$(LIBS) $$(LOCAL_LIBS) -link $$(DLDFLAGS) -implib:$$(*F:.so=)-$$(arch).lib -pdb:$$(*F:.so=)-$$(arch).pdb -def:$$(DEFFILE),;t t
|
2006-05-24 12:52:00 -04:00
|
|
|
!if $(MSC_VER) >= 1400
|
2009-10-01 01:19:19 -04:00
|
|
|
s,@LINK_SO@,@if exist $$(@).manifest $$(RUBY) -run -e wait_writable -- -n 10 $$(@),;t t
|
|
|
|
s,@LINK_SO@,@if exist $$(@).manifest $(MANIFESTTOOL) -manifest $$(@).manifest -outputresource:$$(@);2,;t t
|
|
|
|
s,@LINK_SO@,@if exist $$(@).manifest $$(RM) $$(@:/=\).manifest,;t t
|
2006-05-24 12:52:00 -04:00
|
|
|
!endif
|
2007-12-23 22:49:56 -05:00
|
|
|
s,@COMPILE_C@,$$(CC) $$(INCFLAGS) $$(CFLAGS) $$(CPPFLAGS) $$(COUTFLAG)$$(@) -c -Tc$$(<:\=/),;t t
|
|
|
|
s,@COMPILE_CXX@,$$(CXX) $$(INCFLAGS) $$(CXXFLAGS) $$(CPPFLAGS) $$(COUTFLAG)$$(@) -c -Tp$$(<:\=/),;t t
|
2008-08-07 01:16:27 -04:00
|
|
|
s,@COMPILE_RULES@,{$$(hdrdir)}.%s.%s: {$$(topdir)}.%s.%s: {$$(srcdir)}.%s.%s: .%s.%s:,;t t
|
2007-06-09 23:06:15 -04:00
|
|
|
s,@RULE_SUBST@,{.;$$(VPATH)}%s,;t t
|
2002-10-22 00:19:26 -04:00
|
|
|
s,@TRY_LINK@,$$(CC) -Feconftest $$(INCFLAGS) -I$$(hdrdir) $$(CPPFLAGS) $$(CFLAGS) $$(src) $$(LOCAL_LIBS) $$(LIBS) -link $$(LDFLAGS) $$(LIBPATH) $$(XLDFLAGS),;t t
|
2008-01-08 06:02:10 -05:00
|
|
|
s,@COMMON_LIBS@,$(COMMON_LIBS),;t t
|
|
|
|
s,@COMMON_MACROS@,$(COMMON_MACROS),;t t
|
|
|
|
s,@COMMON_HEADERS@,$(COMMON_HEADERS),;t t
|
2008-08-07 01:16:27 -04:00
|
|
|
s,@cleanobjs@,$$*.exp $$*.lib $$*.pdb,;t t
|
2004-03-23 00:32:01 -05:00
|
|
|
s,@DISTCLEANFILES@,vc*.pdb,;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 10:03:46 -04:00
|
|
|
s,@EXPORT_PREFIX@, ,;t t
|
2008-07-11 09:10:29 -04:00
|
|
|
s,@arch@,$(ARCH)-$(PLATFORM),;t t
|
2002-08-23 04:18:19 -04:00
|
|
|
s,@sitearch@,$(ARCH)-$(RT),;t t
|
2008-07-15 09:34:49 -04:00
|
|
|
s,@ruby_version@,$(ruby_version),;t t
|
2009-05-07 21:14:14 -04:00
|
|
|
s,@rubylibprefix@,$${prefix}/lib/$${RUBY_BASE_NAME},;t t
|
|
|
|
s,@sitedir@,$${rubylibprefix}/site_ruby,;t t
|
|
|
|
s,@vendordir@,$${rubylibprefix}/vendor_ruby,;t t
|
|
|
|
s,@rubyhdrdir@,$$(includedir)/$${RUBY_BASE_NAME}-$$(ruby_version),;t t
|
2007-06-10 02:43:12 -04:00
|
|
|
s,@sitehdrdir@,$$(rubyhdrdir)/site_ruby,;t t
|
2007-11-04 10:26:21 -05:00
|
|
|
s,@vendorhdrdir@,$$(rubyhdrdir)/vendor_ruby,;t t
|
2002-03-20 07:59:21 -05:00
|
|
|
s,@configure_args@,--with-make-prog=nmake --enable-shared $(configure_args),;t t
|
|
|
|
s,@configure_input@,$$configure_input,;t t
|
|
|
|
s,@srcdir@,$(srcdir),;t t
|
|
|
|
s,@top_srcdir@,$(srcdir),;t t
|
2009-01-26 21:09:47 -05:00
|
|
|
s,@try_header@,try_compile,;t t
|
2010-10-25 23:47:15 -04:00
|
|
|
s,@ruby_pc@,$(ruby_pc),;t t
|
2007-12-25 08:57:19 -05:00
|
|
|
<<KEEP
|
2001-06-09 03:41:44 -04:00
|
|
|
|
2008-09-01 23:32:32 -04:00
|
|
|
miniruby: miniruby$(EXEEXT)
|
|
|
|
|
2004-03-21 18:21:31 -05:00
|
|
|
miniruby$(EXEEXT):
|
2009-11-19 03:04:11 -05:00
|
|
|
@echo $(LIBS)
|
2010-11-17 09:17:26 -05:00
|
|
|
$(ECHO) linking $(@:\=/)
|
2010-11-12 06:51:42 -05:00
|
|
|
$(Q) $(PURIFY) $(CC) $(MAINOBJ) $(MINIOBJS) $(COMMONOBJS) $(DMYEXT) $(LIBS) -Fe$@ -link $(LDFLAGS)
|
2009-01-26 21:03:54 -05:00
|
|
|
@$(RM) miniruby.lib miniruby.exp
|
2010-11-12 06:51:42 -05:00
|
|
|
$(Q) miniruby.exe -v
|
|
|
|
$(Q) $(LDSHARED_1)
|
|
|
|
$(Q) $(LDSHARED_2)
|
2000-08-03 05:55:54 -04:00
|
|
|
|
2009-03-04 21:27:20 -05:00
|
|
|
miniruby.rc:
|
|
|
|
@exit > $@
|
|
|
|
|
2008-01-08 06:02:10 -05:00
|
|
|
!if "$(PROGRAM)" != ""
|
|
|
|
$(PROGRAM): $(MAINOBJ) $(LIBRUBY_SO) $(RUBY_INSTALL_NAME).res
|
2010-11-17 09:17:26 -05:00
|
|
|
$(ECHO) linking $(@:\=/)
|
2010-11-12 06:51:42 -05:00
|
|
|
$(Q) $(PURIFY) $(CC) $(MAINOBJ) $(RUBY_INSTALL_NAME).res \
|
2009-03-10 00:45:51 -04:00
|
|
|
$(OUTFLAG)$@ $(LIBRUBYARG) -link $(LDFLAGS) $(XLDFLAGS)
|
2010-11-12 06:51:42 -05:00
|
|
|
$(Q) $(LDSHARED_0)
|
|
|
|
$(Q) $(LDSHARED_1)
|
|
|
|
$(Q) $(LDSHARED_2)
|
2008-01-08 06:02:10 -05:00
|
|
|
!endif
|
2000-08-03 05:55:54 -04:00
|
|
|
|
2008-01-08 06:02:10 -05:00
|
|
|
!if "$(WPROGRAM)" != ""
|
2004-03-23 00:32:01 -05:00
|
|
|
$(WPROGRAM): $(MAINOBJ) $(WINMAINOBJ) $(LIBRUBY_SO) $(RUBYW_INSTALL_NAME).res
|
2010-11-17 09:17:26 -05:00
|
|
|
$(ECHO) linking $(@:\=/)
|
2010-11-12 06:51:42 -05:00
|
|
|
$(Q) $(PURIFY) $(CC) $(MAINOBJ) $(WINMAINOBJ) \
|
2004-03-23 00:32:01 -05:00
|
|
|
$(RUBYW_INSTALL_NAME).res $(OUTFLAG)$@ $(LIBRUBYARG) \
|
2009-03-10 00:45:51 -04:00
|
|
|
-link $(LDFLAGS) $(XLDFLAGS) -subsystem:Windows
|
2010-11-12 06:51:42 -05:00
|
|
|
$(Q) $(LDSHARED_0)
|
|
|
|
$(Q) $(LDSHARED_1)
|
|
|
|
$(Q) $(LDSHARED_2)
|
2008-01-08 06:02:10 -05:00
|
|
|
!endif
|
2000-08-03 05:55:54 -04:00
|
|
|
|
2010-11-18 09:56:34 -05:00
|
|
|
!if "$(STUBPROGRAM)" != ""
|
2010-11-29 08:53:16 -05:00
|
|
|
$(STUBPROGRAM): stub.$(OBJEXT) $(LIBRUBY) $(LIBRUBY_SO) $(RUBY_INSTALL_NAME).res
|
2010-11-18 09:56:34 -05:00
|
|
|
$(ECHO) linking $(@:\=/)
|
|
|
|
$(Q) $(PURIFY) $(CC) stub.$(OBJEXT) $(RUBY_INSTALL_NAME).res \
|
|
|
|
$(OUTFLAG)$@ $(LIBRUBYARG) -link $(LDFLAGS) $(XLDFLAGS)
|
|
|
|
$(Q) $(LDSHARED_0)
|
|
|
|
$(Q) $(LDSHARED_1)
|
|
|
|
$(Q) $(LDSHARED_2)
|
|
|
|
!endif
|
|
|
|
|
2004-01-18 23:10:53 -05:00
|
|
|
$(LIBRUBY_A): $(OBJS) $(DMYEXT)
|
2010-11-17 09:17:26 -05:00
|
|
|
$(ECHO) linking static-library $(@:\=/)
|
2010-11-12 06:51:42 -05:00
|
|
|
$(Q) $(AR) $(ARFLAGS)$@ $(OBJS) $(DMYEXT)
|
2000-08-03 05:55:54 -04:00
|
|
|
|
|
|
|
$(LIBRUBY): $(RUBYDEF)
|
2010-11-17 09:17:26 -05:00
|
|
|
$(ECHO) linking import-library $(@:\=/)
|
2010-11-12 06:51:42 -05:00
|
|
|
$(Q) $(AR) $(ARFLAGS)$@ -def:$(RUBYDEF)
|
2000-08-03 05:55:54 -04:00
|
|
|
|
2004-03-23 00:32:01 -05:00
|
|
|
$(LIBRUBY_SO): $(LIBRUBY_A) $(DLDOBJS) $(RUBYDEF) $(RUBY_SO_NAME).res
|
2009-11-19 03:04:11 -05:00
|
|
|
@echo $(DLDOBJS)
|
2006-10-01 11:00:45 -04:00
|
|
|
@-$(PRE_LIBRUBY_UPDATE)
|
2010-11-17 09:17:26 -05:00
|
|
|
$(ECHO) linking shared-library $(@:\=/)
|
2010-11-12 06:51:42 -05:00
|
|
|
$(Q) $(LDSHARED) $(MAINOBJ) $(DLDOBJS) $(LIBRUBY_A) \
|
2009-03-10 00:45:51 -04:00
|
|
|
$(RUBY_SO_NAME).res $(LIBS) -Fe$@ -link $(LDFLAGS) \
|
2004-03-23 00:32:01 -05:00
|
|
|
$(LIBRUBY_DLDFLAGS)
|
2009-01-26 21:03:54 -05:00
|
|
|
@$(RM) dummy.lib dummy.exp
|
2010-11-12 06:51:42 -05:00
|
|
|
$(Q) $(LDSHARED_0)
|
|
|
|
$(Q) $(LDSHARED_1)
|
|
|
|
$(Q) $(LDSHARED_2)
|
2000-08-03 05:55:54 -04:00
|
|
|
|
2004-03-04 08:50:48 -05:00
|
|
|
$(RUBYDEF): $(LIBRUBY_A) $(PREP)
|
2010-11-17 09:17:26 -05:00
|
|
|
$(ECHO) generating $(@:\=/)
|
2010-11-17 04:38:38 -05:00
|
|
|
$(Q) $(MINIRUBY) $(srcdir)/win32/mkexports.rb \
|
2007-06-27 07:47:53 -04:00
|
|
|
-output=$@ -arch=$(ARCH) $(LIBRUBY_A)
|
* 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 10:03:46 -04:00
|
|
|
|
2008-01-08 06:02:10 -05:00
|
|
|
{$(win_srcdir)}.def.lib:
|
2010-11-17 04:38:38 -05:00
|
|
|
$(Q) $(AR) $(ARFLAGS)$@ -def:$<
|
2000-08-03 05:55:54 -04:00
|
|
|
|
2004-03-21 18:21:31 -05:00
|
|
|
clean-local::
|
2010-12-30 06:21:54 -05:00
|
|
|
$(Q)$(RM) $(WINMAINOBJ) ext\extinit.c ext\extinit.$(OBJEXT) ext\vc*.pdb miniruby.lib
|
|
|
|
$(Q)$(RM) $(RUBY_INSTALL_NAME).res $(RUBYW_INSTALL_NAME).res $(RUBY_SO_NAME).res
|
|
|
|
$(Q)$(RM) miniruby.rc $(RUBY_INSTALL_NAME).rc $(RUBYW_INSTALL_NAME).rc $(RUBY_SO_NAME).rc
|
|
|
|
$(Q)$(RM) *.map *.pdb *.ilk *.exp $(RUBYDEF) ext\ripper\y.output
|
2004-03-21 18:21:31 -05:00
|
|
|
|
|
|
|
distclean-local::
|
2010-12-30 06:21:54 -05:00
|
|
|
$(Q)$(RM) ext\config.cache $(RBCONFIG:/=\) $(CONFIG_H:/=\)
|
|
|
|
-$(Q)$(RM) $(INSTALLED_LIST:/=\) $(arch_hdrdir:/=\)\ruby\config.h
|
|
|
|
-$(Q)$(RMDIRS) $(arch_hdrdir:/=\)\ruby
|
2009-01-24 21:06:29 -05:00
|
|
|
|
2010-09-19 09:10:25 -04:00
|
|
|
clean-rdoc distclean-rdoc realclean-rdoc:
|
2010-12-30 06:21:54 -05:00
|
|
|
-$(Q)$(RMALL) $(RDOCOUT:/=\)
|
2010-09-19 09:10:25 -04:00
|
|
|
clean-capi distclean-capi realclean-capi:
|
2010-12-30 06:21:54 -05:00
|
|
|
-$(Q)$(RMALL) $(CAPIOUT:/=\)
|
2009-01-24 21:06:29 -05:00
|
|
|
|
2008-08-07 03:28:56 -04:00
|
|
|
clean-ext distclean-ext realclean-ext::
|
2009-01-24 22:03:00 -05:00
|
|
|
!if "$(EXTS)" != ""
|
2009-01-24 21:06:29 -05:00
|
|
|
@for %I in ($(EXTS)) \
|
|
|
|
!else
|
|
|
|
@for /R ext %I in (.) \
|
|
|
|
!endif
|
|
|
|
do @if exist %I\Makefile ( \
|
|
|
|
cd %I && ( \
|
2008-08-07 03:28:56 -04:00
|
|
|
echo $(@:-ext=)ing %~nI & \
|
|
|
|
$(MAKE) $(MFLAGS) $(@:-ext=) & \
|
2008-12-31 17:16:51 -05:00
|
|
|
cd %CD% & \
|
2009-01-24 21:06:29 -05:00
|
|
|
$(RMDIRS) %I \
|
|
|
|
) )
|
2008-08-07 03:28:56 -04:00
|
|
|
|
2008-12-31 17:16:51 -05:00
|
|
|
distclean-ext realclean-ext::
|
2010-12-30 06:21:54 -05:00
|
|
|
-$(Q)rmdir ext
|
2008-12-31 17:16:51 -05:00
|
|
|
|
2010-06-14 13:32:03 -04:00
|
|
|
clean-extout:
|
|
|
|
!if exist($(EXTOUT)/.)
|
2010-12-30 06:21:54 -05:00
|
|
|
-$(Q)$(RMDIRS) $(EXTOUT)
|
2010-06-14 13:32:03 -04:00
|
|
|
!endif
|
|
|
|
|
|
|
|
clean-enc distclean-enc realclean-enc:
|
|
|
|
!if exist($(ENC_MK))
|
|
|
|
@echo $(@:-enc=ing) encodings
|
2010-12-29 06:27:36 -05:00
|
|
|
@-$(MAKE) -f $(ENC_MK) $(MFLAGS) V=$(V) $(@:-enc=)
|
2010-06-14 13:32:03 -04:00
|
|
|
!endif
|
|
|
|
|
2010-10-07 21:52:37 -04:00
|
|
|
$(RCFILES): $(RBCONFIG) $(srcdir)/revision.h $(srcdir)/win32/resource.rb
|
* 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 10:03:46 -04:00
|
|
|
@$(MINIRUBY) $(srcdir)/win32/resource.rb \
|
2000-08-03 05:55:54 -04:00
|
|
|
-ruby_name=$(RUBY_INSTALL_NAME) \
|
|
|
|
-rubyw_name=$(RUBYW_INSTALL_NAME) \
|
2002-09-10 22:38:51 -04:00
|
|
|
-so_name=$(RUBY_SO_NAME) \
|
2008-01-08 06:02:10 -05:00
|
|
|
. $(icondirs) $(win_srcdir)
|
|
|
|
|
|
|
|
fake.rb: $(MKFILES)
|
|
|
|
@echo Creating <<$@
|
|
|
|
class Object
|
|
|
|
CROSS_COMPILING = RUBY_PLATFORM
|
|
|
|
remove_const :RUBY_PLATFORM
|
|
|
|
remove_const :RUBY_VERSION
|
|
|
|
RUBY_PLATFORM = "$(ARCH)"
|
|
|
|
RUBY_VERSION = "$(MAJOR).$(MINOR).$(TEENY)"
|
|
|
|
end
|
|
|
|
class File
|
|
|
|
remove_const :ALT_SEPARATOR
|
|
|
|
ALT_SEPARATOR = "\\"
|
|
|
|
end
|
|
|
|
<<KEEP
|
2000-08-03 05:55:54 -04:00
|
|
|
|
2010-10-25 23:47:15 -04:00
|
|
|
$(ruby_pc): $(RBCONFIG)
|
2010-10-29 22:33:59 -04:00
|
|
|
@$(MINIRUBY) -r./rbconfig -p \
|
|
|
|
-e 'STDOUT.binmode' \
|
2010-10-25 23:47:15 -04:00
|
|
|
-e '$$_.gsub!(/@([a-z_]\w*)@/i) {' \
|
2010-10-29 22:33:59 -04:00
|
|
|
-e '(RbConfig::MAKEFILE_CONFIG[$$1] or "").gsub(/\$$\((.+?)\)/, %Q[$${\\1}])' \
|
2010-10-25 23:47:15 -04:00
|
|
|
-e '}' \
|
|
|
|
$(srcdir)/template/ruby.pc.in > $@
|
|
|
|
|
2007-10-10 17:35:45 -04:00
|
|
|
{$(srcdir)/enc}.c.obj:
|
2010-11-11 10:31:59 -05:00
|
|
|
$(ECHO) compiling $(<:\=/)
|
2010-11-12 06:51:42 -05:00
|
|
|
$(Q) $(CC) $(CFLAGS) $(XCFLAGS) $(CPPFLAGS) $(COUTFLAG)$@ -c -Tc$(<:\=/)
|
2000-12-21 22:22:25 -05:00
|
|
|
{$(srcdir)/missing}.c.obj:
|
2010-11-11 10:31:59 -05:00
|
|
|
$(ECHO) compiling $(<:\=/)
|
2010-11-12 06:51:42 -05:00
|
|
|
$(Q) $(CC) $(CFLAGS) $(XCFLAGS) $(CPPFLAGS) $(COUTFLAG)$@ -c -Tc$(<:\=/)
|
2000-12-21 22:22:25 -05:00
|
|
|
{$(srcdir)/win32}.c.obj:
|
2010-11-11 10:31:59 -05:00
|
|
|
$(ECHO) compiling $(<:\=/)
|
2010-11-12 06:51:42 -05:00
|
|
|
$(Q) $(CC) $(CFLAGS) $(XCFLAGS) $(CPPFLAGS) $(COUTFLAG)$@ -c -Tc$(<:\=/)
|
2008-01-08 06:02:10 -05:00
|
|
|
{$(win_srcdir)}.c.obj:
|
2010-11-11 10:31:59 -05:00
|
|
|
$(ECHO) compiling $(<:\=/)
|
2010-11-12 06:51:42 -05:00
|
|
|
$(Q) $(CC) $(CFLAGS) $(XCFLAGS) $(CPPFLAGS) $(COUTFLAG)$@ -c -Tc$(<:\=/)
|
2008-01-08 06:02:10 -05:00
|
|
|
{$(win_srcdir)/sys}.c.obj:
|
2010-11-11 10:31:59 -05:00
|
|
|
$(ECHO) compiling $(<:\=/)
|
2010-11-12 06:51:42 -05:00
|
|
|
$(Q) $(CC) $(CFLAGS) $(XCFLAGS) $(CPPFLAGS) $(COUTFLAG)$@ -c -Tc$(<:\=/)
|
2000-12-21 22:22:25 -05:00
|
|
|
{$(srcdir)}.c.obj:
|
2010-11-11 10:31:59 -05:00
|
|
|
$(ECHO) compiling $(<:\=/)
|
2010-11-12 06:51:42 -05:00
|
|
|
$(Q) $(CC) $(CFLAGS) $(XCFLAGS) $(CPPFLAGS) $(COUTFLAG)$@ -c -Tc$(<:\=/)
|
2000-08-03 05:55:54 -04:00
|
|
|
.c.obj:
|
2010-11-11 10:31:59 -05:00
|
|
|
$(ECHO) compiling $(<:\=/)
|
2010-11-12 06:51:42 -05:00
|
|
|
$(Q) $(CC) $(CFLAGS) $(XCFLAGS) $(CPPFLAGS) $(COUTFLAG)$@ -c -Tc$(<:\=/)
|
2000-08-03 05:55:54 -04:00
|
|
|
|
2007-02-02 13:23:07 -05:00
|
|
|
{$(srcdir)/missing}.c.asm:
|
2010-11-11 10:31:59 -05:00
|
|
|
$(ECHO) translating $(<:\=/)
|
2010-11-12 06:51:42 -05:00
|
|
|
$(Q) $(CC) $(CFLAGS) $(XCFLAGS) $(CPPFLAGS) -Fa$@ -c -Tc$(<:\=/)
|
2007-02-02 13:23:07 -05:00
|
|
|
{$(srcdir)/win32}.c.asm:
|
2010-11-11 10:31:59 -05:00
|
|
|
$(ECHO) translating $(<:\=/)
|
2010-11-12 06:51:42 -05:00
|
|
|
$(Q) $(CC) $(CFLAGS) $(XCFLAGS) $(CPPFLAGS) -Fa$@ -c -Tc$(<:\=/)
|
2007-02-02 13:23:07 -05:00
|
|
|
{$(srcdir)}.c.asm:
|
2010-11-11 10:31:59 -05:00
|
|
|
$(ECHO) translating $(<:\=/)
|
2010-11-12 06:51:42 -05:00
|
|
|
$(Q) $(CC) $(CFLAGS) $(XCFLAGS) $(CPPFLAGS) -Fa$@ -c -Tc$(<:\=/)
|
2007-02-02 13:23:07 -05:00
|
|
|
.c.asm:
|
2010-11-11 10:31:59 -05:00
|
|
|
$(ECHO) translating $(<:\=/)
|
2010-11-12 06:51:42 -05:00
|
|
|
$(Q) $(CC) $(CFLAGS) $(XCFLAGS) $(CPPFLAGS) -Fa$@ -c -Tc$(<:\=/)
|
2007-02-02 13:23:07 -05:00
|
|
|
|
2009-03-15 20:29:00 -04:00
|
|
|
{$(srcdir)/missing}.c.i:
|
2010-11-11 10:31:59 -05:00
|
|
|
$(ECHO) preprocessing $(<:\=/)
|
2010-11-12 06:51:42 -05:00
|
|
|
$(Q) $(CC) $(XCFLAGS) $(CPPFLAGS) -P -Tc$(<:\=/) > $@
|
2009-03-15 20:29:00 -04:00
|
|
|
{$(srcdir)/win32}.c.i:
|
2010-11-11 10:31:59 -05:00
|
|
|
$(ECHO) preprocessing $(<:\=/)
|
2010-11-12 06:51:42 -05:00
|
|
|
$(Q) $(CC) $(XCFLAGS) $(CPPFLAGS) -P -Tc$(<:\=/)
|
2009-03-15 20:29:00 -04:00
|
|
|
{$(srcdir)}.c.i:
|
2010-11-11 10:31:59 -05:00
|
|
|
$(ECHO) preprocessing $(<:\=/)
|
2010-11-12 06:51:42 -05:00
|
|
|
$(Q) $(CC) $(XCFLAGS) $(CPPFLAGS) -P -Tc$(<:\=/)
|
2009-03-15 20:29:00 -04:00
|
|
|
.c.i:
|
2010-11-11 10:31:59 -05:00
|
|
|
$(ECHO) preprocessing $(<:\=/)
|
2010-11-12 06:51:42 -05:00
|
|
|
$(Q) $(CC) $(XCFLAGS) $(CPPFLAGS) -P -Tc$(<:\=/)
|
2009-03-15 20:29:00 -04:00
|
|
|
|
2000-08-03 05:55:54 -04:00
|
|
|
.rc.res:
|
2010-11-11 10:31:59 -05:00
|
|
|
$(ECHO) compiling $(<:\=/)
|
2010-12-02 09:06:54 -05:00
|
|
|
$(Q) $(RC) $(RCFLAGS) -I. -I$(<D) $(iconinc) -I$(srcdir)/win32 $(RFLAGS) -fo$@ $(<:\=/)
|
2000-08-03 05:55:54 -04:00
|
|
|
|
2007-11-13 01:29:49 -05:00
|
|
|
lex.c: {$(srcdir)}lex.c.blt
|
|
|
|
copy $(?:/=\) $@
|
|
|
|
|
2009-08-21 04:01:09 -04:00
|
|
|
enc/unicode/name2ctype.h: {$(srcdir)}enc/unicode/name2ctype.h.blt
|
2009-10-19 02:04:10 -04:00
|
|
|
@if not exist $(@D:/=\) md $(@D:/=\)
|
2010-11-17 04:38:38 -05:00
|
|
|
$(ECHO) copying $@
|
|
|
|
$(Q) copy $(?:/=\) $(@:/=\) > nul
|
2009-08-21 04:01:09 -04:00
|
|
|
|
2007-06-09 23:06:15 -04:00
|
|
|
$(OBJS): {$(hdrdir)/ruby}win32.h
|
2004-03-21 18:21:31 -05:00
|
|
|
|
2006-09-19 20:54:45 -04:00
|
|
|
dir.$(OBJEXT) win32.$(OBJEXT): {$(srcdir)}win32/dir.h
|
2004-04-06 21:43:27 -04:00
|
|
|
|
|
|
|
ext/extinit.obj: ext/extinit.c $(SETUP)
|
2010-11-11 10:31:59 -05:00
|
|
|
$(ECHO) compiling ext/extinit.c
|
2010-11-12 06:51:42 -05:00
|
|
|
$(Q) $(CC) $(CFLAGS) $(XCFLAGS) $(CPPFLAGS) $(COUTFLAG)$@ -c ext/extinit.c
|
2009-03-04 21:52:21 -05:00
|
|
|
|
2009-03-06 00:28:42 -05:00
|
|
|
INSNS = opt_sc.inc optinsn.inc optunifs.inc insns.inc insns_info.inc \
|
|
|
|
vmtc.inc vm.inc
|
|
|
|
|
2010-11-18 09:56:34 -05:00
|
|
|
!if [exit > insns_rules.mk]
|
|
|
|
!else if [for %I in ($(INSNS)) do \
|
|
|
|
@for %J in (\
|
2010-11-19 09:05:50 -05:00
|
|
|
"%I: $$(srcdir)/insns.def {$$(VPATH)}vm_opts.h \" \
|
|
|
|
" $$(srcdir)/defs/opt_operand.def $$(srcdir)/defs/opt_insn_unif.def \" \
|
2010-11-18 09:56:34 -05:00
|
|
|
" $$(srcdir)/tool/instruction.rb $$(srcdir)/tool/insns2vm.rb" \
|
|
|
|
" @$$(RM) $$(PROGRAM)" \
|
2011-09-06 08:16:44 -04:00
|
|
|
" $$(BASERUBY) -Ku $$(srcdir)/tool/insns2vm.rb $$(INSNS2VMOPT) %I" \
|
2010-11-18 09:56:34 -05:00
|
|
|
"" \
|
|
|
|
) do @echo.%~J>>insns_rules.mk]
|
2009-03-04 21:52:21 -05:00
|
|
|
!else
|
|
|
|
! include insns_rules.mk
|
|
|
|
! if [del insns_rules.mk > nul]
|
|
|
|
! endif
|
|
|
|
!endif
|