Makefile revision 493
0f081398cf0eef8cc7c66a535d450110a92dc8aefielding###############################################################################
0f081398cf0eef8cc7c66a535d450110a92dc8aefielding# Copyright 2008 Sun Microsystems, Inc. All rights reserved.
0f081398cf0eef8cc7c66a535d450110a92dc8aefielding# Use subject to license terms.
0f081398cf0eef8cc7c66a535d450110a92dc8aefielding# Permission is hereby granted, free of charge, to any person obtaining a
0f081398cf0eef8cc7c66a535d450110a92dc8aefielding# copy of this software and associated documentation files (the
0f081398cf0eef8cc7c66a535d450110a92dc8aefielding# "Software"), to deal in the Software without restriction, including
0f081398cf0eef8cc7c66a535d450110a92dc8aefielding# without limitation the rights to use, copy, modify, merge, publish,
0f081398cf0eef8cc7c66a535d450110a92dc8aefielding# distribute, and/or sell copies of the Software, and to permit persons
0f081398cf0eef8cc7c66a535d450110a92dc8aefielding# to whom the Software is furnished to do so, provided that the above
0f081398cf0eef8cc7c66a535d450110a92dc8aefielding# copyright notice(s) and this permission notice appear in all copies of
0f081398cf0eef8cc7c66a535d450110a92dc8aefielding# the Software and that both the above copyright notice(s) and this
0f081398cf0eef8cc7c66a535d450110a92dc8aefielding# permission notice appear in supporting documentation.
0f081398cf0eef8cc7c66a535d450110a92dc8aefielding# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS
0f081398cf0eef8cc7c66a535d450110a92dc8aefielding# OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
0f081398cf0eef8cc7c66a535d450110a92dc8aefielding# MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT
0f081398cf0eef8cc7c66a535d450110a92dc8aefielding# OF THIRD PARTY RIGHTS. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR
0f081398cf0eef8cc7c66a535d450110a92dc8aefielding# HOLDERS INCLUDED IN THIS NOTICE BE LIABLE FOR ANY CLAIM, OR ANY SPECIAL
0f081398cf0eef8cc7c66a535d450110a92dc8aefielding# INDIRECT OR CONSEQUENTIAL DAMAGES, OR ANY DAMAGES WHATSOEVER RESULTING
0f081398cf0eef8cc7c66a535d450110a92dc8aefielding# FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT,
0f081398cf0eef8cc7c66a535d450110a92dc8aefielding# NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION
0f081398cf0eef8cc7c66a535d450110a92dc8aefielding# WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
0f081398cf0eef8cc7c66a535d450110a92dc8aefielding# Except as contained in this notice, the name of a copyright holder
0f081398cf0eef8cc7c66a535d450110a92dc8aefielding# shall not be used in advertising or otherwise to promote the sale, use
0f081398cf0eef8cc7c66a535d450110a92dc8aefielding# or other dealings in this Software without prior written authorization
0f081398cf0eef8cc7c66a535d450110a92dc8aefielding# of the copyright holder.
0f081398cf0eef8cc7c66a535d450110a92dc8aefielding# @(#)Makefile 1.13 08/08/08
0f081398cf0eef8cc7c66a535d450110a92dc8aefielding# Package name used in tarballs
0f081398cf0eef8cc7c66a535d450110a92dc8aefielding# Version number (used in path names)
0f081398cf0eef8cc7c66a535d450110a92dc8aefielding# Source tarball
0f081398cf0eef8cc7c66a535d450110a92dc8aefieldingSOURCE_TARBALL_NAME=MesaLib-$(MODULE_VERSION).tar.bz2
0f081398cf0eef8cc7c66a535d450110a92dc8aefielding# Download site for source
0f081398cf0eef8cc7c66a535d450110a92dc8aefieldingSOURCE_URL=$(SF_DOWNLOADS_URL)/mesa3d/$(SOURCE_TARBALL_NAME)
0f081398cf0eef8cc7c66a535d450110a92dc8aefielding# Directory created by unpacking source
0f081398cf0eef8cc7c66a535d450110a92dc8aefielding# Patches to apply to source after unpacking, in order
0f081398cf0eef8cc7c66a535d450110a92dc8aefielding# Need to use GNU Make to build
8f3ec4772d2aeb347cf40e87c77627bb784dd018rbb# Mesa doesn't use GNU autoconf until Mesa 7.1, but has it's own configuration
0f081398cf0eef8cc7c66a535d450110a92dc8aefielding# Build with gcc on x86:
0f081398cf0eef8cc7c66a535d450110a92dc8aefielding# Build with Sun Studio cc on x86:
b4c8a80f7dbfc9b56dbe03bdc28f0b5eb5f23697rbb#MODULE_COMPILER=suncc
0f081398cf0eef8cc7c66a535d450110a92dc8aefielding#MODULE_COMPILER_SET=yes
0f081398cf0eef8cc7c66a535d450110a92dc8aefielding#MESA_CFG_32_i386=solaris-x86-cc-dri
0f081398cf0eef8cc7c66a535d450110a92dc8aefielding#MESA_CFG_64_i386=solaris-x64-cc-dri
0f081398cf0eef8cc7c66a535d450110a92dc8aefielding# pkg-config --cflags libdrm
0f081398cf0eef8cc7c66a535d450110a92dc8aefieldingLIBDRM_CFLAGS = -I$(PROTODIR)$(X11_INCLUDES_DIR) -I$(PROTODIR)$(X11_INCLUDES_DIR)/drm
0f081398cf0eef8cc7c66a535d450110a92dc8aefielding# pkg-config --libs libdrm
0f081398cf0eef8cc7c66a535d450110a92dc8aefieldingLIBDRM_LIB = -L$(PROTODIR)$(X11_SERVERLIBS_DIR)$(ARCHLIBSUBDIR) -R$(X11_SERVERLIBS_DIR)$(ARCHLIBSUBDIR) -ldrm
0f081398cf0eef8cc7c66a535d450110a92dc8aefielding# Additional flags to pass to make
0f081398cf0eef8cc7c66a535d450110a92dc8aefielding PASSED_INCLUDES="$(DEFAULT_CONFIG_CPPFLAGS) $(MODTYPE_CPPFLAGS)" \
b4c8a80f7dbfc9b56dbe03bdc28f0b5eb5f23697rbb LIBDRM_CFLAGS="$(LIBDRM_CFLAGS)" LIBDRM_LIB="$(LIBDRM_LIB)" \
0f081398cf0eef8cc7c66a535d450110a92dc8aefielding# Additional environment variables to pass to make
0f081398cf0eef8cc7c66a535d450110a92dc8aefieldingMODULE_BUILD_ENV= PKG_CONFIG_PATH=$(DEFAULT_PKG_CONFIG_PATH)
0f081398cf0eef8cc7c66a535d450110a92dc8aefielding# Merge in additional sources from sun-src directory
0f081398cf0eef8cc7c66a535d450110a92dc8aefielding### Include common rulesets
0f081398cf0eef8cc7c66a535d450110a92dc8aefielding### Rules specific to this directory:
0f081398cf0eef8cc7c66a535d450110a92dc8aefielding# Configure Mesa
0f081398cf0eef8cc7c66a535d450110a92dc8aefielding# Additional headers to install that X server builds use
0f081398cf0eef8cc7c66a535d450110a92dc8aefielding mkdir -p $(PROTODIR)/$(X11_INCLUDES_DIR)/GL/internal/
0f081398cf0eef8cc7c66a535d450110a92dc8aefielding $(INSTALL_SCRIPT) -m 644 $(SOURCE_DIR)/include/GL/internal/*h \