Makefile revision 493
998a0c99bc22357406f359ace2f602c5d6e376c6wrowe###############################################################################
39d8628e74736d0bd8c4114d8e615dffa8fbbcf7gstein# Copyright 2008 Sun Microsystems, Inc. All rights reserved.
a601d863bd772fefc4dc82a883589d8be6a44811wrowe# Use subject to license terms.
a601d863bd772fefc4dc82a883589d8be6a44811wrowe# Permission is hereby granted, free of charge, to any person obtaining a
a601d863bd772fefc4dc82a883589d8be6a44811wrowe# copy of this software and associated documentation files (the
a601d863bd772fefc4dc82a883589d8be6a44811wrowe# "Software"), to deal in the Software without restriction, including
a601d863bd772fefc4dc82a883589d8be6a44811wrowe# without limitation the rights to use, copy, modify, merge, publish,
6f51bbc3054846e0c0a897d5f16ceba1726bebc6jerenkrantz# distribute, and/or sell copies of the Software, and to permit persons
6f51bbc3054846e0c0a897d5f16ceba1726bebc6jerenkrantz# to whom the Software is furnished to do so, provided that the above
6f51bbc3054846e0c0a897d5f16ceba1726bebc6jerenkrantz# copyright notice(s) and this permission notice appear in all copies of
6f51bbc3054846e0c0a897d5f16ceba1726bebc6jerenkrantz# the Software and that both the above copyright notice(s) and this
6f51bbc3054846e0c0a897d5f16ceba1726bebc6jerenkrantz# permission notice appear in supporting documentation.
a601d863bd772fefc4dc82a883589d8be6a44811wrowe# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS
ff920f8ae37ba372801b67ea7c3d5bf1dfb55585dreid# OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
ff920f8ae37ba372801b67ea7c3d5bf1dfb55585dreid# MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT
998a0c99bc22357406f359ace2f602c5d6e376c6wrowe# OF THIRD PARTY RIGHTS. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR
ff920f8ae37ba372801b67ea7c3d5bf1dfb55585dreid# HOLDERS INCLUDED IN THIS NOTICE BE LIABLE FOR ANY CLAIM, OR ANY SPECIAL
998a0c99bc22357406f359ace2f602c5d6e376c6wrowe# INDIRECT OR CONSEQUENTIAL DAMAGES, OR ANY DAMAGES WHATSOEVER RESULTING
998a0c99bc22357406f359ace2f602c5d6e376c6wrowe# FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT,
998a0c99bc22357406f359ace2f602c5d6e376c6wrowe# NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION
998a0c99bc22357406f359ace2f602c5d6e376c6wrowe# WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
998a0c99bc22357406f359ace2f602c5d6e376c6wrowe# Except as contained in this notice, the name of a copyright holder
998a0c99bc22357406f359ace2f602c5d6e376c6wrowe# shall not be used in advertising or otherwise to promote the sale, use
998a0c99bc22357406f359ace2f602c5d6e376c6wrowe# or other dealings in this Software without prior written authorization
27ddebab333df2a3d82b0f4ea63878d1d9f38ae8gstein# of the copyright holder.
ff920f8ae37ba372801b67ea7c3d5bf1dfb55585dreid# @(#)Makefile 1.10 08/08/08
a601d863bd772fefc4dc82a883589d8be6a44811wrowe# Package name used in tarballs
a601d863bd772fefc4dc82a883589d8be6a44811wrowe# Version number (used in path names)
998a0c99bc22357406f359ace2f602c5d6e376c6wrowe# Directory created by unpacking source
a601d863bd772fefc4dc82a883589d8be6a44811wrowe# Source tarball
a601d863bd772fefc4dc82a883589d8be6a44811wroweSOURCE_TARBALL_NAME=MesaDemos-$(MODULE_VERSION).tar.bz2
a601d863bd772fefc4dc82a883589d8be6a44811wrowe# Download site for source
a601d863bd772fefc4dc82a883589d8be6a44811wroweSOURCE_URL=$(SF_DOWNLOADS_URL)/mesa3d/$(SOURCE_TARBALL_NAME)
a601d863bd772fefc4dc82a883589d8be6a44811wrowe# Patches to apply to source after unpacking, in order
998a0c99bc22357406f359ace2f602c5d6e376c6wrowe# Binaries built in tree
998a0c99bc22357406f359ace2f602c5d6e376c6wrowe# Where to install files
998a0c99bc22357406f359ace2f602c5d6e376c6wrowe# 6.5.2 doesn't use autoconf, just links configuration files
bfae8a5d3c37df19dea49b411b109198c7e84a4fbrianp# What to build
27ddebab333df2a3d82b0f4ea63878d1d9f38ae8gstein# What to install
27ddebab333df2a3d82b0f4ea63878d1d9f38ae8gsteinINSTALL_TARGETS_i386=install_glxgears install_glxinfo install_man
27ddebab333df2a3d82b0f4ea63878d1d9f38ae8gstein### Include common rulesets
27ddebab333df2a3d82b0f4ea63878d1d9f38ae8gstein### Rules specific to this directory:
27ddebab333df2a3d82b0f4ea63878d1d9f38ae8gstein# Merge in additional sources from Mesa library sun-src directory
27ddebab333df2a3d82b0f4ea63878d1d9f38ae8gstein (cd $(SOURCE_DIR) && $(LNDIR) ../../../../lib/mesa/sun-src)
cdc56e100a8fa11e989d1633914502db1c8e0818wrowe# Only care about building X demos
cdc56e100a8fa11e989d1633914502db1c8e0818wrowe# Mesa config file names
39d8628e74736d0bd8c4114d8e615dffa8fbbcf7gstein# Flags passed on make command line when building
39d8628e74736d0bd8c4114d8e615dffa8fbbcf7gsteinADD_MAKE_FLAGS = X11_INCLUDES="-I$(PROTODIR)$(X11_INCLUDES_DIR)" \
39d8628e74736d0bd8c4114d8e615dffa8fbbcf7gstein LDFLAGS="$(PROG_LDFLAGS) -L$(PROTODIR)$(X11_DIR)/lib$(ARCHLIBSUBDIR)"
39d8628e74736d0bd8c4114d8e615dffa8fbbcf7gstein# 6.5.2 doesn't use autoconf, just links configuration files
27ddebab333df2a3d82b0f4ea63878d1d9f38ae8gstein# Build Mesa demos
cdc56e100a8fa11e989d1633914502db1c8e0818wrowe (cd $(DEMOS_DIR) && $(MAKE) $(MAKEFLAGS) $(ADD_MAKE_FLAGS) glxgears )
27ddebab333df2a3d82b0f4ea63878d1d9f38ae8gstein (cd $(DEMOS_DIR) && $(MAKE) $(MAKEFLAGS) $(ADD_MAKE_FLAGS) glxinfo )
27ddebab333df2a3d82b0f4ea63878d1d9f38ae8gstein# For testing - we don't ship the rest of these
27ddebab333df2a3d82b0f4ea63878d1d9f38ae8gstein (cd $(DEMOS_DIR) && $(MAKE) $(MAKEFLAGS) $(ADD_MAKE_FLAGS) )
27ddebab333df2a3d82b0f4ea63878d1d9f38ae8gstein $(MAKE) $(MAKEFLAGS) $(BUILD_32_FLAGS) all-xdemos_gen