diff options
author | nobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2017-02-01 04:54:03 +0000 |
---|---|---|
committer | nobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2017-02-01 04:54:03 +0000 |
commit | e704fc8280500663f8668c87218068ccf1c547ef (patch) | |
tree | 1b3d93416df02c60e35b4ad5bce6da2690544d41 /win32 | |
parent | af078b93d8e2f77f2345b6f4cc7a4020e53e03b1 (diff) | |
download | ruby-e704fc8280500663f8668c87218068ccf1c547ef.tar.gz |
win32/setup.mak: reorder
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@57488 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'win32')
-rw-r--r-- | win32/setup.mak | 57 |
1 files 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- - --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) @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(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 |