4944N/A# Copyright (c) 1999, 2012, Oracle and/or its affiliates. All rights reserved. 4632N/A# DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. 4632N/A# This code is free software; you can redistribute it and/or modify it 4632N/A# under the terms of the GNU General Public License version 2 only, as 4632N/A# published by the Free Software Foundation. Oracle designates this 4632N/A# particular file as subject to the "Classpath" exception as provided 4632N/A# by Oracle in the LICENSE file that accompanied this code. 4632N/A# This code is distributed in the hope that it will be useful, but WITHOUT 4632N/A# ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or 4632N/A# FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License 4632N/A# version 2 for more details (a copy is included in the LICENSE file that 4632N/A# You should have received a copy of the GNU General Public License version 4632N/A# 2 along with this work; if not, write to the Free Software Foundation, 4632N/A# Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA. 4632N/A# Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA 4632N/A# Makefile to specify compiler flags for programs and libraries 4632N/A# targeted to MACOSX. Should not contain any rules. 4632N/A# WARNING: This file is shared with other workspaces. 4632N/A# So when it includes other files, it must use JDK_TOPDIR. 4632N/A# values will be silently ignored: 4632N/A# CFLAGS (set $(OTHER_CFLAGS) instead) 4632N/A# CPPFLAGS (set $(OTHER_CPPFLAGS) instead) 4632N/A# CXXFLAGS (set $(OTHER_CXXFLAGS) instead) 4632N/A# LDFLAGS (set $(OTHER_LDFAGS) instead) 4632N/A# LDLIBS (set $(EXTRA_LIBS) instead) 4632N/A# LDLIBS_COMMON (set $(EXTRA_LIBS) instead) 4632N/A# Part of INCREMENTAL_BUILD mechanism. 4924N/A# Location of the various .properties files specific to MacOS X platform 4632N/A# BSD build pulls its platform sources from the solaris tree. 4632N/A# Platform specific closed sources 4632N/A# platform specific include files 4632N/A# suffix used for make dependencies files. 4632N/A# The suffix applied to the library name for FDLIBM 4632N/A# The suffix applied to scripts (.bat for windows, nothing for unix) 4632N/A# CC compiler object code output directive flag value 4632N/A# For macosx use -Os by default, unless -O3 can be proved to be worth the cost, as per policy 4632N/A# For all platforms, do not omit the frame pointer register usage. 4632N/A# We need this frame pointer to make it easy to walk the stacks. 4944N/A# This should be the default on X86, but ia64, and x86_64 4944N/A# may not have this as the default. 4632N/A# 16-byte stack re-alignment on 32-bit Darwin 4632N/A# Selection of warning messages 4632N/A# Treat compiler warnings as errors, if warnings not allowed 4632N/A# BSD 64bit machines use Dwarf2, which can be HUGE, have fastdebug use -g1 4632N/A# DEBUG_BINARIES overrides everything, use full -g debug information 4632N/A# FASTDEBUG: Optimize the code in the -g versions, gives us a faster debug java 4632N/A# Alpha arch does not like "alpha" defined (potential general arch cleanup issue here) 4632N/A# Libraries need to locate other libraries at runtime, and you can tell 4632N/A# a library where to look by way of the dynamic runpaths (RPATH or RUNPATH) 4632N/A# buried inside the .{so,dylib}. The {$ORIGIN,@loader_path/} says to look 4632N/A# relative to where the library itself is and it can be followed 4632N/A# with relative paths from that. By default we always look in 4632N/A# {$ORIGIN,@loader_path/}, optionally we add relative paths if the Makefile 4632N/A# sets LD_RUNPATH_EXTRAS to those relative paths. 4632N/A# Except on MacOS X we add a flag -z origin, not sure if this is necessary, 4632N/A# The environment variable LD_LIBRARY_PATH will over-ride these runpaths. 4632N/A# See 'man {dyld,rtld}' for more information. 4632N/A# Try: 'readelf -d lib*.so' to see these settings in a library. 4632N/A# -L paths for finding and -ljava 4632N/A# -static-libgcc is a gcc-3 flag to statically link libgcc, gcc-2.9x always 4632N/A# statically link libgcc but will print a warning with the flag. We don't 4632N/A# want the warning, so check gcc version first. 4632N/A# Automatic precompiled header option to use (if COMPILE_APPROACH=batch) 4632N/A # Debug 'strip -S' leaves local function Elf symbols (better stack 4632N/A# Use: ld $(LD_MAPFILE_FLAG) mapfile *.o 4632N/A# Darwin does not support linker map files. 4632N/A# Path and option to link against the VM, if you have to. Note that 4632N/A# there are libraries that link against only -ljava, but they do get 4632N/A# -L to the -ljvm, this is because -ljava depends on -ljvm, whereas 4632N/A# the library itself should not. 4632N/A# We want to privatize JVM symbols on Solaris. This is so the user can 4632N/A# write a function called FindClass and this should not override the 4632N/A# FindClass that is inside the JVM. At this point in time we are not 4632N/A# concerned with other JNI libraries because we hope that there will 4632N/A# not be as many clashes there. 4632N/A# USE_EXECNAME forces the launcher to look up argv[0] on $PATH, and put the 4632N/A# resulting resolved absolute name of the executable in the environment 4632N/A# variable EXECNAME. That executable name is then used that to locate the 4632N/A# If your platform has DPS, it will have Type1 fonts too, in which case 4632N/A# it is best to enable DPS support until such time as 2D's rasteriser 4632N/A# can fully handle Type1 fonts in all cases. Default is "yes". 4632N/A# HAVE_DPS should only be "no" if the platform has no DPS headers or libs 4632N/A# DPS (Displayable PostScript) is available on Solaris machines 4632N/A# Settings for the JDI - Serviceability Agent binding. 4632N/A# The JDI - Serviceability Agent binding is not currently supported