Makefile revision 156
f743002678eb67b99bbc29fee116b65d9530fec0wrowe###############################################################################
80833bb9a1bf25dcf19e814438a4b311d2e1f4cffuankg#
cc5a4a08dc9783fcbc52ce86f11e01c281a43810minfrin# Copyright 2007 Sun Microsystems, Inc. All rights reserved.
f2287adf33e3664c55b421fd65c45f0e05fe6977covener# Use subject to license terms.
f2287adf33e3664c55b421fd65c45f0e05fe6977covener#
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#
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.
75a230a728338d84dcfe81edd375352f34de22d0covener#
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#
1f50dc34ae069adeed20b2986e5ffdefa5c410e0covener# @(#)Makefile 1.5 07/05/15
1f50dc34ae069adeed20b2986e5ffdefa5c410e0covener#
63a5ea80bddcc84a462e40f402b4f330e0e05411covener
63a5ea80bddcc84a462e40f402b4f330e0e05411covenerPWD:sh=pwd
63a5ea80bddcc84a462e40f402b4f330e0e05411covenerTOP=$(PWD)/../..
63a5ea80bddcc84a462e40f402b4f330e0e05411covener
986f3ea2c314d4d4b3b937149853a0f23f6119aaminfrin# Version number (used in path names)
986f3ea2c314d4d4b3b937149853a0f23f6119aaminfrinMESA_VERS=6.5.2
986f3ea2c314d4d4b3b937149853a0f23f6119aaminfrin
65a4e663b82f8bce28ac22ab2edfd7502de36998sf# Source tarball
65a4e663b82f8bce28ac22ab2edfd7502de36998sfSOURCE_TARBALL_NAME=MesaDemos-$(MESA_VERS).tar.bz2
65a4e663b82f8bce28ac22ab2edfd7502de36998sf
65a4e663b82f8bce28ac22ab2edfd7502de36998sf# Download site for source
c7de1955eb0eaeabf7042902476397692672d549sfSOURCE_URL=$(SF_DOWNLOADS_URL)/mesa3d/$(SOURCE_TARBALL_NAME)
509622419be000045d461ef38fb97df778fdf81djailletcSOURCE_URL_SET=yes
509622419be000045d461ef38fb97df778fdf81djailletc
509622419be000045d461ef38fb97df778fdf81djailletc# Patches to apply to source after unpacking, in order
509622419be000045d461ef38fb97df778fdf81djailletcSOURCE_PATCHES= \
0b9de55d178312ec929dbe417dd61199b269991djailletc null-display.patch \
0b9de55d178312ec929dbe417dd61199b269991djailletc Xorg-6.9-changes.patch
0b9de55d178312ec929dbe417dd61199b269991djailletc
0b9de55d178312ec929dbe417dd61199b269991djailletc# Directory created by unpacking source
74e7f6c55fd67b10cb400b3f6d1dc718a303d944minfrinSOURCE_DIR=$(BUILD_DIR)/Mesa-$(MESA_VERS)
74e7f6c55fd67b10cb400b3f6d1dc718a303d944minfrin
74e7f6c55fd67b10cb400b3f6d1dc718a303d944minfrin# Binaries built in tree
74e7f6c55fd67b10cb400b3f6d1dc718a303d944minfrinGLXGEARS_BIN=$(SOURCE_DIR)/progs/xdemos/glxgears
2f073ef2a21b1725addef84f318a2b11541e912aminfrinGLXINFO_BIN=$(SOURCE_DIR)/progs/xdemos/glxinfo
2f073ef2a21b1725addef84f318a2b11541e912aminfrin
2f073ef2a21b1725addef84f318a2b11541e912aminfrin# Where to install files
2f073ef2a21b1725addef84f318a2b11541e912aminfrinMESA_prefix=$(PROTODIR)/usr/X11
a511a29faf2ff7ead3b67680154a624effb31aafminfrin
a511a29faf2ff7ead3b67680154a624effb31aafminfrin# What to build
a511a29faf2ff7ead3b67680154a624effb31aafminfrinBUILD_TARGETS=$(GLXGEARS_BIN) $(GLXINFO_BIN)
a511a29faf2ff7ead3b67680154a624effb31aafminfrin
a511a29faf2ff7ead3b67680154a624effb31aafminfrin### Include common rulesets
a7584fbbf39ae6a78586ed038d80c31b14ce5461minfrininclude $(TOP)/common/Makefile.inc
a7584fbbf39ae6a78586ed038d80c31b14ce5461minfrin
a7584fbbf39ae6a78586ed038d80c31b14ce5461minfrin### Rules specific to this directory:
a7584fbbf39ae6a78586ed038d80c31b14ce5461minfrin
2344a0c1817b88b6df61fc4ed0c6af66bb93ee6bjim# Merge in additional sources from Mesa library sun-src directory
2344a0c1817b88b6df61fc4ed0c6af66bb93ee6bjimsource_gen:: $(LNDIR)
2344a0c1817b88b6df61fc4ed0c6af66bb93ee6bjim mkdir -p $(SOURCE_DIR)
63921358ef93fcb41bc71d9894221ba3d7fbb87bminfrin (cd $(SOURCE_DIR) && $(LNDIR) ../../../../lib/mesa/sun-src)
63921358ef93fcb41bc71d9894221ba3d7fbb87bminfrin (cd $(SOURCE_DIR)/configs && touch default)
63921358ef93fcb41bc71d9894221ba3d7fbb87bminfrin
deec48c67d4786bc77112ffbf3a4e70b931097edminfrin# Only care about building X demos
6d601599d3d65df0410eae6e573e75b2dbfb1fb4minfrinDEMOS_DIR=$(SOURCE_DIR)/progs/xdemos
6d601599d3d65df0410eae6e573e75b2dbfb1fb4minfrin
6d601599d3d65df0410eae6e573e75b2dbfb1fb4minfrin# Mesa config file names
6d601599d3d65df0410eae6e573e75b2dbfb1fb4minfrinMESA_CFG_32_sparc=sunos5-v8
2c487ac43b583db869e743772a7a10b278aa2bcfminfrinMESA_CFG_64_sparc=sunos5-v9
2c487ac43b583db869e743772a7a10b278aa2bcfminfrinMESA_CFG_32_i386=solaris-x86-cc-dri
2c487ac43b583db869e743772a7a10b278aa2bcfminfrinMESA_CFG_64_i386=solaris-x64-cc-dri
2c487ac43b583db869e743772a7a10b278aa2bcfminfrin
2c487ac43b583db869e743772a7a10b278aa2bcfminfrinMESA_CFG_32= $(MESA_CFG_32_$(MACH))
684e0cfc200f66287a93bbd1708d1dd8a92a7eefcovenerMESA_CFG_64= $(MESA_CFG_64_$(MACH))
684e0cfc200f66287a93bbd1708d1dd8a92a7eefcovener
5c43d2fb853f84497b5ece2d414ef9484aa87e5fsfBUILD_32_FLAGS= MESA_CFG=$(MESA_CFG_32)
05a5a9c3e16f21566e1b61f4bd68025ce1b741ccjoesBUILD_64_FLAGS= MESA_CFG=$(MESA_CFG_64)
05a5a9c3e16f21566e1b61f4bd68025ce1b741ccjoes
ef82e8fa164e0a1f8b813f7deb6b7ead96018c94niq# Build Mesa demos
26c5829347f6a355c00f1ba0301d575056b69536niq$(GLXGEARS_BIN): $(UNPACK_TARGET)
ef82e8fa164e0a1f8b813f7deb6b7ead96018c94niq (cd $(SOURCE_DIR)/configs && rm -f current && ln -s $(MESA_CFG) current)
ef82e8fa164e0a1f8b813f7deb6b7ead96018c94niq (cd $(DEMOS_DIR) && $(MAKE) $(MFLAGS) LDFLAGS="$(PROG_LDFLAGS)" glxgears )
ef82e8fa164e0a1f8b813f7deb6b7ead96018c94niq
ef82e8fa164e0a1f8b813f7deb6b7ead96018c94niq$(GLXINFO_BIN): $(UNPACK_TARGET)
ef82e8fa164e0a1f8b813f7deb6b7ead96018c94niq (cd $(SOURCE_DIR)/configs && rm -f current && ln -s $(MESA_CFG) current)
ef82e8fa164e0a1f8b813f7deb6b7ead96018c94niq (cd $(DEMOS_DIR) && $(MAKE) $(MFLAGS) LDFLAGS="$(PROG_LDFLAGS)" glxinfo )
413ee814748f37be168ff12407fa6dba0ceeabe6trawick
c12917da693bae4028a1d5a5e8224bceed8c739dsf# For testing - we don't ship the rest of these
c12917da693bae4028a1d5a5e8224bceed8c739dsfall-xdemos_gen: $(UNPACK_TARGET)
eafcc0ebf263d0ba69855b6e10958c4c1a2361bdsf (cd $(SOURCE_DIR)/configs && rm -f current && ln -s $(MESA_CFG) current)
eafcc0ebf263d0ba69855b6e10958c4c1a2361bdsf (cd $(DEMOS_DIR) && $(MAKE) $(MFLAGS) LDFLAGS="$(PROG_LDFLAGS)")
eafcc0ebf263d0ba69855b6e10958c4c1a2361bdsf
eafcc0ebf263d0ba69855b6e10958c4c1a2361bdsfall-xdemos:
eafcc0ebf263d0ba69855b6e10958c4c1a2361bdsf $(MAKE) $(MFLAGS) BUILD_DIR=$(BUILD_DIR_32) ARCH_FLAGS="$(ARCH32_FLAGS)" $(BUILD_32_FLAGS) all-xdemos_gen
d7ffd2da16d58b1a0de212e4d56f7aebb72bef26sf
d7ffd2da16d58b1a0de212e4d56f7aebb72bef26sfinstall_gen: $(GLXGEARS_BIN) $(GLXINFO_BIN)
d7ffd2da16d58b1a0de212e4d56f7aebb72bef26sf cp -p $(GLXGEARS_BIN) $(GLXINFO_BIN) $(MESA_prefix)/bin
4576c1a9ef54cd1e5555ee07d016a7f559f80338sf
4576c1a9ef54cd1e5555ee07d016a7f559f80338sf
4576c1a9ef54cd1e5555ee07d016a7f559f80338sf