Makefile revision 1097
5beae861ede7eba138c7140f195ae77ba3106cbffielding###############################################################################
5beae861ede7eba138c7140f195ae77ba3106cbffielding# Copyright (c) 2006, 2011, Oracle and/or its affiliates. All rights reserved.
5beae861ede7eba138c7140f195ae77ba3106cbffielding# Permission is hereby granted, free of charge, to any person obtaining a
5beae861ede7eba138c7140f195ae77ba3106cbffielding# copy of this software and associated documentation files (the "Software"),
5beae861ede7eba138c7140f195ae77ba3106cbffielding# to deal in the Software without restriction, including without limitation
5beae861ede7eba138c7140f195ae77ba3106cbffielding# the rights to use, copy, modify, merge, publish, distribute, sublicense,
5beae861ede7eba138c7140f195ae77ba3106cbffielding# and/or sell copies of the Software, and to permit persons to whom the
5beae861ede7eba138c7140f195ae77ba3106cbffielding# Software is furnished to do so, subject to the following conditions:
5beae861ede7eba138c7140f195ae77ba3106cbffielding# The above copyright notice and this permission notice (including the next
5beae861ede7eba138c7140f195ae77ba3106cbffielding# paragraph) shall be included in all copies or substantial portions of the
5beae861ede7eba138c7140f195ae77ba3106cbffielding# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
5beae861ede7eba138c7140f195ae77ba3106cbffielding# IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
5beae861ede7eba138c7140f195ae77ba3106cbffielding# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL
5beae861ede7eba138c7140f195ae77ba3106cbffielding# THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
5beae861ede7eba138c7140f195ae77ba3106cbffielding# LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
5beae861ede7eba138c7140f195ae77ba3106cbffielding# FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER
5beae861ede7eba138c7140f195ae77ba3106cbffielding# DEALINGS IN THE SOFTWARE.
5beae861ede7eba138c7140f195ae77ba3106cbffielding# Package name used in tarballs
5beae861ede7eba138c7140f195ae77ba3106cbffielding# Package metadata
5beae861ede7eba138c7140f195ae77ba3106cbffielding# pkg(5) name we deliver the files in (override default)
5beae861ede7eba138c7140f195ae77ba3106cbffielding# Version number (used in path names)
5beae861ede7eba138c7140f195ae77ba3106cbffielding# Checksums for upstream tarball
5beae861ede7eba138c7140f195ae77ba3106cbffieldingTARBALL_SHA1 = 8fc77885ae20f3b9cc22f65045a7573befbde2eb
5beae861ede7eba138c7140f195ae77ba3106cbffielding# Download site for source
5beae861ede7eba138c7140f195ae77ba3106cbffieldingSOURCE_URL=ftp://ftp.freedesktop.org/pub/mesa/demos/$(MODULE_VERSION)/$(SOURCE_TARBALL_NAME)
5beae861ede7eba138c7140f195ae77ba3106cbffielding# Patches to apply to source after unpacking, in order
5beae861ede7eba138c7140f195ae77ba3106cbffielding# Need to regenerate autoconf files after applying glew-config.patch
5beae861ede7eba138c7140f195ae77ba3106cbffielding# Binaries built in tree
5beae861ede7eba138c7140f195ae77ba3106cbffielding# Override some configure checks for libraries we don't need in the subset
5beae861ede7eba138c7140f195ae77ba3106cbffielding# we build & ship - have to set them to be non-empty strings though or
5beae861ede7eba138c7140f195ae77ba3106cbffielding# configure will fail.
5beae861ede7eba138c7140f195ae77ba3106cbffielding GLEW_CFLAGS="-I-have-no-GLEW-" GLEW_LIBS="-I-have-no-GLEW-"
5beae861ede7eba138c7140f195ae77ba3106cbffielding# What to build
5beae861ede7eba138c7140f195ae77ba3106cbffieldingBUILD_TARGETS= $(GLXGEARS_BIN) $(GLXINFO_BIN) $(MODTYPE_ADD_BUILD_TARGETS)
5beae861ede7eba138c7140f195ae77ba3106cbffielding# What to install
e38f3ccb1d1368339739ba98be433ec16b1967e4aaron### Include common rulesets
5beae861ede7eba138c7140f195ae77ba3106cbffielding### Rules specific to this directory:
dc333aed7402e0c09b9f9d6542fe0acb82823959lars# Only care about building X demos
9b12a8c4735e90e88bb42f2b03569c852834ef36rseDEMO_LDFLAGS=$(PROG_LDFLAGS) -L$(PROTODIR)$(X11_LIB_DIR)$(ARCHLIBSUBDIR) \
7b3ca63bf6e5fe39125b04327d321d61da0afe89jerenkrantz -L$(PROTODIR)$(X11_SERVERLIBS_DIR)$(ARCHLIBSUBDIR)
5beae861ede7eba138c7140f195ae77ba3106cbffielding# Flags passed on make command line when building
5beae861ede7eba138c7140f195ae77ba3106cbffielding# Build Mesa demos
5beae861ede7eba138c7140f195ae77ba3106cbffielding $(MODULE_MAKE) $(MAKEFLAGS) $(DEFAULT_BUILD_MAKEFLAGS) glxgears )
5beae861ede7eba138c7140f195ae77ba3106cbffielding$(GLXINFO_BIN): $(UNPACK_TARGET) $(CONFIGURE_TARGETS)
5beae861ede7eba138c7140f195ae77ba3106cbffielding $(MODULE_MAKE) $(MAKEFLAGS) $(DEFAULT_BUILD_MAKEFLAGS) glxinfo )
5beae861ede7eba138c7140f195ae77ba3106cbffielding# For testing - we don't ship the rest of these
5beae861ede7eba138c7140f195ae77ba3106cbffieldingall-xdemos_gen: $(UNPACK_TARGET) $(CONFIGURE_TARGETS)
5beae861ede7eba138c7140f195ae77ba3106cbffielding $(MODULE_MAKE) $(MAKEFLAGS) $(DEFAULT_BUILD_MAKEFLAGS))
5beae861ede7eba138c7140f195ae77ba3106cbffielding cp -pf $(GLXGEARS_BIN) $(GLXINFO_BIN) $(DESTDIR)$(MODULE_PREFIX)/bin