1 # 2 # Copyright (c) 2010, Oracle and/or its affiliates. All rights reserved. 3 # DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. 4 # 5 # This code is free software; you can redistribute it and/or modify it 6 # under the terms of the GNU General Public License version 2 only, as 7 # published by the Free Software Foundation. 8 # 9 # This code is distributed in the hope that it will be useful, but WITHOUT 10 # ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or 11 # FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License 12 # version 2 for more details (a copy is included in the LICENSE file that 13 # accompanied this code). 14 # 15 # You should have received a copy of the GNU General Public License version 16 # 2 along with this work; if not, write to the Free Software Foundation, 17 # Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA. 18 # 19 # Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA 20 # or visit www.oracle.com if you need additional information or have any 21 # questions. 22 # 23 # 24 25 26 LAUNCHER_FLAGS=$(ARCHFLAG) \ 27 /D FULL_VERSION=\"$(HOTSPOT_RELEASE_VERSION)\" \ 28 /D GAMMA \ 29 /D LAUNCHER_TYPE=\"gamma\" \ 30 /D _CRT_SECURE_NO_WARNINGS \ 31 /D _CRT_SECURE_NO_DEPRECATE 32 33 CPP_FLAGS=$(CPP_FLAGS) $(LAUNCHER_FLAGS) 34 35 LINK_FLAGS=/manifest $(HS_INTERNAL_NAME).lib kernel32.lib user32.lib /nologo /machine:$(MACHINE) /map /debug /subsystem:console 36 37 !if "$(COMPILER_NAME)" == "VS2005" 38 # This VS2005 compiler has /GS as a default and requires bufferoverflowU.lib 39 # on the link command line, otherwise we get missing __security_check_cookie 40 # externals at link time. Even with /GS-, you need bufferoverflowU.lib. 41 BUFFEROVERFLOWLIB = bufferoverflowU.lib 42 LINK_FLAGS = $(LINK_FLAGS) $(BUFFEROVERFLOWLIB) 43 !endif 44 45 # The "launcher_XXX" weirdness is beacuse these files clash with files in the jvm. 46 # These files should really be compiled in a separate directory, but 47 # let's wait with that until we rewrite nmake files in GNU make. 48 49 launcher_java.obj: $(WorkSpace)\src\os\windows\launcher\java.c 50 $(CPP) $(CPP_FLAGS) /c /Fo$@ $? 51 52 launcher_java_md.obj: $(WorkSpace)\src\os\windows\launcher\java_md.c 53 $(CPP) $(CPP_FLAGS) /c /Fo$@ $? 54 55 launcher_jli_util.obj: $(WorkSpace)\src\os\windows\launcher\jli_util.c 56 $(CPP) $(CPP_FLAGS) /c /Fo$@ $? 57 58 $(LAUNCHER_NAME): launcher_java.obj launcher_java_md.obj launcher_jli_util.obj 59 $(LINK) $(LINK_FLAGS) /out:$@ $** 60 61