make/windows/makefiles/launcher.make

Mon, 06 Feb 2012 09:14:22 +0100

author
erikj
date
Mon, 06 Feb 2012 09:14:22 +0100
changeset 3518
719f7007c8e8
parent 2708
1d1603768966
child 4153
b9a9ed0f8eeb
permissions
-rw-r--r--

7141242: build-infra merge: Rename CPP->CXX and LINK->LD
Summary: Cleaned up make variables for compilers and linker to consistently use CXX for C++ compiler, CC for C compiler and LD for linker.
Reviewed-by: dholmes, ohrstrom

zgu@2590 1 #
trims@2708 2 # Copyright (c) 2010, 2011, Oracle and/or its affiliates. All rights reserved.
zgu@2590 3 # DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
zgu@2590 4 #
zgu@2590 5 # This code is free software; you can redistribute it and/or modify it
zgu@2590 6 # under the terms of the GNU General Public License version 2 only, as
zgu@2590 7 # published by the Free Software Foundation.
zgu@2590 8 #
zgu@2590 9 # This code is distributed in the hope that it will be useful, but WITHOUT
zgu@2590 10 # ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
zgu@2590 11 # FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
zgu@2590 12 # version 2 for more details (a copy is included in the LICENSE file that
zgu@2590 13 # accompanied this code).
zgu@2590 14 #
zgu@2590 15 # You should have received a copy of the GNU General Public License version
zgu@2590 16 # 2 along with this work; if not, write to the Free Software Foundation,
zgu@2590 17 # Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
zgu@2590 18 #
zgu@2590 19 # Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
zgu@2590 20 # or visit www.oracle.com if you need additional information or have any
zgu@2590 21 # questions.
zgu@2590 22 #
zgu@2590 23 #
zgu@2590 24
zgu@2590 25
erikj@3518 26 LAUNCHER_FLAGS=$(CXX_FLAGS) $(ARCHFLAG) \
zgu@2590 27 /D FULL_VERSION=\"$(HOTSPOT_RELEASE_VERSION)\" \
zgu@2590 28 /D JDK_MAJOR_VERSION=\"$(JDK_MAJOR_VERSION)\" \
zgu@2590 29 /D JDK_MINOR_VERSION=\"$(JDK_MINOR_VERSION)\" \
zgu@2590 30 /D GAMMA \
zgu@2590 31 /D LAUNCHER_TYPE=\"gamma\" \
zgu@2590 32 /D _CRT_SECURE_NO_WARNINGS \
zgu@2590 33 /D _CRT_SECURE_NO_DEPRECATE \
zgu@2590 34 /D LINK_INTO_LIBJVM \
zgu@2590 35 /I $(WorkSpace)\src\os\windows\launcher \
zgu@2590 36 /I $(WorkSpace)\src\share\tools\launcher \
zgu@2590 37 /I $(WorkSpace)\src\share\vm\prims \
zgu@2590 38 /I $(WorkSpace)\src\share\vm \
zgu@2590 39 /I $(WorkSpace)\src\cpu\$(Platform_arch)\vm \
zgu@2590 40 /I $(WorkSpace)\src\os\windows\vm
zgu@2590 41
erikj@3518 42 LD_FLAGS=/manifest $(HS_INTERNAL_NAME).lib kernel32.lib user32.lib /nologo /machine:$(MACHINE) /map /debug /subsystem:console
zgu@2590 43
zgu@2590 44 !if "$(COMPILER_NAME)" == "VS2005"
zgu@2590 45 # This VS2005 compiler has /GS as a default and requires bufferoverflowU.lib
zgu@2590 46 # on the link command line, otherwise we get missing __security_check_cookie
zgu@2590 47 # externals at link time. Even with /GS-, you need bufferoverflowU.lib.
zgu@2590 48 BUFFEROVERFLOWLIB = bufferoverflowU.lib
erikj@3518 49 LD_FLAGS = $(LD_FLAGS) $(BUFFEROVERFLOWLIB)
zgu@2590 50 !endif
zgu@2590 51
zgu@2590 52 !if "$(COMPILER_NAME)" == "VS2010" && "$(BUILDARCH)" == "i486"
erikj@3518 53 LD_FLAGS = /SAFESEH $(LD_FLAGS)
zgu@2590 54 !endif
zgu@2590 55
zgu@2590 56 LAUNCHERDIR = $(WorkSpace)/src/os/windows/launcher
zgu@2590 57 LAUNCHERDIR_SHARE = $(WorkSpace)/src/share/tools/launcher
zgu@2590 58
zgu@2590 59 OUTDIR = launcher
zgu@2590 60
zgu@2590 61 {$(LAUNCHERDIR)}.c{$(OUTDIR)}.obj:
zgu@2590 62 -mkdir $(OUTDIR) 2>NUL >NUL
erikj@3518 63 $(CXX) $(LAUNCHER_FLAGS) /c /Fo$@ $<
zgu@2590 64
zgu@2590 65 {$(LAUNCHERDIR_SHARE)}.c{$(OUTDIR)}.obj:
zgu@2590 66 -mkdir $(OUTDIR) 2>NUL >NUL
erikj@3518 67 $(CXX) $(LAUNCHER_FLAGS) /c /Fo$@ $<
zgu@2590 68
zgu@2590 69 $(OUTDIR)\*.obj: $(LAUNCHERDIR)\*.c $(LAUNCHERDIR)\*.h $(LAUNCHERDIR_SHARE)\*.c $(LAUNCHERDIR_SHARE)\*.h
zgu@2590 70
zgu@2590 71 launcher: $(OUTDIR)\java.obj $(OUTDIR)\java_md.obj $(OUTDIR)\jli_util.obj
zgu@2590 72 echo $(JAVA_HOME) > jdkpath.txt
erikj@3518 73 $(LD) $(LD_FLAGS) /out:hotspot.exe $**

mercurial