Makefile revision 931
f059a046515f4b2b15a6c2a10a6f12f6166e39a5Timo Sirainen###############################################################################
f059a046515f4b2b15a6c2a10a6f12f6166e39a5Timo Sirainen# Xorg server Makefile
9f0f2de10e4ea0c99052bf4b2bef8179f2536228Timo Sirainen# Copyright 2010 Sun Microsystems, Inc. All rights reserved.
f059a046515f4b2b15a6c2a10a6f12f6166e39a5Timo Sirainen# Use is subject to license terms.
f059a046515f4b2b15a6c2a10a6f12f6166e39a5Timo Sirainen# Permission is hereby granted, free of charge, to any person obtaining a
f059a046515f4b2b15a6c2a10a6f12f6166e39a5Timo Sirainen# copy of this software and associated documentation files (the "Software"),
f059a046515f4b2b15a6c2a10a6f12f6166e39a5Timo Sirainen# to deal in the Software without restriction, including without limitation
9f0f2de10e4ea0c99052bf4b2bef8179f2536228Timo Sirainen# the rights to use, copy, modify, merge, publish, distribute, sublicense,
7bafda1813454621e03615e83d55bccfa7cc56bdTimo Sirainen# and/or sell copies of the Software, and to permit persons to whom the
7bafda1813454621e03615e83d55bccfa7cc56bdTimo Sirainen# Software is furnished to do so, subject to the following conditions:
7bafda1813454621e03615e83d55bccfa7cc56bdTimo Sirainen# The above copyright notice and this permission notice (including the next
7bafda1813454621e03615e83d55bccfa7cc56bdTimo Sirainen# paragraph) shall be included in all copies or substantial portions of the
7bafda1813454621e03615e83d55bccfa7cc56bdTimo Sirainen# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
7bafda1813454621e03615e83d55bccfa7cc56bdTimo Sirainen# IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
7bafda1813454621e03615e83d55bccfa7cc56bdTimo Sirainen# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL
7bafda1813454621e03615e83d55bccfa7cc56bdTimo Sirainen# THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
7bafda1813454621e03615e83d55bccfa7cc56bdTimo Sirainen# LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
7bafda1813454621e03615e83d55bccfa7cc56bdTimo Sirainen# FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER
7bafda1813454621e03615e83d55bccfa7cc56bdTimo Sirainen# DEALINGS IN THE SOFTWARE.
7bafda1813454621e03615e83d55bccfa7cc56bdTimo Sirainen# Build 32-bit or 64-bit?
f059a046515f4b2b15a6c2a10a6f12f6166e39a5Timo Sirainen# Package name used in tarballs
f059a046515f4b2b15a6c2a10a6f12f6166e39a5Timo Sirainen# Version number (used in path names)
f059a046515f4b2b15a6c2a10a6f12f6166e39a5Timo Sirainen# Checksums for upstream tarball
f059a046515f4b2b15a6c2a10a6f12f6166e39a5Timo SirainenTARBALL_SHA1 = 77a8c3dec86960e1be818df3a75d69b5fad6a3c0
7744586e3e0fd60158abfbb03a233d3bd8d6c48bTimo Sirainen# Patches to apply to source after unpacking, in order
7bafda1813454621e03615e83d55bccfa7cc56bdTimo Sirainen# *** Moved to patch-list file so they can be shared between Xorg & Xvnc builds
7744586e3e0fd60158abfbb03a233d3bd8d6c48bTimo Sirainen# Used in rules shared between Xorg & Xvnc builds in Makefile.inc
f059a046515f4b2b15a6c2a10a6f12f6166e39a5Timo Sirainen# to allow for different source layouts
f059a046515f4b2b15a6c2a10a6f12f6166e39a5Timo Sirainen# Man pages to apply Sun footer to & attributes to list
7744586e3e0fd60158abfbb03a233d3bd8d6c48bTimo Sirainen# XXX: Need to adjust some of these to correct packages/stability
f059a046515f4b2b15a6c2a10a6f12f6166e39a5Timo SirainenMODULE_SUNTOUCH_MAN_FLAGS= -p $(MODULE_PREFIX)/bin/
f059a046515f4b2b15a6c2a10a6f12f6166e39a5Timo Sirainen# Binary built in tree
f059a046515f4b2b15a6c2a10a6f12f6166e39a5Timo SirainenBUILD_TARGETS=$(XORGSERVER_BIN) build_mdb set-elf-comments \
-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' >> $@