From e704fc8280500663f8668c87218068ccf1c547ef Mon Sep 17 00:00:00 2001 From: nobu Date: Wed, 1 Feb 2017 04:54:03 +0000 Subject: [PATCH] win32/setup.mak: reorder git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@57488 b2dd03c8-39d4-4d8f-98ff-823fe69b080e --- win32/setup.mak | 57 ++++++++++++++++++++++++++----------------------- 1 file changed, 30 insertions(+), 27 deletions(-) diff --git a/win32/setup.mak b/win32/setup.mak index 23bdadb839..e1c3b6f36e 100644 --- a/win32/setup.mak +++ b/win32/setup.mak @@ -24,19 +24,16 @@ CC = cl -nologo 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) @echo HAVE_BASERUBY = no>> $(MAKEFILE) !endif --system-vars-: -osname- -runtime- -headers- +-osname-section-: + @$(APPEND) + @echo # TARGET>>$(MAKEFILE) --system-vars32-: -osname32- -runtime- -headers- - --system-vars64-: -osname64- -runtime- -headers- - --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 < nul && (echo TARGET_OS = mswin32) || (echo TARGET_OS = mswin64)) >>$(MAKEFILE) #ifdef _WIN64 @@ -101,6 +96,12 @@ USE_RUBYGEMS = $(USE_RUBYGEMS) @echo !endif>>$(MAKEFILE) @$(WIN32DIR:/=\)\rm.bat conftest.* +-compiler-: -compiler-section- -version- -runtime- -headers- + +-compiler-section-: + @$(APPEND) + @echo # COMPILER>>$(MAKEFILE) + -runtime-: nul @$(CC) -MD < nul #include @@ -119,7 +120,6 @@ int main(void) {return (EnumProcesses(NULL,0,NULL) ? 0 : 1);} << -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 -program-name-: @type << >>$(MAKEFILE) + +# PROGRAM-NAME !ifdef PROGRAM_PREFIX PROGRAM_PREFIX = $(PROGRAM_PREFIX) !endif @@ -177,15 +179,14 @@ MACHINE = x86 !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 -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