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