Makefile revision 326
424bbf2925717f8fb65eacb38aa67959c4cce3b1Trond Norbye###############################################################################
424bbf2925717f8fb65eacb38aa67959c4cce3b1Trond Norbye# Copyright 2007 Sun Microsystems, Inc. All rights reserved.
424bbf2925717f8fb65eacb38aa67959c4cce3b1Trond Norbye# Use subject to license terms.
424bbf2925717f8fb65eacb38aa67959c4cce3b1Trond Norbye# Permission is hereby granted, free of charge, to any person obtaining a
424bbf2925717f8fb65eacb38aa67959c4cce3b1Trond Norbye# copy of this software and associated documentation files (the
424bbf2925717f8fb65eacb38aa67959c4cce3b1Trond Norbye# "Software"), to deal in the Software without restriction, including
424bbf2925717f8fb65eacb38aa67959c4cce3b1Trond Norbye# without limitation the rights to use, copy, modify, merge, publish,
424bbf2925717f8fb65eacb38aa67959c4cce3b1Trond Norbye# distribute, and/or sell copies of the Software, and to permit persons
477c09a2656e6a2c1075425ad81e61d594164fa9Lubos Kosco# to whom the Software is furnished to do so, provided that the above
424bbf2925717f8fb65eacb38aa67959c4cce3b1Trond Norbye# copyright notice(s) and this permission notice appear in all copies of
424bbf2925717f8fb65eacb38aa67959c4cce3b1Trond Norbye# the Software and that both the above copyright notice(s) and this
424bbf2925717f8fb65eacb38aa67959c4cce3b1Trond Norbye# permission notice appear in supporting documentation.
424bbf2925717f8fb65eacb38aa67959c4cce3b1Trond Norbye# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS
424bbf2925717f8fb65eacb38aa67959c4cce3b1Trond Norbye# OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
477c09a2656e6a2c1075425ad81e61d594164fa9Lubos Kosco# MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT
6d7c6f82e644c205bc679ee5b1fa2929ec949963Lubos Kosco# OF THIRD PARTY RIGHTS. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR
424bbf2925717f8fb65eacb38aa67959c4cce3b1Trond Norbye# HOLDERS INCLUDED IN THIS NOTICE BE LIABLE FOR ANY CLAIM, OR ANY SPECIAL
424bbf2925717f8fb65eacb38aa67959c4cce3b1Trond Norbye# INDIRECT OR CONSEQUENTIAL DAMAGES, OR ANY DAMAGES WHATSOEVER RESULTING
424bbf2925717f8fb65eacb38aa67959c4cce3b1Trond Norbye# FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT,
424bbf2925717f8fb65eacb38aa67959c4cce3b1Trond Norbye# NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION
3c4aab151d1a59932f673f7d58127e0401cd0fbdKnut Anders Hatlen# WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
424bbf2925717f8fb65eacb38aa67959c4cce3b1Trond Norbye# Except as contained in this notice, the name of a copyright holder
424bbf2925717f8fb65eacb38aa67959c4cce3b1Trond Norbye# shall not be used in advertising or otherwise to promote the sale, use
424bbf2925717f8fb65eacb38aa67959c4cce3b1Trond Norbye# or other dealings in this Software without prior written authorization
424bbf2925717f8fb65eacb38aa67959c4cce3b1Trond Norbye# of the copyright holder.
424bbf2925717f8fb65eacb38aa67959c4cce3b1Trond Norbye# @(#)Makefile 1.9 07/07/11
424bbf2925717f8fb65eacb38aa67959c4cce3b1Trond Norbye# Build 32-bit, 64-bit, or both?
3c4aab151d1a59932f673f7d58127e0401cd0fbdKnut Anders Hatlen# Version number (used in path names)
3c4aab151d1a59932f673f7d58127e0401cd0fbdKnut Anders Hatlen# Source tarball
424bbf2925717f8fb65eacb38aa67959c4cce3b1Trond NorbyeSOURCE_TARBALL_NAME=MesaLib-$(MESA_VERS).tar.bz2
424bbf2925717f8fb65eacb38aa67959c4cce3b1Trond Norbye# Download site for source
424bbf2925717f8fb65eacb38aa67959c4cce3b1Trond NorbyeSOURCE_URL=$(SF_DOWNLOADS_URL)/mesa3d/$(SOURCE_TARBALL_NAME)
980d346f8cb17af1bca5def7cdbea8531881009aKnut Anders Hatlen# Patches to apply to source after unpacking, in order
LIBDRM_LIB = -L$(PROTODIR)$(X11_SERVERLIBS_DIR)$(ARCHLIBSUBDIR) -R$(X11_SERVERLIBS_DIR)$(ARCHLIBSUBDIR) -ldrm
MESA_MAKEVARS= SHELL=/bin/ksh PASSED_CFLAGS="$(MESA_CFLAGS)" PASSED_INCLUDES="$(MESA_INCLUDES)" ARCH_FLAGS="" LIBDRM_CFLAGS="$(LIBDRM_CFLAGS)" LIBDRM_LIB="$(LIBDRM_LIB)"
MESA_MAKEENV= PKG_CONFIG_PATH=$(PROTODIR)/usr/lib$(ARCHLIBSUBDIR)/pkgconfig:$(TOP)/common/pc-files/$(BUILD_DIR):/usr/lib$(ARCHLIBSUBDIR)/pkgconfig
(cd $(SOURCE_DIR) && $(GNUMAKE) $(MFLAGS) -e DESTDIR=$(PROTODIR) ARCHLIBSUBDIR=$(ARCHLIBSUBDIR) install )