Makefile revision 978
2N/A# Copyright 1995-2008 Sun Microsystems, Inc. All Rights Reserved. 2N/A# DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. 2N/A# This code is free software; you can redistribute it and/or modify it 2N/A# under the terms of the GNU General Public License version 2 only, as 2N/A# published by the Free Software Foundation. Sun designates this 2N/A# particular file as subject to the "Classpath" exception as provided 2N/A# by Sun in the LICENSE file that accompanied this code. 2N/A# This code is distributed in the hope that it will be useful, but WITHOUT 2N/A# ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or 2N/A# FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License 2N/A# version 2 for more details (a copy is included in the LICENSE file that 2N/A# accompanied this code). 2N/A# You should have received a copy of the GNU General Public License version 2N/A# 2 along with this work; if not, write to the Free Software Foundation, 2N/A# Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA. 2N/A# Please contact Sun Microsystems, Inc., 4150 Network Circle, Santa Clara, 2N/A# CA 95054 USA or visit www.sun.com if you need additional information or 2N/A# have any questions. # Use highest optimization level # vvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvv WINDOWS # Prune files that are currently unused on Windows (but still used on # ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ WINDOWS # vvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvv SOLARIS/LINUX # Also prune files that are currently unused on Solaris/Linux (but still # If on Solaris 11 (or dlfcn.h has unknown_control_flow pragmas in it) # we trigger a SS11 bug that causes the compiler to crash (bug 6343678) # Here we check to see if we need this workaround and change the opt # settings for this one file. $(warning "WARNING: Using workaround for SS11 bug 6343678, on $@") # Compiler bug 6343678 need to prevent a SEGV in the compiler $(warning "WARNING: Using workaround for SS11 bug 6343678, on $@") # ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ SOLARIS/LINUX # vvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvv SOLARIS-SPARC # solaris-sparc and solaris-sparcv9 both build 'vis' # ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ SOLARIS-SPARC # libawt.so on Linux is statically linked with Motif and contains all the # Xm symbols. Mapfile is disabled so the symbols will remain public. # vvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvv WINDOWS # Additional dependencies. # If make.depend is not working correctly, then it can be omitted # if you always build from a clean workspace. # required additional rules: # ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ WINDOWS # vvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvv SOLARIS/LINUX # ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ SOLARIS/LINUX # Add to the ambient vpath to pick up files in subdirectories # vvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvv WINDOWS # ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ WINDOWS # vvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvv LINUX # ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ LINUX # vvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvv WINDOWS # ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ WINDOWS # vvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvv SOLARIS/LINUX # Use -lXmu for EditRes support # Solaris X11 Direct Graphics Access library # ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ SOLARIS/LINUX # vvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvv WINDOWS # ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ WINDOWS # vvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvv LINUX # ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ LINUX # vvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvv SOLARIS # ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ SOLARIS # vvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvv WINDOWS # Useful variables that name parts of the src tree. # FIXME: awt shouldn't have to see the VM's private headers. # FIXME: if you re-order this list, the build breaks, possibly because # of filename collision. Such a collision, if present, is pure # evil. Need to investigate this. # -I$(WINAWT_COMMON_native) # .res file construction. # ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ WINDOWS # vvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvv SOLARIS/LINUX # Other extra flags needed for compiling. # ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ SOLARIS/LINUX