Makefile revision 1030
842ae4bd224140319ae7feec1872b93dfd491143fielding###############################################################################
842ae4bd224140319ae7feec1872b93dfd491143fielding# Xorg server Makefile
842ae4bd224140319ae7feec1872b93dfd491143fielding# Copyright (c) 2006, 2010, Oracle and/or its affiliates. All rights reserved.
b8d55029467b9f139d081cf38c6d06ff45e742a9nd# Permission is hereby granted, free of charge, to any person obtaining a
b8d55029467b9f139d081cf38c6d06ff45e742a9nd# copy of this software and associated documentation files (the "Software"),
b8d55029467b9f139d081cf38c6d06ff45e742a9nd# to deal in the Software without restriction, including without limitation
b8d55029467b9f139d081cf38c6d06ff45e742a9nd# the rights to use, copy, modify, merge, publish, distribute, sublicense,
b8d55029467b9f139d081cf38c6d06ff45e742a9nd# and/or sell copies of the Software, and to permit persons to whom the
b8d55029467b9f139d081cf38c6d06ff45e742a9nd# Software is furnished to do so, subject to the following conditions:
b8d55029467b9f139d081cf38c6d06ff45e742a9nd# The above copyright notice and this permission notice (including the next
b8d55029467b9f139d081cf38c6d06ff45e742a9nd# paragraph) shall be included in all copies or substantial portions of the
b8d55029467b9f139d081cf38c6d06ff45e742a9nd# Software.
09fe0b69d3d1e8c8041c9ce99ee77b8b44b5e3b1fielding# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
09fe0b69d3d1e8c8041c9ce99ee77b8b44b5e3b1fielding# IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
09fe0b69d3d1e8c8041c9ce99ee77b8b44b5e3b1fielding# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL
09fe0b69d3d1e8c8041c9ce99ee77b8b44b5e3b1fielding# THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
09fe0b69d3d1e8c8041c9ce99ee77b8b44b5e3b1fielding# LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
09fe0b69d3d1e8c8041c9ce99ee77b8b44b5e3b1fielding# FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER
09fe0b69d3d1e8c8041c9ce99ee77b8b44b5e3b1fielding# DEALINGS IN THE SOFTWARE.
09fe0b69d3d1e8c8041c9ce99ee77b8b44b5e3b1fielding# Build 32-bit or 64-bit?
09fe0b69d3d1e8c8041c9ce99ee77b8b44b5e3b1fielding# Package name used in tarballs
09fe0b69d3d1e8c8041c9ce99ee77b8b44b5e3b1fielding# Version number (used in path names)
09fe0b69d3d1e8c8041c9ce99ee77b8b44b5e3b1fielding# Checksums for upstream tarball
09fe0b69d3d1e8c8041c9ce99ee77b8b44b5e3b1fieldingTARBALL_SHA1 = 0f1b71363843b7e394d6de62d0db5b74d3e645ef
09fe0b69d3d1e8c8041c9ce99ee77b8b44b5e3b1fielding# Patches to apply to source after unpacking, in order
09fe0b69d3d1e8c8041c9ce99ee77b8b44b5e3b1fielding# *** Moved to patch-list file so they can be shared between Xorg & Xvnc builds
# Used in rules shared between Xorg & Xvnc builds in Makefile.inc
# Used in sun-manpage.patch to set distro name in Xserver man page
# DISTRO_NAME is set in open-src/common/Makefile.options.*
# Steps that need to complete before the install_fix_paths in ../Makefile.inc
-e 's%^.* _XSERVER64 .*$$%#include <sys/isa_defs.h>\
# Install xorg-server.pc in 32-bit pkgconfig dir on SPARC too
-rm -f $@
/usr/ccs/bin/nm -g $(XORGSERVER_BIN) $(PROTODIR)$(X11_SERVERLIBS_DIR)$(ARCHLIBSUBDIR)/libXfont.so | grep -v UNDEF | sed -n -e 's/^.*\|FUNC \|GLOB \|.*\|\([A-Za-z].*\)$$/ \1 = FUNCTION extern;/p' -e 's/^.*\|OBJT \|GLOB \|.*\|\([A-Za-z].*\)$$/ \1 = DATA extern;/p' >> $@
ln -s ../../../../..$(SERVERMOD_subdir:$(SUBDIR64)=..)/var/run/opengl/server/$(SERVERMOD_subdir)/libglx.so \
$(EXTRA_ATTRDATA_FILES) \
mkdir -p $@
@rm -f $@
mkdir -p $@
@rm -f $@
mkdir -p $@
@rm -f $@