ruby-changes:45416
From: nobu <ko1@a...>
Date: Wed, 1 Feb 2017 13:54:11 +0900 (JST)
Subject: [ruby-changes:45416] nobu:r57488 (trunk): win32/setup.mak: reorder
nobu 2017-02-01 13:54:03 +0900 (Wed, 01 Feb 2017) New Revision: 57488 https://svn.ruby-lang.org/cgi-bin/viewvc.cgi?view=revision&revision=57488 Log: win32/setup.mak: reorder Modified files: trunk/win32/setup.mak Index: win32/setup.mak =================================================================== --- win32/setup.mak (revision 57487) +++ win32/setup.mak (revision 57488) @@ -24,19 +24,16 @@ CC = cl -nologo https://github.com/ruby/ruby/blob/trunk/win32/setup.mak#L24 CPP = $(CC) -EP all: -prologue- -generic- -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- +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- +x64-mswin64: -prologue- -x64- -epilogue- +ia64-mswin64: -prologue- -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- +-prologue-: -basic-vars- +-generic-: -osname- -basic-vars-: nul @type << > $(MAKEFILE) @@ -79,19 +76,17 @@ USE_RUBYGEMS = $(USE_RUBYGEMS) https://github.com/ruby/ruby/blob/trunk/win32/setup.mak#L76 @echo HAVE_BASERUBY = no>> $(MAKEFILE) !endif --system-vars-: -osname- -runtime- -headers- - --system-vars32-: -osname32- -runtime- -headers- - --system-vars64-: -osname64- -runtime- -headers- +-osname-section-: + @$(APPEND) + @echo # TARGET>>$(MAKEFILE) --osname32-: nul +-osname32-: -osname-section- @echo TARGET_OS = mswin32>>$(MAKEFILE) --osname64-: nul +-osname64-: -osname-section- @echo TARGET_OS = mswin64>>$(MAKEFILE) --osname-: nul +-osname-: -osname-section- @echo !ifndef TARGET_OS>>$(MAKEFILE) @($(CC) -c <<conftest.c > nul && (echo TARGET_OS = mswin32) || (echo TARGET_OS = mswin64)) >>$(MAKEFILE) #ifdef _WIN64 @@ -101,6 +96,12 @@ USE_RUBYGEMS = $(USE_RUBYGEMS) https://github.com/ruby/ruby/blob/trunk/win32/setup.mak#L96 @echo !endif>>$(MAKEFILE) @$(WIN32DIR:/=\)\rm.bat conftest.* +-compiler-: -compiler-section- -version- -runtime- -headers- + +-compiler-section-: + @$(APPEND) + @echo # COMPILER>>$(MAKEFILE) + -runtime-: nul @$(CC) -MD <<conftest.c user32.lib -link > nul #include <stdio.h> @@ -119,7 +120,6 @@ int main(void) {return (EnumProcesses(NU https://github.com/ruby/ruby/blob/trunk/win32/setup.mak#L120 << -version-: nul verconf.mk - @$(APPEND) @$(CPP) -I$(srcdir) -I$(srcdir)/include <<"Creating $(MAKEFILE)" | findstr "=" >>$(MAKEFILE) MSC_VER = _MSC_VER << @@ -150,6 +150,8 @@ del %0 & exit https://github.com/ruby/ruby/blob/trunk/win32/setup.mak#L150 -program-name-: @type << >>$(MAKEFILE) + +# PROGRAM-NAME !ifdef PROGRAM_PREFIX PROGRAM_PREFIX = $(PROGRAM_PREFIX) !endif @@ -177,15 +179,14 @@ MACHINE = x86 https://github.com/ruby/ruby/blob/trunk/win32/setup.mak#L179 !if defined($(CPU)) @echo>>$(MAKEFILE) $(CPU) = $(PROCESSOR_LEVEL) !endif - @$(APPEND) --alpha-: nul +-alpha-: -osname32- @echo MACHINE = alpha>>$(MAKEFILE) --x64-: nul +-x64-: -osname64- @echo MACHINE = x64>>$(MAKEFILE) --ia64-: nul +-ia64-: -osname64- @echo MACHINE = ia64>>$(MAKEFILE) --ix86-: nul +-ix86-: -osname32- @echo MACHINE = x86>>$(MAKEFILE) -i386-: -ix86- @@ -197,9 +198,11 @@ MACHINE = x86 https://github.com/ruby/ruby/blob/trunk/win32/setup.mak#L198 -i686-: -ix86- @echo $(CPU) = 6>>$(MAKEFILE) --epilogue-: -encs- +-epilogue-: -compiler- -program-name- -encs- -encs-: nul + @$(APPEND) + @echo # ENCODING>>$(MAKEFILE) @$(MAKE) -l -f $(srcdir)/win32/enc-setup.mak srcdir="$(srcdir)" MAKEFILE=$(MAKEFILE) -epilogue-: nul -- ML: ruby-changes@q... Info: http://www.atdot.net/~ko1/quickml/