Makefile revision 1333
040abec2534dadc53ebc8fa378ef03f4feecb7dbvboxsync# Copyright (c) 2006, 2012, Oracle and/or its affiliates. All rights reserved.
040abec2534dadc53ebc8fa378ef03f4feecb7dbvboxsync# Permission is hereby granted, free of charge, to any person obtaining a
040abec2534dadc53ebc8fa378ef03f4feecb7dbvboxsync# copy of this software and associated documentation files (the "Software"),
040abec2534dadc53ebc8fa378ef03f4feecb7dbvboxsync# to deal in the Software without restriction, including without limitation
040abec2534dadc53ebc8fa378ef03f4feecb7dbvboxsync# the rights to use, copy, modify, merge, publish, distribute, sublicense,
040abec2534dadc53ebc8fa378ef03f4feecb7dbvboxsync# and/or sell copies of the Software, and to permit persons to whom the
040abec2534dadc53ebc8fa378ef03f4feecb7dbvboxsync# Software is furnished to do so, subject to the following conditions:
040abec2534dadc53ebc8fa378ef03f4feecb7dbvboxsync# The above copyright notice and this permission notice (including the next
040abec2534dadc53ebc8fa378ef03f4feecb7dbvboxsync# paragraph) shall be included in all copies or substantial portions of the
040abec2534dadc53ebc8fa378ef03f4feecb7dbvboxsync# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
040abec2534dadc53ebc8fa378ef03f4feecb7dbvboxsync# IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
040abec2534dadc53ebc8fa378ef03f4feecb7dbvboxsync# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL
040abec2534dadc53ebc8fa378ef03f4feecb7dbvboxsync# THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
040abec2534dadc53ebc8fa378ef03f4feecb7dbvboxsync# LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
040abec2534dadc53ebc8fa378ef03f4feecb7dbvboxsync# FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER
040abec2534dadc53ebc8fa378ef03f4feecb7dbvboxsync# DEALINGS IN THE SOFTWARE.
040abec2534dadc53ebc8fa378ef03f4feecb7dbvboxsync# Package name used in tarballs
040abec2534dadc53ebc8fa378ef03f4feecb7dbvboxsync# Package metadata
040abec2534dadc53ebc8fa378ef03f4feecb7dbvboxsync# Version number (used in path names)
040abec2534dadc53ebc8fa378ef03f4feecb7dbvboxsync# Checksums for upstream tarball
040abec2534dadc53ebc8fa378ef03f4feecb7dbvboxsyncTARBALL_SHA1 = c0e841850d7164c63d36f486ca3a64040357660e
040abec2534dadc53ebc8fa378ef03f4feecb7dbvboxsyncTARBALL_SHA256 = 386b17388980504bca16ede81ceed4c77b12c3488f46ecb7f4d48e48512a733d
040abec2534dadc53ebc8fa378ef03f4feecb7dbvboxsync# Library name (used for specfiles/mapfiles)
040abec2534dadc53ebc8fa378ef03f4feecb7dbvboxsync# Download site for source
040abec2534dadc53ebc8fa378ef03f4feecb7dbvboxsyncSOURCE_URL=http://dri.freedesktop.org/libdrm/$(SOURCE_TARBALL_NAME)
040abec2534dadc53ebc8fa378ef03f4feecb7dbvboxsync# Patches to apply to source after unpacking, in order
040abec2534dadc53ebc8fa378ef03f4feecb7dbvboxsync# Can't build tests with parfait yet, due to parfait-ld error:
040abec2534dadc53ebc8fa378ef03f4feecb7dbvboxsync# llvm-ld: error: Cannot link file '../../libkms/libkms.so.1.bc:
040abec2534dadc53ebc8fa378ef03f4feecb7dbvboxsync# Linking globals named 'drmSetServerInfo': symbol multiply defined!
040abec2534dadc53ebc8fa378ef03f4feecb7dbvboxsync$(WITH_PARFAIT) SOURCE_PATCHES += no-tests.patch,-p1
040abec2534dadc53ebc8fa378ef03f4feecb7dbvboxsync# Need to use GNU Make to build
040abec2534dadc53ebc8fa378ef03f4feecb7dbvboxsync# To build with gcc, uncomment these lines and comment out the MODULE_CFLAGS
040abec2534dadc53ebc8fa378ef03f4feecb7dbvboxsync# Tell Sun compiler to not apply optimizations that increase binary sizes
040abec2534dadc53ebc8fa378ef03f4feecb7dbvboxsync# Without this flag, Studio 12 binaries are almost 2x bigger (CR 6808868)
040abec2534dadc53ebc8fa378ef03f4feecb7dbvboxsync#MODULE_CFLAGS = -xspace
040abec2534dadc53ebc8fa378ef03f4feecb7dbvboxsyncMODULE_BUILD_MAKEFLAGS = libkms_la_LIBADD=../libdrm.so.2
040abec2534dadc53ebc8fa378ef03f4feecb7dbvboxsync# Command line options to GNU autoconf configure script
040abec2534dadc53ebc8fa378ef03f4feecb7dbvboxsyncMODULE_CONFIG_OPTS = --enable-libkms --disable-nouveau
040abec2534dadc53ebc8fa378ef03f4feecb7dbvboxsync# Man pages to apply Sun footer to & attributes to list
040abec2534dadc53ebc8fa378ef03f4feecb7dbvboxsync#SUNTOUCHED_MANPAGES=*.man
040abec2534dadc53ebc8fa378ef03f4feecb7dbvboxsync#MODULE_STABILITY=Volatile
040abec2534dadc53ebc8fa378ef03f4feecb7dbvboxsync#LIB_MAN_SUFFIX=3drm
040abec2534dadc53ebc8fa378ef03f4feecb7dbvboxsync# pkg-config files that need to have -R added
040abec2534dadc53ebc8fa378ef03f4feecb7dbvboxsyncFIX_PC_FILES=libdrm.pc.in intel/libdrm_intel.pc.in libkms/libkms.pc.in radeon/libdrm_radeon.pc
040abec2534dadc53ebc8fa378ef03f4feecb7dbvboxsync# Where to install files
040abec2534dadc53ebc8fa378ef03f4feecb7dbvboxsync# Upstream seems to install in $(X11_SERVERLIBS_SUBDIR)/pkgconfig no matter
040abec2534dadc53ebc8fa378ef03f4feecb7dbvboxsync# what, so just move them afterwards
040abec2534dadc53ebc8fa378ef03f4feecb7dbvboxsyncMOVED_PC_FILES = $(PC_FILES:%=$(PROTODIR)/$(PKGCONFIG_DIR)/%)
040abec2534dadc53ebc8fa378ef03f4feecb7dbvboxsyncXSERVER_PC_DIR = $(X11_SERVERLIBS_DIR)$(ARCHLIBSUBDIR)/pkgconfig
040abec2534dadc53ebc8fa378ef03f4feecb7dbvboxsync$(PROTODIR)/$(PKGCONFIG_DIR)/%.pc: $(PROTODIR)/$(XSERVER_PC_DIR)/%.pc