ruby-changes:2304
From: ko1@a...
Date: 1 Nov 2007 00:53:40 +0900
Subject: [ruby-changes:2304] usa - Ruby:r13795 (trunk): * win32/configure.bat, setup.mak: now can recognize OS even if
usa 2007-11-01 00:53:19 +0900 (Thu, 01 Nov 2007) New Revision: 13795 Modified files: trunk/ChangeLog trunk/version.h trunk/win32/README.win32 trunk/win32/configure.bat trunk/win32/setup.mak Log: * win32/configure.bat, setup.mak: now can recognize OS even if the ``--target'' option of configure is omitted. * win32/README.win32: update the descriptions about compiler. http://svn.ruby-lang.org/cgi-bin/viewvc.cgi/trunk/win32/setup.mak?r1=13795&r2=13794 http://svn.ruby-lang.org/cgi-bin/viewvc.cgi/trunk/win32/configure.bat?r1=13795&r2=13794 http://svn.ruby-lang.org/cgi-bin/viewvc.cgi/trunk/version.h?r1=13795&r2=13794 http://svn.ruby-lang.org/cgi-bin/viewvc.cgi/trunk/win32/README.win32?r1=13795&r2=13794 http://svn.ruby-lang.org/cgi-bin/viewvc.cgi/trunk/ChangeLog?r1=13795&r2=13794 Index: ChangeLog =================================================================== --- ChangeLog (revision 13794) +++ ChangeLog (revision 13795) @@ -1,3 +1,10 @@ +Thu Nov 1 00:46:30 2007 NAKAMURA Usaku <usa@r...> + + * win32/configure.bat, setup.mak: now can recognize OS even if + the ``--target'' option of configure is omitted. + + * win32/README.win32: update the descriptions about compiler. + Wed Oct 31 03:13:41 2007 Yukihiro Matsumoto <matz@r...> * enum.c (enum_take_while): separate with-block form. Index: win32/configure.bat =================================================================== --- win32/configure.bat (revision 13794) +++ win32/configure.bat (revision 13795) @@ -68,7 +68,7 @@ if "%2" == "x64-mswin64" goto target2 if NOT "%2" == "ia64-mswin64" goto target3 :target2 - echo>> ~tmp~.mak "OS=mswin64" \ + echo>> ~tmp~.mak "TARGET_OS=mswin64" \ :target3 shift shift Index: win32/setup.mak =================================================================== --- win32/setup.mak (revision 13794) +++ win32/setup.mak (revision 13795) @@ -12,9 +12,6 @@ !ifndef prefix prefix = /usr !endif -!if "$(OS)" != "mswin64" -OS = mswin32 -!endif BANG = ! APPEND = echo>>$(MAKEFILE) !ifdef MAKEFILE @@ -28,21 +25,23 @@ CPP = $(CC) -EP all: -prologue- -generic- -epilogue- -i386-mswin32: -prologue- -i386- -epilogue- -i486-mswin32: -prologue- -i486- -epilogue- -i586-mswin32: -prologue- -i586- -epilogue- -i686-mswin32: -prologue- -i686- -epilogue- -alpha-mswin32: -prologue- -alpha- -epilogue- +i386-mswin32: -prologue32- -i386- -epilogue- +i486-mswin32: -prologue32- -i486- -epilogue- +i586-mswin32: -prologue32- -i586- -epilogue- +i686-mswin32: -prologue32- -i686- -epilogue- +alpha-mswin32: -prologue32- -alpha- -epilogue- x64-mswin64: -prologue64- -x64- -epilogue- ia64-mswin64: -prologue64- -ia64- -epilogue- -prologue-: -basic-vars- -system-vars- -version- -program-name- +-prologue32-: -basic-vars- -system-vars32- -version- -program-name- + -prologue64-: -basic-vars- -system-vars64- -version- -program-name- -basic-vars-: nul @type << > $(MAKEFILE) -### Makefile for ruby $(OS) ### +### Makefile for ruby $(TARGET_OS) ### MAKE = nmake srcdir = $(srcdir:\=/) prefix = $(prefix:\=/) @@ -58,15 +57,17 @@ !endif << --system-vars-: -osname- -runtime- +-system-vars-: -runtime- +-system-vars32-: -osname32- -runtime- + -system-vars64-: -osname64- -runtime- --osname-: nul - @echo OS = mswin32 >>$(MAKEFILE) +-osname32-: nul + @echo TARGET_OS = mswin32 >>$(MAKEFILE) -osname64-: nul - @echo OS = mswin64 >>$(MAKEFILE) + @echo TARGET_OS = mswin64 >>$(MAKEFILE) -runtime-: nul @$(CC) -MD <<rtname.c user32.lib > nul @@ -111,7 +112,19 @@ ver = p; } } - if (ver) printf("OS = $$(OS)_%s\n", ver); + printf("!ifndef TARGET_OS\n"); +#ifdef _WIN64 + printf("TARGET_OS = mswin64\n"); +#else + printf("TARGET_OS = mswin32\n"); +#endif + printf("!endif\n"); + if (ver) { + printf("OS = $$(TARGET_OS)_%s\n", ver); + } + else { + printf("OS = $$(TARGET_OS)\n"); + } printf("RT = %s\n", base); return 1; } @@ -151,9 +164,16 @@ !if defined($(ARCH)) || defined($(CPU)) @type << >>$(MAKEFILE) !if defined($(ARCH)) +!if "$(PROCESSOR_ARCHITECTURE)" == "AMD64" +$(ARCH) = x64 +!elseif "$(PROCESSOR_ARCHITECTURE)" == "IA64" +$(ARCH) = ia64 +!else $(ARCH) = $(PROCESSOR_ARCHITECTURE) !endif +!endif !if defined($(CPU)) +!if "$(PROCESSOR_ARCHITECTURE)" == "x86" $(CPU) = $(PROCESSOR_LEVEL) !endif @@ -185,7 +205,6 @@ !endif @type << >>$(MAKEFILE) -# OS = $(OS) # RUBY_INSTALL_NAME = ruby # RUBY_SO_NAME = $$(RT)-$$(RUBY_INSTALL_NAME)$$(MAJOR)$$(MINOR) # CFLAGS = -nologo -MD $$(DEBUGFLAGS) $$(OPTFLAGS) $$(PROCESSOR_FLAG) @@ -199,4 +218,4 @@ $(BANG)include $$(srcdir)/win32/Makefile.sub << @$(COMSPEC) /C $(srcdir:/=\)\win32\rm.bat config.h config.status - @echo type `$(MAKE)' to make ruby for $(OS). + @echo type `$(MAKE)' to make ruby. Index: win32/README.win32 =================================================================== --- win32/README.win32 (revision 13794) +++ win32/README.win32 (revision 13795) @@ -6,6 +6,9 @@ (1) Visual C++ 5.0 or later. + Note: if you want to build x64 or ia64 version, use native compiler for + x64/ia64. + (2) Please set environment variable (({INCLUDE})), (({LIB})), (({PATH})) to run required commands properly from the command line. @@ -24,7 +27,7 @@ (1) Execute win32\configure.bat on your build directory. You can specify the target platform as an argument. - For example, run `((%configure i686-mswin32%))' + For example, run `((%configure --target=i686-mswin32%))' You can also specify the install directory. For example, run `((%configure --prefix=<install_directory>%))' Default of the install directory is /usr . Index: version.h =================================================================== --- version.h (revision 13794) +++ version.h (revision 13795) @@ -1,15 +1,15 @@ #define RUBY_VERSION "1.9.0" -#define RUBY_RELEASE_DATE "2007-10-31" +#define RUBY_RELEASE_DATE "2007-11-01" #define RUBY_VERSION_CODE 190 -#define RUBY_RELEASE_CODE 20071031 +#define RUBY_RELEASE_CODE 20071101 #define RUBY_PATCHLEVEL 0 #define RUBY_VERSION_MAJOR 1 #define RUBY_VERSION_MINOR 9 #define RUBY_VERSION_TEENY 0 #define RUBY_RELEASE_YEAR 2007 -#define RUBY_RELEASE_MONTH 10 -#define RUBY_RELEASE_DAY 31 +#define RUBY_RELEASE_MONTH 11 +#define RUBY_RELEASE_DAY 1 #ifdef RUBY_EXTERN RUBY_EXTERN const char ruby_version[]; -- ML: ruby-changes@q... Info: http://www.atdot.net/~ko1/quickml