Makefile revision 919
970N/A###############################################################################
970N/A#
1152N/A# Copyright 2010 Sun Microsystems, Inc. All rights reserved.
970N/A# Use is subject to license terms.
970N/A#
970N/A# Permission is hereby granted, free of charge, to any person obtaining a
970N/A# copy of this software and associated documentation files (the "Software"),
970N/A# to deal in the Software without restriction, including without limitation
970N/A# the rights to use, copy, modify, merge, publish, distribute, sublicense,
970N/A# and/or sell copies of the Software, and to permit persons to whom the
970N/A# Software is furnished to do so, subject to the following conditions:
970N/A#
970N/A# The above copyright notice and this permission notice (including the next
970N/A# paragraph) shall be included in all copies or substantial portions of the
970N/A# Software.
970N/A#
970N/A# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
970N/A# IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
970N/A# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL
970N/A# THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
970N/A# LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
970N/A# FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER
970N/A# DEALINGS IN THE SOFTWARE.
970N/A#
970N/A#
1152N/A
970N/A# Package name used in tarballs
970N/AMODULE_NAME=mesa
970N/A
970N/A# Version number (used in path names)
970N/AMODULE_VERSION=7.4.4
970N/A
970N/A# Checksums for upstream tarball
970N/ATARBALL_MD5 = b66528d314c574dccbe0ed963cac5e93
970N/ATARBALL_SHA1 = 1cdcef24900489bc0a879013b2138c0d9aedffe3
970N/A
970N/A# Source tarball
970N/ASOURCE_TARBALL_NAME=MesaLib-$(MODULE_VERSION).tar.bz2
970N/ASOURCE_TARBALL_NAME_SET=yes
970N/A
970N/A# Download site for source
970N/ASOURCE_URL=$(SF_DOWNLOADS_URL)/mesa3d/$(SOURCE_TARBALL_NAME)
970N/ASOURCE_URL_SET=yes
970N/AGIT_URL=$(FDO_GIT_URL)/mesa/mesa
970N/AGIT_URL_SET=yes
970N/A
970N/A# Directory created by unpacking source
970N/ASOURCE_DIRNAME=Mesa-$(MODULE_VERSION)
970N/ASOURCE_DIRNAME_SET=yes
970N/ASOURCE_DIR = $(BUILD_DIR)/$(SOURCE_DIRNAME)
970N/A
970N/A# Patches to apply to source after unpacking, in order
970N/ASOURCE_PATCHES= \
970N/A install-pc-dir.patch,-p1 \
970N/A glu-no-mangled-exports.patch \
970N/A solaris-port.patch \
970N/A 6872597.patch 6866668.patch
970N/A
970N/A# File created by running configure script
970N/AAUTOCONF_TARGET=$(SOURCE_DIR)/configs/autoconf
970N/AAUTOCONF_TARGET_SET=yes
970N/AMODULE_ADD_CONFIGURE_TARGETS=set_pc_dir
970N/A
970N/ADRI_DRIVER_LIST_sparc=
970N/ADRI_DRIVER_LIST_i386=i915 i965 r200 r300 radeon
970N/ADRI_DRIVER_LIST= $(DRI_DRIVER_LIST_$(MACH)) swrast
970N/A
970N/A# Command line options to GNU autoconf configure script
970N/AMODULE_CONFIG_OPTS = --with-driver=dri \
970N/A --with-dri-driverdir='$(X11_SERVERMODS_DIR)/dri$(SERVERMOD_subdir)' \
970N/A --with-dri-drivers='$(DRI_DRIVER_LIST)'
970N/A
970N/A# Override LDFLAGS passed to configure to not include CFLAGS, since that
970N/A# breaks building libGLU with Sun Studio C++ compiler
970N/AMODULE_CONFIG_ENV = LDFLAGS="$(DEFAULT_CONFIG_LDFLAGS) $(ARCH_FLAGS) $(MODTYPE_LDFLAGS) $(MODULE_CFLAGS) $(MODULE_LDFLAGS)"
970N/A
970N/A# Need to use GNU Make to build
970N/AMODULE_MAKE=$(GNUMAKE)
970N/AMODULE_MAKE_SET=yes
970N/A
970N/A# To build with gcc, uncomment these lines and comment out the MODULE_CFLAGS
970N/A# MODULE_COMPILER=gcc
970N/A# MODULE_COMPILER_SET=yes
970N/A
970N/A# Tell Sun compiler to not apply optimizations that increase binary sizes
970N/A# Without this flag, Studio 12 binaries are almost 2x bigger (CR 6808868)
970N/AMODULE_CFLAGS = -xspace
970N/A
970N/A# Add include paths and linker paths needed for DRM modules
970N/AMODULE_CPPFLAGS = -I$(PROTODIR)$(X11_INCLUDES_DIR)/drm
970N/A
970N/AMODULE_LDFLAGS= -L$(PROTODIR)$(X11_SERVERLIBS_DIR)$(ARCHLIBSUBDIR) \
970N/A -R$(X11_SERVERLIBS_DIR)$(ARCHLIBSUBDIR)
970N/A
970N/A# Merge in additional sources from sun-src directory
970N/AADDITIONAL_SOURCE_DIR=sun-src
970N/A
970N/A# pkg-config files that need to have -R added
970N/AFIX_PC_FILES=src/*/*.pc.in src/mesa/drivers/dri/dri.pc.in
970N/A
970N/A
970N/A### Include common rulesets
970N/Ainclude ../Makefile.inc
970N/A
970N/A# Mesa makefiles use a different variable name/method for pkgconfig path
970N/Aset_pc_dir: $(AUTOCONF_TARGET)
970N/A echo 'INSTALL_PC_DIR=$(PKGCONFIG_DIR)' >> $(AUTOCONF_TARGET)