6040N/A# Copyright (c) 1999, 2013, Oracle and/or its affiliates. All rights reserved. 0N/A# DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. 0N/A# This code is free software; you can redistribute it and/or modify it 0N/A# under the terms of the GNU General Public License version 2 only, as 2362N/A# published by the Free Software Foundation. Oracle designates this 0N/A# particular file as subject to the "Classpath" exception as provided 2362N/A# by Oracle in the LICENSE file that accompanied this code. 0N/A# This code is distributed in the hope that it will be useful, but WITHOUT 0N/A# ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or 0N/A# FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License 0N/A# version 2 for more details (a copy is included in the LICENSE file that 0N/A# accompanied this code). 0N/A# You should have received a copy of the GNU General Public License version 0N/A# 2 along with this work; if not, write to the Free Software Foundation, 0N/A# Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA. 2362N/A# Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA 0N/A# Makefile to specify compiler flags for programs and libraries 0N/A# targeted to Windows builds. Should not contain any rules. 0N/A# WARNING: This file is shared with other workspaces. 0N/A# So when it includes other files, it must use JDK_TOPDIR. 0N/A# Get shared JDK settings 0N/A# CC compiler object code output directive flag value 0N/A# The suffix applied to the library name for FDLIBM 0N/A# The suffix applied to scripts (.bat for windows, nothing for unix) 0N/A# LIB_LOCATION, which for windows identifies where .exe files go, may be 0N/A# set by each GNUmakefile. The default is BINDIR. 4924N/A# Location of the various .properties files specific to Windows platform 0N/A# Platform specific closed sources 0N/A# for backwards compatability, the old "win32" is used here instead of 0N/A# the more proper "windows" 0N/A# The following DLL's are considered MS runtime libraries and should 3429N/A# msvcr*.dll: Microsoft runtimes 4907N/A# Full Debug Symbols has been enabled on Windows since JDK1.4.1. 4915N/A# The Full Debug Symbols (FDS) default for VARIANT == OPT builds is 4915N/A# enabled with debug info files ZIP'ed to save space. For VARIANT != 4915N/A# OPT builds, FDS is always enabled, after all a debug build without 4915N/A# debug info isn't very useful. The ZIP_DEBUGINFO_FILES option only has 4915N/A# meaning when FDS is enabled. 4915N/A# If you invoke a build with FULL_DEBUG_SYMBOLS=0, then FDS will be 4915N/A# disabled for a VARIANT == OPT build. 4915N/A# Note: Use of a different variable name for the FDS override option 4915N/A# versus the FDS enabled check is intentional (FULL_DEBUG_SYMBOLS 4915N/A# versus ENABLE_FULL_DEBUG_SYMBOLS). For auto build systems that pass 4915N/A# in options via environment variables, use of distinct variables 4915N/A# prevents strange behaviours. For example, in a VARIANT != OPT build, 4915N/A# the FULL_DEBUG_SYMBOLS environment variable will be 0, but the 4915N/A# ENABLE_FULL_DEBUG_SYMBOLS make variable will be 1. If the same 4915N/A# variable name is used, then different values can be picked up by 4915N/A# different parts of the build. Just to be clear, we only need two 4915N/A# variable names because the incoming option value can be overridden 4915N/A# in some situations, e.g., a VARIANT != OPT build. 4915N/A # debug variants always get Full Debug Symbols (if available) 0N/A# C Compiler flag definitions 0N/A# Default optimization 3798N/A # Visual Studio compiler option definitions: 0N/A # -O1 Favors reduced size over speed (-Og -Os -Oy -Ob2 -Gs -GF -Gy) 0N/A # -O2 Favors speed over reduced size (-Og -Oi -Ot -Oy -Ob2 -Gs -GF -Gy) 0N/A # -Ob2 More aggressive inlining 0N/A # -Og Global optimizations 0N/A # -Oi Replace some functions with intrinsic or special forms 3798N/A # -fp:precise (should be the default) 3798N/A # Improve floating point calculations (disables some optimizations) 0N/A # -Os Favor small code 0N/A # -Ot Favor faster code 0N/A # -Oy Frame pointer omission 0N/A # -GF Pool strings in read-only memory 0N/A # -Gf Pool strings in read-write memory (the default) 0N/A # -Gs Controls stack probess 3798N/A # -GS Adds buffer overflow checks on stacks (the default) 3798N/A # -EHsc Enables exception handling 0N/A # -Gy Function level linking only 2324N/A # Automatic precompiled header option to use (if COMPILE_APPROACH=batch) 0N/A # GCC not supported, but left for historical reference... 0N/A# Select the runtime support library carefully, need to be consistent 3798N/A# Visual Studio Runtime compiler option definitions: 0N/A# -MD Use dynamic multi-threaded runtime library 0N/A# -MDd Use debug version (don't use, doesn't mix with -MD DLL's) 0N/A# -MT Use static multi-threaded runtime library (-ML is going away) 0N/A# -MTd Use static debug version (better than -MDd, no runtime issues) 3798N/A# If MS_RUNTIME_STATIC is requested we may have a problem, it is no longer 0N/A# The _DEBUG macro option (changes things like malloc to use debug version) 0N/A# Externally set environment variable can force any build to use the debug vers 0N/A # This MS debugging flag forces a dependence on the debug 3429N/A # version of the runtime library (MSVCR*D.DLL), as does -MDd. 0N/A # We cannot re-distribute this debug runtime. 0N/A# Always add _STATIC_CPPLIB definition 3262N/A# Silence the warning about using _STATIC_CPPLIB 3262N/A # Needed with VS2010 to turn off the deprecated warning. 3798N/A # Visual Studio compiler option definitions: 0N/A # -Zi Cause *.pdb file to be created, full debug information 0N/A # -Z7 Full debug inside the .obj, no .pdb 0N/A # -Zd Basic debug, no local variables? In the .obj 0N/A # -Zl Don't add runtime library name to obj file? 0N/A # -Od Turns off optimization and speeds compilation 0N/A # -nologo Don't print out startup message 0N/A # All builds get the same runtime setting 3524N/A # VS2010, always need safe exception handlers, not needed on 64bit 0N/A # LFLAGS are the flags given to $(LINK) and used to build the actual DLL file 0N/A# Preprocessor macro definitions 0N/A# Output options (use specific filenames to avoid parallel compile errors) 422N/A# Use -wdNNNN to disable warning NNNN. 422N/A# C4800 is a warning about bool performance casts (can't make go away) 0N/A# Treat compiler warnings as errors, if requested 3262N/A# Turn off some warnings by default, enable them all if asked. 3262N/A # the standard C library functions like strcpy. 3262N/A # The -D _CRT_NONSTDC_NO_DEPRECATE turns off deprecation warnings about using 3262N/A # non-standard C POSIX functions. 0N/A# Path and option to link against the VM, if you have to. 0N/A# not supported, but left for historical reference... 0N/A# Settings for the JDI - Serviceability Agent binding. 0N/A # SA will never be supported here. 0N/A# Settings for the VERSIONINFO tap on windows. 0N/A# If the update version contains non-numeric characters, we need 0N/A# to massage it into a numeric format. 0N/A# We use the following formula: 0N/A# JDK_UPDATE_VER = JDK_UPDATE_VERSION * 10 + EXCEPTION_VERSION 0N/A# Here are some examples: 0N/A# 1.5.0 b01 -> 5,0,0,1 0N/A# 1.5.0_10 b01 -> 5,0,100,1 0N/A# 1.4.2 b01 -> 4,2,0,1 0N/A# 1.4.2_02 b01 -> 4,2,20,1 0N/A# 1.4.2_02a b01 -> 4,2,21,1 0N/A# 1.4.2_02b b01 -> 4,2,22,1 420N/A# Values for the RC variables defined in RC_FLAGS