# # Copyright (c) 2010, Oracle and/or its affiliates. All rights reserved. # DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. # # This code is free software; you can redistribute it and/or modify it # under the terms of the GNU General Public License version 2 only, as # published by the Free Software Foundation. # # This code is distributed in the hope that it will be useful, but WITHOUT # ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or # FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License # version 2 for more details (a copy is included in the LICENSE file that # accompanied this code). # # You should have received a copy of the GNU General Public License version # 2 along with this work; if not, write to the Free Software Foundation, # Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA. # # Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA # or visit www.oracle.com if you need additional information or have any # questions. # # LAUNCHER_FLAGS=$(ARCHFLAG) \ /D FULL_VERSION=\"$(HOTSPOT_RELEASE_VERSION)\" \ /D GAMMA \ /D LAUNCHER_TYPE=\"gamma\" \ /D _CRT_SECURE_NO_WARNINGS \ /D _CRT_SECURE_NO_DEPRECATE CPP_FLAGS=$(CPP_FLAGS) $(LAUNCHER_FLAGS) LINK_FLAGS=/manifest $(HS_INTERNAL_NAME).lib kernel32.lib user32.lib /nologo /machine:$(MACHINE) /map /debug /subsystem:console !if "$(COMPILER_NAME)" == "VS2005" # This VS2005 compiler has /GS as a default and requires bufferoverflowU.lib # on the link command line, otherwise we get missing __security_check_cookie # externals at link time. Even with /GS-, you need bufferoverflowU.lib. BUFFEROVERFLOWLIB = bufferoverflowU.lib LINK_FLAGS = $(LINK_FLAGS) $(BUFFEROVERFLOWLIB) !endif # The "launcher_XXX" weirdness is beacuse these files clash with files in the jvm. # These files should really be compiled in a separate directory, but # let's wait with that until we rewrite nmake files in GNU make. launcher_java.obj: $(WorkSpace)\src\os\windows\launcher\java.c $(CPP) $(CPP_FLAGS) /c /Fo$@ $? launcher_java_md.obj: $(WorkSpace)\src\os\windows\launcher\java_md.c $(CPP) $(CPP_FLAGS) /c /Fo$@ $? launcher_jli_util.obj: $(WorkSpace)\src\os\windows\launcher\jli_util.c $(CPP) $(CPP_FLAGS) /c /Fo$@ $? $(LAUNCHER_NAME): launcher_java.obj launcher_java_md.obj launcher_jli_util.obj $(LINK) $(LINK_FLAGS) /out:$@ $**