Makefile revision 75
5488N/A# Copyright 1995-2007 Sun Microsystems, Inc. All Rights Reserved. 5488N/A# DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. 5488N/A# This code is free software; you can redistribute it and/or modify it 5488N/A# under the terms of the GNU General Public License version 2 only, as 5488N/A# published by the Free Software Foundation. Sun designates this 5488N/A# particular file as subject to the "Classpath" exception as provided 5488N/A# by Sun in the LICENSE file that accompanied this code. 5488N/A# This code is distributed in the hope that it will be useful, but WITHOUT 5488N/A# ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or 5488N/A# FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License 5488N/A# version 2 for more details (a copy is included in the LICENSE file that 5488N/A# You should have received a copy of the GNU General Public License version 5488N/A# 2 along with this work; if not, write to the Free Software Foundation, 5488N/A# Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA. 5488N/A# Please contact Sun Microsystems, Inc., 4150 Network Circle, Santa Clara, 5488N/A# Use highest optimization level 5488N/A# vvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvv WINDOWS 5488N/A# Prune files that are currently unused on Windows (but still used on 5488N/A# ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ WINDOWS 5488N/A # If on Solaris 11 (or dlfcn.h has unknown_control_flow pragmas in it) 5488N/A # we trigger a SS11 bug that causes the compiler to crash (bug 6343678) 5488N/A # Here we check to see if we need this workaround and change the opt 5488N/A # settings for this one file. 5488N/A $(warning "WARNING: Using workaround for SS11 bug 6343678, on $@") 5488N/A # Compiler bug 6343678 need to prevent a SEGV in the compiler 5488N/A $(warning "WARNING: Using workaround for SS11 bug 6343678, on $@") 5488N/A# vvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvv SOLARIS-SPARC 5488N/A# solaris-sparc and solaris-sparcv9 both build 'vis' 5488N/A# ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ SOLARIS-SPARC 5488N/A # libawt.so on Linux is statically linked with Motif and contains all the 5488N/A # Xm symbols. Mapfile is disabled so the symbols will remain public. 5488N/A# vvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvv WINDOWS 5488N/A# if you always build from a clean workspace. 5488N/A# required additional rules: 5488N/A# ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ WINDOWS # ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 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