Makefile revision 606
080575042aba2197b425ebfd52061dea061a9aa1xy###############################################################################
080575042aba2197b425ebfd52061dea061a9aa1xy# Copyright 2009 Sun Microsystems, Inc. All rights reserved.
080575042aba2197b425ebfd52061dea061a9aa1xy# Use subject to license terms.
080575042aba2197b425ebfd52061dea061a9aa1xy# Permission is hereby granted, free of charge, to any person obtaining a
080575042aba2197b425ebfd52061dea061a9aa1xy# copy of this software and associated documentation files (the
080575042aba2197b425ebfd52061dea061a9aa1xy# "Software"), to deal in the Software without restriction, including
d5c3073dbbd835e1e9b7dca0c6c770cf3cc20afachenlu chen - Sun Microsystems - Beijing China# without limitation the rights to use, copy, modify, merge, publish,
080575042aba2197b425ebfd52061dea061a9aa1xy# distribute, and/or sell copies of the Software, and to permit persons
080575042aba2197b425ebfd52061dea061a9aa1xy# to whom the Software is furnished to do so, provided that the above
080575042aba2197b425ebfd52061dea061a9aa1xy# copyright notice(s) and this permission notice appear in all copies of
080575042aba2197b425ebfd52061dea061a9aa1xy# the Software and that both the above copyright notice(s) and this
080575042aba2197b425ebfd52061dea061a9aa1xy# permission notice appear in supporting documentation.
080575042aba2197b425ebfd52061dea061a9aa1xy# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS
080575042aba2197b425ebfd52061dea061a9aa1xy# OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
080575042aba2197b425ebfd52061dea061a9aa1xy# MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT
080575042aba2197b425ebfd52061dea061a9aa1xy# OF THIRD PARTY RIGHTS. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR
080575042aba2197b425ebfd52061dea061a9aa1xy# HOLDERS INCLUDED IN THIS NOTICE BE LIABLE FOR ANY CLAIM, OR ANY SPECIAL
d5c3073dbbd835e1e9b7dca0c6c770cf3cc20afachenlu chen - Sun Microsystems - Beijing China# INDIRECT OR CONSEQUENTIAL DAMAGES, OR ANY DAMAGES WHATSOEVER RESULTING
080575042aba2197b425ebfd52061dea061a9aa1xy# FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT,
080575042aba2197b425ebfd52061dea061a9aa1xy# NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION
080575042aba2197b425ebfd52061dea061a9aa1xy# WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
080575042aba2197b425ebfd52061dea061a9aa1xy# Except as contained in this notice, the name of a copyright holder
080575042aba2197b425ebfd52061dea061a9aa1xy# shall not be used in advertising or otherwise to promote the sale, use
080575042aba2197b425ebfd52061dea061a9aa1xy# or other dealings in this Software without prior written authorization
080575042aba2197b425ebfd52061dea061a9aa1xy# of the copyright holder.
080575042aba2197b425ebfd52061dea061a9aa1xy# @(#)Makefile 1.17 09/01/13
080575042aba2197b425ebfd52061dea061a9aa1xy# Package name used in tarballs
080575042aba2197b425ebfd52061dea061a9aa1xy# Version number (used in path names)
080575042aba2197b425ebfd52061dea061a9aa1xy# Source tarball
080575042aba2197b425ebfd52061dea061a9aa1xy# Download site for source
080575042aba2197b425ebfd52061dea061a9aa1xySOURCE_URL=$(SF_DOWNLOADS_URL)/mesa3d/$(SOURCE_TARBALL_NAME)
080575042aba2197b425ebfd52061dea061a9aa1xy# Directory created by unpacking source
080575042aba2197b425ebfd52061dea061a9aa1xy# Patches to apply to source after unpacking, in order
080575042aba2197b425ebfd52061dea061a9aa1xy# Regenerate configure after patching configure.ac with mklib-libc.patch
080575042aba2197b425ebfd52061dea061a9aa1xy# File created by running configure script
080575042aba2197b425ebfd52061dea061a9aa1xy# Command line options to GNU autoconf configure script
080575042aba2197b425ebfd52061dea061a9aa1xy --with-dri-driverdir='$(X11_SERVERMODS_DIR)/dri$(SERVERMOD_subdir)' \
080575042aba2197b425ebfd52061dea061a9aa1xy# Override LDFLAGS passed to configure to not include CFLAGS, since that
080575042aba2197b425ebfd52061dea061a9aa1xy# breaks building libGLU with Sun Studio C++ compiler
080575042aba2197b425ebfd52061dea061a9aa1xyMODULE_CONFIG_ENV = LDFLAGS="$(DEFAULT_CONFIG_LDFLAGS) $(ARCH_FLAGS) $(MODTYPE_LDFLAGS) $(MODULE_CFLAGS) $(MODULE_LDFLAGS)"
080575042aba2197b425ebfd52061dea061a9aa1xy# Need to use GNU Make to build
080575042aba2197b425ebfd52061dea061a9aa1xy# Uncomment to build with gcc:
080575042aba2197b425ebfd52061dea061a9aa1xy# MODULE_COMPILER=gcc
080575042aba2197b425ebfd52061dea061a9aa1xy# MODULE_COMPILER_SET=yes
080575042aba2197b425ebfd52061dea061a9aa1xy# Add include paths and linker paths needed for DRM modules
080575042aba2197b425ebfd52061dea061a9aa1xyMODULE_LDFLAGS= -L$(PROTODIR)$(X11_SERVERLIBS_DIR)$(ARCHLIBSUBDIR) \
080575042aba2197b425ebfd52061dea061a9aa1xy# Merge in additional sources from sun-src directory
080575042aba2197b425ebfd52061dea061a9aa1xy### Include common rulesets
080575042aba2197b425ebfd52061dea061a9aa1xy### Rules specific to this directory:
080575042aba2197b425ebfd52061dea061a9aa1xy# Mesa installs its gl.pc files under /usr/X11/lib/pkgconfig, gives no
080575042aba2197b425ebfd52061dea061a9aa1xy# option for alternate paths, so we just copy them here to the protodir
080575042aba2197b425ebfd52061dea061a9aa1xy# path everyone else uses