Makefile revision 156
f743002678eb67b99bbc29fee116b65d9530fec0wrowe###############################################################################
cc5a4a08dc9783fcbc52ce86f11e01c281a43810minfrin# Copyright 2007 Sun Microsystems, Inc. All rights reserved.
f2287adf33e3664c55b421fd65c45f0e05fe6977covener# Use subject to license terms.
f2287adf33e3664c55b421fd65c45f0e05fe6977covener# Permission is hereby granted, free of charge, to any person obtaining a
6e946fb27fa43424c6bed033ae9dcb5322938e99sf# copy of this software and associated documentation files (the
6e946fb27fa43424c6bed033ae9dcb5322938e99sf# "Software"), to deal in the Software without restriction, including
6e946fb27fa43424c6bed033ae9dcb5322938e99sf# without limitation the rights to use, copy, modify, merge, publish,
e5d909f2b06bd880fb3675cd49363df981caa631trawick# distribute, and/or sell copies of the Software, and to permit persons
a4df2cd1e1391575a327c2a90ba4315f805a0a78covener# to whom the Software is furnished to do so, provided that the above
a4df2cd1e1391575a327c2a90ba4315f805a0a78covener# copyright notice(s) and this permission notice appear in all copies of
a4df2cd1e1391575a327c2a90ba4315f805a0a78covener# the Software and that both the above copyright notice(s) and this
cb666b29f81df1d11d65002250153353568021fccovener# permission notice appear in supporting documentation.
cb666b29f81df1d11d65002250153353568021fccovener# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS
6a80c3c6f4b8ea7ba5e89402b8b779b09ce020e0covener# OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
1c2cab00d988fc48cbe59032cf76cc0bab20d6f7covener# MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT
6a80c3c6f4b8ea7ba5e89402b8b779b09ce020e0covener# OF THIRD PARTY RIGHTS. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR
45dffe6c346dd73571ccaead10295fc7d53b59a6covener# HOLDERS INCLUDED IN THIS NOTICE BE LIABLE FOR ANY CLAIM, OR ANY SPECIAL
45dffe6c346dd73571ccaead10295fc7d53b59a6covener# INDIRECT OR CONSEQUENTIAL DAMAGES, OR ANY DAMAGES WHATSOEVER RESULTING
45dffe6c346dd73571ccaead10295fc7d53b59a6covener# FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT,
75a230a728338d84dcfe81edd375352f34de22d0covener# NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION
75a230a728338d84dcfe81edd375352f34de22d0covener# WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
3694b0116c5729804ed6a5ce119bd8efda116c7fcovener# Except as contained in this notice, the name of a copyright holder
3694b0116c5729804ed6a5ce119bd8efda116c7fcovener# shall not be used in advertising or otherwise to promote the sale, use
3694b0116c5729804ed6a5ce119bd8efda116c7fcovener# or other dealings in this Software without prior written authorization
3694b0116c5729804ed6a5ce119bd8efda116c7fcovener# of the copyright holder.
1f50dc34ae069adeed20b2986e5ffdefa5c410e0covener# @(#)Makefile 1.5 07/05/15
986f3ea2c314d4d4b3b937149853a0f23f6119aaminfrin# Version number (used in path names)
65a4e663b82f8bce28ac22ab2edfd7502de36998sf# Source tarball
65a4e663b82f8bce28ac22ab2edfd7502de36998sf# Download site for source
c7de1955eb0eaeabf7042902476397692672d549sfSOURCE_URL=$(SF_DOWNLOADS_URL)/mesa3d/$(SOURCE_TARBALL_NAME)
509622419be000045d461ef38fb97df778fdf81djailletc# Patches to apply to source after unpacking, in order
0b9de55d178312ec929dbe417dd61199b269991djailletc# Directory created by unpacking source
74e7f6c55fd67b10cb400b3f6d1dc718a303d944minfrin# Binaries built in tree
2f073ef2a21b1725addef84f318a2b11541e912aminfrin# Where to install files
a511a29faf2ff7ead3b67680154a624effb31aafminfrin# What to build
a511a29faf2ff7ead3b67680154a624effb31aafminfrin### Include common rulesets
a7584fbbf39ae6a78586ed038d80c31b14ce5461minfrin### Rules specific to this directory:
2344a0c1817b88b6df61fc4ed0c6af66bb93ee6bjim# Merge in additional sources from Mesa library sun-src directory
63921358ef93fcb41bc71d9894221ba3d7fbb87bminfrin (cd $(SOURCE_DIR) && $(LNDIR) ../../../../lib/mesa/sun-src)
deec48c67d4786bc77112ffbf3a4e70b931097edminfrin# Only care about building X demos
6d601599d3d65df0410eae6e573e75b2dbfb1fb4minfrin# Mesa config file names
ef82e8fa164e0a1f8b813f7deb6b7ead96018c94niq# Build Mesa demos
ef82e8fa164e0a1f8b813f7deb6b7ead96018c94niq (cd $(SOURCE_DIR)/configs && rm -f current && ln -s $(MESA_CFG) current)
ef82e8fa164e0a1f8b813f7deb6b7ead96018c94niq (cd $(DEMOS_DIR) && $(MAKE) $(MFLAGS) LDFLAGS="$(PROG_LDFLAGS)" glxgears )
ef82e8fa164e0a1f8b813f7deb6b7ead96018c94niq (cd $(SOURCE_DIR)/configs && rm -f current && ln -s $(MESA_CFG) current)
ef82e8fa164e0a1f8b813f7deb6b7ead96018c94niq (cd $(DEMOS_DIR) && $(MAKE) $(MFLAGS) LDFLAGS="$(PROG_LDFLAGS)" glxinfo )
c12917da693bae4028a1d5a5e8224bceed8c739dsf# For testing - we don't ship the rest of these
eafcc0ebf263d0ba69855b6e10958c4c1a2361bdsf (cd $(SOURCE_DIR)/configs && rm -f current && ln -s $(MESA_CFG) current)
eafcc0ebf263d0ba69855b6e10958c4c1a2361bdsf (cd $(DEMOS_DIR) && $(MAKE) $(MFLAGS) LDFLAGS="$(PROG_LDFLAGS)")