Makefile revision 1472
5b5046010dc014958659914f953b1197da4054acjiang wu - Sun Microsystems - Beijing China###############################################################################
5b5046010dc014958659914f953b1197da4054acjiang wu - Sun Microsystems - Beijing China# xf86-video-intel Makefile
5b5046010dc014958659914f953b1197da4054acjiang wu - Sun Microsystems - Beijing China# Copyright (c) 2006, 2014, Oracle and/or its affiliates. All rights reserved.
5b5046010dc014958659914f953b1197da4054acjiang wu - Sun Microsystems - Beijing China# Permission is hereby granted, free of charge, to any person obtaining a
5b5046010dc014958659914f953b1197da4054acjiang wu - Sun Microsystems - Beijing China# copy of this software and associated documentation files (the "Software"),
5b5046010dc014958659914f953b1197da4054acjiang wu - Sun Microsystems - Beijing China# to deal in the Software without restriction, including without limitation
5b5046010dc014958659914f953b1197da4054acjiang wu - Sun Microsystems - Beijing China# the rights to use, copy, modify, merge, publish, distribute, sublicense,
5b5046010dc014958659914f953b1197da4054acjiang wu - Sun Microsystems - Beijing China# and/or sell copies of the Software, and to permit persons to whom the
5b5046010dc014958659914f953b1197da4054acjiang wu - Sun Microsystems - Beijing China# Software is furnished to do so, subject to the following conditions:
5b5046010dc014958659914f953b1197da4054acjiang wu - Sun Microsystems - Beijing China# The above copyright notice and this permission notice (including the next
5b5046010dc014958659914f953b1197da4054acjiang wu - Sun Microsystems - Beijing China# paragraph) shall be included in all copies or substantial portions of the
5b5046010dc014958659914f953b1197da4054acjiang wu - Sun Microsystems - Beijing China# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
5b5046010dc014958659914f953b1197da4054acjiang wu - Sun Microsystems - Beijing China# IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
5b5046010dc014958659914f953b1197da4054acjiang wu - Sun Microsystems - Beijing China# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL
5b5046010dc014958659914f953b1197da4054acjiang wu - Sun Microsystems - Beijing China# THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
5b5046010dc014958659914f953b1197da4054acjiang wu - Sun Microsystems - Beijing China# LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
9814ff7f66c508579713f72e69cbb6271713c068Yong-Feng Du# FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER
5b5046010dc014958659914f953b1197da4054acjiang wu - Sun Microsystems - Beijing China# DEALINGS IN THE SOFTWARE.
5b5046010dc014958659914f953b1197da4054acjiang wu - Sun Microsystems - Beijing China# Package name used in tarballs
5b5046010dc014958659914f953b1197da4054acjiang wu - Sun Microsystems - Beijing ChinaMODULE_NAME=xf86-video-intel
5b5046010dc014958659914f953b1197da4054acjiang wu - Sun Microsystems - Beijing China# Version number (used in path names)
5b5046010dc014958659914f953b1197da4054acjiang wu - Sun Microsystems - Beijing ChinaMODULE_VERSION=2.21.5
5b5046010dc014958659914f953b1197da4054acjiang wu - Sun Microsystems - Beijing China# Checksums for upstream tarball
5b5046010dc014958659914f953b1197da4054acjiang wu - Sun Microsystems - Beijing ChinaTARBALL_MD5 = 0dac21775fc67149d1a8b61988b1386b
5b5046010dc014958659914f953b1197da4054acjiang wu - Sun Microsystems - Beijing ChinaTARBALL_SHA1 = 41aaf6ada255b4094cb6b6cab8f990079d676e29
5b5046010dc014958659914f953b1197da4054acjiang wu - Sun Microsystems - Beijing China# Patches to apply to source after unpacking, in order
5b5046010dc014958659914f953b1197da4054acjiang wu - Sun Microsystems - Beijing ChinaSOURCE_PATCHES= \
5b5046010dc014958659914f953b1197da4054acjiang wu - Sun Microsystems - Beijing China build-dri.patch \
5b5046010dc014958659914f953b1197da4054acjiang wu - Sun Microsystems - Beijing China batch.patch libraries.patch
5b5046010dc014958659914f953b1197da4054acjiang wu - Sun Microsystems - Beijing China# Man pages to apply Sun footer to & attributes to list
5b5046010dc014958659914f953b1197da4054acjiang wu - Sun Microsystems - Beijing ChinaSUNTOUCHED_MANPAGES=man/*.man
5b5046010dc014958659914f953b1197da4054acjiang wu - Sun Microsystems - Beijing ChinaMODULE_STABILITY=Volatile
5b5046010dc014958659914f953b1197da4054acjiang wu - Sun Microsystems - Beijing China# Need to build 32-bit libXvMC libraries even when X server is 64-bit only
5b5046010dc014958659914f953b1197da4054acjiang wu - Sun Microsystems - Beijing ChinaBUILD_TYPES=32 64
5b5046010dc014958659914f953b1197da4054acjiang wu - Sun Microsystems - Beijing ChinaBUILD_TYPES_SET=yes
5b5046010dc014958659914f953b1197da4054acjiang wu - Sun Microsystems - Beijing China# but we only want those libraries built in the 32-bit build, not the whole
5b5046010dc014958659914f953b1197da4054acjiang wu - Sun Microsystems - Beijing China# driver (which would overwrite the 64-bit driver)
5b5046010dc014958659914f953b1197da4054acjiang wu - Sun Microsystems - Beijing ChinaBUILD_TARGETS = build-in-subdir $(MODTYPE_ADD_BUILD_TARGETS)
5b5046010dc014958659914f953b1197da4054acjiang wu - Sun Microsystems - Beijing ChinaBUILD_TARGETS_32 = build_legacy_xvmc
5b5046010dc014958659914f953b1197da4054acjiang wu - Sun Microsystems - Beijing ChinaBUILD_TARGETS += $(BUILD_TARGETS_$(BUILD_TYPE))
5b5046010dc014958659914f953b1197da4054acjiang wu - Sun Microsystems - Beijing ChinaBUILD_TARGETS_SET=yes
5b5046010dc014958659914f953b1197da4054acjiang wu - Sun Microsystems - Beijing Chinasubdir_32 = $(BUILD_DIR)/src/xvmc
5b5046010dc014958659914f953b1197da4054acjiang wu - Sun Microsystems - Beijing Chinasubdir_64 = $(BUILD_DIR)
5b5046010dc014958659914f953b1197da4054acjiang wu - Sun Microsystems - Beijing Chinasubdir = $(subdir_$(BUILD_TYPE))
5b5046010dc014958659914f953b1197da4054acjiang wu - Sun Microsystems - Beijing Chinainstall_subdir_cmd = install
5b5046010dc014958659914f953b1197da4054acjiang wu - Sun Microsystems - Beijing ChinaINSTALL_TARGETS = install-in-subdir $(MODTYPE_ADD_INSTALL_TARGETS)
5b5046010dc014958659914f953b1197da4054acjiang wu - Sun Microsystems - Beijing ChinaINSTALL_TARGETS_32 = install_legacy_xvmc
5b5046010dc014958659914f953b1197da4054acjiang wu - Sun Microsystems - Beijing ChinaINSTALL_TARGETS_64 = install_docs
5b5046010dc014958659914f953b1197da4054acjiang wu - Sun Microsystems - Beijing ChinaINSTALL_TARGETS += $(INSTALL_TARGETS_$(BUILD_TYPE))
5b5046010dc014958659914f953b1197da4054acjiang wu - Sun Microsystems - Beijing ChinaINSTALL_TARGETS_SET=yes
5b5046010dc014958659914f953b1197da4054acjiang wu - Sun Microsystems - Beijing China# Intel driver doesn't work on some chipsets if built with Sun compiler
5b5046010dc014958659914f953b1197da4054acjiang wu - Sun Microsystems - Beijing ChinaMODULE_COMPILER=gcc
5b5046010dc014958659914f953b1197da4054acjiang wu - Sun Microsystems - Beijing ChinaMODULE_COMPILER_SET=yes
5b5046010dc014958659914f953b1197da4054acjiang wu - Sun Microsystems - Beijing China# Extra flags to pass to configure script
5b5046010dc014958659914f953b1197da4054acjiang wu - Sun Microsystems - Beijing China# --libdir is needed to set path for XvMC libraries
5b5046010dc014958659914f953b1197da4054acjiang wu - Sun Microsystems - Beijing ChinaMODULE_CONFIG_OPTS=--enable-dri --libdir='$(X11_LIB_DIR)$(ARCHLIBSUBDIR)' \
f2e8686e6101ad6ab3df43205537e610151b5434xun ni - Sun Microsystems - Beijing China --disable-sna --enable-uxa
5b5046010dc014958659914f953b1197da4054acjiang wu - Sun Microsystems - Beijing China# echo is set to workaround configure/libtool strangeness in 2.15.0 that
5b5046010dc014958659914f953b1197da4054acjiang wu - Sun Microsystems - Beijing China# causes ../../libtool: line 791: X--mode=install: command not found errors
5b5046010dc014958659914f953b1197da4054acjiang wu - Sun Microsystems - Beijing ChinaMODULE_CONFIG_ENV = echo=/usr/gnu/bin/echo
5b5046010dc014958659914f953b1197da4054acjiang wu - Sun Microsystems - Beijing ChinaMODULE_BUILD_ENV += echo=/usr/gnu/bin/echo
5b5046010dc014958659914f953b1197da4054acjiang wu - Sun Microsystems - Beijing China# Instead of allowing the default MODTYPE_LD_SHARED_OPTIONS to link everything
5b5046010dc014958659914f953b1197da4054acjiang wu - Sun Microsystems - Beijing China# against the Xorg server binary, libraries.patch adds the XORG_EXTERNS_FLAG
5b5046010dc014958659914f953b1197da4054acjiang wu - Sun Microsystems - Beijing China# variable to the link of just intel_drv.so not to the client-side XvMC libs.
76a4caf6c7b8f1c35d80a77bd8005aeae6197786AdaMODULE_BUILD_ENV += XORG_EXTERNS_FLAG='$(XORG_EXTERNS_FLAG)'
5b5046010dc014958659914f953b1197da4054acjiang wu - Sun Microsystems - Beijing China# Library paths at build time
5b5046010dc014958659914f953b1197da4054acjiang wu - Sun Microsystems - Beijing ChinaMODULE_LD_OPTIONS = \
5b5046010dc014958659914f953b1197da4054acjiang wu - Sun Microsystems - Beijing China -L$(PROTODIR)$(X11_SERVERMODS_DIR) \
5b5046010dc014958659914f953b1197da4054acjiang wu - Sun Microsystems - Beijing China -L$(PROTODIR)$(X11_SERVERLIBS_DIR)$(ARCHLIBSUBDIR) \
5b5046010dc014958659914f953b1197da4054acjiang wu - Sun Microsystems - Beijing China -L$(PROTODIR)$(X11_LIB_DIR)$(ARCHLIBSUBDIR)
5b5046010dc014958659914f953b1197da4054acjiang wu - Sun Microsystems - Beijing China# Need to regenerate configure & Makefile.in's after patching
5b5046010dc014958659914f953b1197da4054acjiang wu - Sun Microsystems - Beijing China# configure.ac & Makefile.am's in libraries.patch & build-dri.patch
5b5046010dc014958659914f953b1197da4054acjiang wu - Sun Microsystems - Beijing Chinainclude ../Makefile.inc
5b5046010dc014958659914f953b1197da4054acjiang wu - Sun Microsystems - Beijing Chinainstall_docs: $(INSTALL_DEPS)
5b5046010dc014958659914f953b1197da4054acjiang wu - Sun Microsystems - Beijing China mkdir -p $(PROTODIR)$(X11_DOC_DIR)
5b5046010dc014958659914f953b1197da4054acjiang wu - Sun Microsystems - Beijing China cp -pf $(SOURCE_DIR)/README $(PROTODIR)$(X11_DOC_DIR)/README.intel
5b5046010dc014958659914f953b1197da4054acjiang wu - Sun Microsystems - Beijing Chinabuild-in-subdir: $(BUILD_DEPS)
5b5046010dc014958659914f953b1197da4054acjiang wu - Sun Microsystems - Beijing Chinainstall-in-subdir: $(INSTALL_DEPS)
5b5046010dc014958659914f953b1197da4054acjiang wu - Sun Microsystems - Beijing ChinaLEGACY_XVMC_SUBDIR = $(BUILD_DIR)/src/legacy/i810/xvmc
5b5046010dc014958659914f953b1197da4054acjiang wu - Sun Microsystems - Beijing Chinabuild_legacy_xvmc: $(BUILD_DEPS)
5b5046010dc014958659914f953b1197da4054acjiang wu - Sun Microsystems - Beijing China $(DEFAULT_BUILD_COMMAND:@DIR@=$(LEGACY_XVMC_SUBDIR)) $(subdir_cmd)
5b5046010dc014958659914f953b1197da4054acjiang wu - Sun Microsystems - Beijing Chinainstall_legacy_xvmc: $(INSTALL_DEPS)
5b5046010dc014958659914f953b1197da4054acjiang wu - Sun Microsystems - Beijing China $(DEFAULT_INSTALL_COMMAND:@DIR@=$(LEGACY_XVMC_SUBDIR)) $(subdir_cmd) \