Makefile revision 1447
98N/A############################################################################### 98N/A# Xorg server Makefile 1339N/A# Copyright (c) 2006, 2015, Oracle and/or its affiliates. All rights reserved. 98N/A# Permission is hereby granted, free of charge, to any person obtaining a 919N/A# copy of this software and associated documentation files (the "Software"), 919N/A# to deal in the Software without restriction, including without limitation 919N/A# the rights to use, copy, modify, merge, publish, distribute, sublicense, 919N/A# and/or sell copies of the Software, and to permit persons to whom the 919N/A# Software is furnished to do so, subject to the following conditions: 919N/A# The above copyright notice and this permission notice (including the next 919N/A# paragraph) shall be included in all copies or substantial portions of the 919N/A# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 919N/A# IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, 919N/A# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL 919N/A# THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER 919N/A# LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING 919N/A# FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER 919N/A# DEALINGS IN THE SOFTWARE. 98N/A# Package name used in tarballs 911N/A# Checksums for upstream tarball 98N/A# Patches to apply to source after unpacking, in order 235N/A# *** Moved to patch-list file so they can be shared between Xorg & Xvnc builds 916N/A# to allow for different source layouts 970N/A# ARC cases that covered this module 970N/A# PSARC/2004/187 Xorg Server for Solaris 970N/A# PSARC/2004/685 Xorg server upgrade to X11R6.8 release 970N/A# PSARC/2004/829 Xorg 6.8.2 server upgrade for Solaris 970N/A# PSARC/2005/450 Xorg 6.9 for Solaris 970N/A# PSARC/2006/609 Xserver provider for DTrace 970N/A# PSARC/2007/051 Xorg server upgrade to 7.2 970N/A# PSARC/2007/434 Xorg server 1.3 970N/A# PSARC/2007/500 X11 MIT-SHM Extension across zones 970N/A# PSARC/2008/294 Xorg driver selection based on VIS_GETIDENTIFIER 970N/A# PSARC/2009/021 Xorg server 1.5 970N/A# PSARC/2009/292 Xorg server 1.6 970N/A# PSARC/2009/679 Xorg server 1.7 1029N/A# PSARC/2010/109 Introduce libXcb in Solaris 1124N/A# PSARC/2011/008 Xorg server 1.9 1124N/A# PSARC/2010/382 Removal of 32-bit X servers 1124N/A# PSARC/2011/214 Xorg server 1.10 1303N/A# PSARC/2012/144 Xorg server 1.12 1351N/A# PSARC/2012/320 Xorg server 1.13 1351N/A# PSARC/2013/091 Xorg server 1.14 98N/A# Man pages to apply Sun footer to & attributes to list 1124N/A# Override specific attributes for specific man pages 98N/A# Xephyr, Xvfb, and Xdmx are split out into their own packages 493N/A# Need to convert dtrace docs from xml to text/html ourselves, since 493N/A# Solaris doesn't bundle the xmlto tool used upstream 965N/A# Command line options to GNU autoconf configure script 1351N/A# Pass linker mapfile listing symbols that modules can count on resolving 1196N/A# from the Xorg binary itself 851N/A# Disable direct binding in shared objects, since it breaks libglx.so 851N/A# Optimization doesn't always remove unused inline functions, leaving many 851N/A# binaries referencing pixman symbols that normally don't need them. The 98N/A# $(ZDISCARD_UNUSED_DEP) in LD_OPTIONS should avoid adding it when 591N/A# pkg-config files that need to have -R added 1201N/A# Remove compiler specific visibility flag that breaks builds of drivers 910N/A# Additional configure time targets beyond the defaults 1030N/A# Additional install targets beyond the defaults 970N/A# Have to avoid dependency loop between install_pc_common and 1097N/A# install_pkgconfig_uninstalled 910N/A# Merge in additional sources from sun-src directory 1193N/A# Binaries that were linked to isaexec on x86 to choose 32-bit or 64-bit, 1193N/A# now just symlinks from amd64 to parent directory 606N/A# Don't include build date & time in delivered binaries as it just causes 98N/A# unnecessary binary differences to be pulled into package updates, but 591N/A# leave it in debug builds for developer convenience 1088N/A sed -e
's%#define XF86DRI 1%/* #define XF86DRI 1 */%' \
212N/A# Workaround bug in installing pkgconfig file to wrong directory in 64-bit 98N/A# Generate a list of exported functions & data objects so that we can verify 1196N/A# loadable modules don't reference symbols that have been deleted or renamed. 1196N/A'BEGIN { print "\043 Functions exported by Xorg server to loadable modules" ; \ 908N/A print "\n\044mapfile_version 2\n\nSYMBOL_SCOPE {\n\tglobal:" } \ 963N/A $$7 ~ /UNDEF|\.tdata/ { next } \ 963N/A $$5 !~ /GLOB/ { next } \ 963N/A $$8 ~ /^(__|_edata|_end|_etext|_start|_environ|_lib_version)/ { next } \ 963N/A $$4 ~ /FUNC/ && $$7 ~ /\.text/ { printf "\t\t%-40s { FLAGS = EXTERN };\n", $$8 } \ 963N/A $$4 ~ /OBJT/ && $$7 ~ /data|bss/ { printf "\t\t%-40s { FLAGS = EXTERN };\n", $$8}' 970N/A# Fix paths in proto area to match paths in packages / installed systems 970N/A# Install metadata for Xephyr, Xvfb, Xdmx, & xtsol packages too 1030N/A# Build & install mdb modules & scripts that aren't integrated to 1030N/A# Since configure options aren't used to build the mdb modules, pass 1030N/A# those variables at build time