Makefile revision 98
6ca0e6973c8176100f4a426444823ae5e777e28fsascha###############################################################################
6ca0e6973c8176100f4a426444823ae5e777e28fsascha# Copyright 2007 Sun Microsystems, Inc. All rights reserved.
6ca0e6973c8176100f4a426444823ae5e777e28fsascha# Use subject to license terms.
6ca0e6973c8176100f4a426444823ae5e777e28fsascha# Permission is hereby granted, free of charge, to any person obtaining a
6ca0e6973c8176100f4a426444823ae5e777e28fsascha# copy of this software and associated documentation files (the
6ca0e6973c8176100f4a426444823ae5e777e28fsascha# "Software"), to deal in the Software without restriction, including
6ca0e6973c8176100f4a426444823ae5e777e28fsascha# without limitation the rights to use, copy, modify, merge, publish,
6ca0e6973c8176100f4a426444823ae5e777e28fsascha# distribute, and/or sell copies of the Software, and to permit persons
6ca0e6973c8176100f4a426444823ae5e777e28fsascha# to whom the Software is furnished to do so, provided that the above
6ca0e6973c8176100f4a426444823ae5e777e28fsascha# copyright notice(s) and this permission notice appear in all copies of
6ca0e6973c8176100f4a426444823ae5e777e28fsascha# the Software and that both the above copyright notice(s) and this
6ca0e6973c8176100f4a426444823ae5e777e28fsascha# permission notice appear in supporting documentation.
6ca0e6973c8176100f4a426444823ae5e777e28fsascha# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS
6ca0e6973c8176100f4a426444823ae5e777e28fsascha# OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
6ca0e6973c8176100f4a426444823ae5e777e28fsascha# MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT
6ca0e6973c8176100f4a426444823ae5e777e28fsascha# OF THIRD PARTY RIGHTS. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR
6ca0e6973c8176100f4a426444823ae5e777e28fsascha# HOLDERS INCLUDED IN THIS NOTICE BE LIABLE FOR ANY CLAIM, OR ANY SPECIAL
6ca0e6973c8176100f4a426444823ae5e777e28fsascha# INDIRECT OR CONSEQUENTIAL DAMAGES, OR ANY DAMAGES WHATSOEVER RESULTING
6ca0e6973c8176100f4a426444823ae5e777e28fsascha# FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT,
6ca0e6973c8176100f4a426444823ae5e777e28fsascha# NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION
22ad84685642948ad15cc1e881ecbc4ac8cbf98cmanoj# WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
22ad84685642948ad15cc1e881ecbc4ac8cbf98cmanoj# Except as contained in this notice, the name of a copyright holder
6ca0e6973c8176100f4a426444823ae5e777e28fsascha# shall not be used in advertising or otherwise to promote the sale, use
6ca0e6973c8176100f4a426444823ae5e777e28fsascha# or other dealings in this Software without prior written authorization
6ca0e6973c8176100f4a426444823ae5e777e28fsascha# of the copyright holder.
3a47c2ef905c3b6483279637fb8054ca67c5b6ddsascha# @(#)Makefile 1.4 07/01/31
6ca0e6973c8176100f4a426444823ae5e777e28fsascha# Build 32-bit, 64-bit, or both?
dadf206a4cf1eccf5c13b64bd9678610dd763868rbb# Version number (used in path names)
6ca0e6973c8176100f4a426444823ae5e777e28fsascha# Source tarball
6ca0e6973c8176100f4a426444823ae5e777e28fsascha# Download site for source
5f69f46ccdf50afd8f0a23f134746e6066185e89rbbSOURCE_URL=http://easynews.dl.sourceforge.net/sourceforge/mesa3d/$(SOURCE_TARBALL_NAME)
6ca0e6973c8176100f4a426444823ae5e777e28fsascha# Patches to apply to source after unpacking, in order
105475009f541187ba7a14a367547d9404c578befielding# Directory created by unpacking source
f07a80771bc5d30b1e0cfcb7256c1a302da77675rbb# Binaries built in tree
105475009f541187ba7a14a367547d9404c578befielding# Where to install files
105475009f541187ba7a14a367547d9404c578befielding# What to build
105475009f541187ba7a14a367547d9404c578befielding### Include common rulesets
105475009f541187ba7a14a367547d9404c578befielding### Rules specific to this directory:
105475009f541187ba7a14a367547d9404c578befielding# Merge in additional sources from Mesa library sun-src directory
6ca0e6973c8176100f4a426444823ae5e777e28fsascha (cd $(SOURCE_DIR) && $(LNDIR) ../../../../lib/mesa/sun-src)
6a1c919219ae7e3382fb22f1c4cf89f11b4becffcoar# Only care about building X demos
ce8d7a0627c0f246376cccd980463f8250a6a97ebjh# Mesa config file names
6ca0e6973c8176100f4a426444823ae5e777e28fsaschaMESA_CFG_32:sh=arch | sed 's/^\(.*\)$/\$\(MESA_CFG_32_\1\)/'
6ca0e6973c8176100f4a426444823ae5e777e28fsaschaMESA_CFG_64:sh=arch | sed 's/^\(.*\)$/\$\(MESA_CFG_64_\1\)/'
3a47c2ef905c3b6483279637fb8054ca67c5b6ddsascha# Build Mesa demos
3a47c2ef905c3b6483279637fb8054ca67c5b6ddsascha (cd $(SOURCE_DIR)/configs && rm -f current && ln -s $(MESA_CFG) current)
3a47c2ef905c3b6483279637fb8054ca67c5b6ddsascha (cd $(DEMOS_DIR) && $(MAKE) $(MFLAGS) LDFLAGS="$(PROG_LDFLAGS)" glxgears )
22ad84685642948ad15cc1e881ecbc4ac8cbf98cmanoj (cd $(SOURCE_DIR)/configs && rm -f current && ln -s $(MESA_CFG) current)
22ad84685642948ad15cc1e881ecbc4ac8cbf98cmanoj (cd $(DEMOS_DIR) && $(MAKE) $(MFLAGS) LDFLAGS="$(PROG_LDFLAGS)" glxinfo )
22ad84685642948ad15cc1e881ecbc4ac8cbf98cmanoj# For testing - we don't ship the rest of these
22ad84685642948ad15cc1e881ecbc4ac8cbf98cmanoj (cd $(SOURCE_DIR)/configs && rm -f current && ln -s $(MESA_CFG) current)
22ad84685642948ad15cc1e881ecbc4ac8cbf98cmanoj (cd $(DEMOS_DIR) && $(MAKE) $(MFLAGS) LDFLAGS="$(PROG_LDFLAGS)")
aa811cad2eb3fc01d17a5c8eba274b915ab8cd20manoj $(MAKE) $(MFLAGS) BUILD_DIR=$(BUILD_DIR_32) ARCH_FLAGS="$(ARCH32_FLAGS)" $(BUILD_32_FLAGS) all-xdemos_gen