Makefile revision 235
29949e866e40b95795203f3ee46f44a197c946e4stevel###############################################################################
29949e866e40b95795203f3ee46f44a197c946e4stevel# Xorg server Makefile
29949e866e40b95795203f3ee46f44a197c946e4stevel# Copyright 2007 Sun Microsystems, Inc. All rights reserved.
29949e866e40b95795203f3ee46f44a197c946e4stevel# Use subject to license terms.
29949e866e40b95795203f3ee46f44a197c946e4stevel# Permission is hereby granted, free of charge, to any person obtaining a
29949e866e40b95795203f3ee46f44a197c946e4stevel# copy of this software and associated documentation files (the
29949e866e40b95795203f3ee46f44a197c946e4stevel# "Software"), to deal in the Software without restriction, including
29949e866e40b95795203f3ee46f44a197c946e4stevel# without limitation the rights to use, copy, modify, merge, publish,
29949e866e40b95795203f3ee46f44a197c946e4stevel# distribute, and/or sell copies of the Software, and to permit persons
29949e866e40b95795203f3ee46f44a197c946e4stevel# to whom the Software is furnished to do so, provided that the above
29949e866e40b95795203f3ee46f44a197c946e4stevel# copyright notice(s) and this permission notice appear in all copies of
29949e866e40b95795203f3ee46f44a197c946e4stevel# the Software and that both the above copyright notice(s) and this
29949e866e40b95795203f3ee46f44a197c946e4stevel# permission notice appear in supporting documentation.
29949e866e40b95795203f3ee46f44a197c946e4stevel# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS
29949e866e40b95795203f3ee46f44a197c946e4stevel# OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
29949e866e40b95795203f3ee46f44a197c946e4stevel# MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT
29949e866e40b95795203f3ee46f44a197c946e4stevel# OF THIRD PARTY RIGHTS. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR
29949e866e40b95795203f3ee46f44a197c946e4stevel# HOLDERS INCLUDED IN THIS NOTICE BE LIABLE FOR ANY CLAIM, OR ANY SPECIAL
29949e866e40b95795203f3ee46f44a197c946e4stevel# INDIRECT OR CONSEQUENTIAL DAMAGES, OR ANY DAMAGES WHATSOEVER RESULTING
29949e866e40b95795203f3ee46f44a197c946e4stevel# FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT,
89b43686db1fe9681d80a7cf5662730cb9378caeBayard Bell# NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION
29949e866e40b95795203f3ee46f44a197c946e4stevel# WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
29949e866e40b95795203f3ee46f44a197c946e4stevel# Except as contained in this notice, the name of a copyright holder
29949e866e40b95795203f3ee46f44a197c946e4stevel# shall not be used in advertising or otherwise to promote the sale, use
29949e866e40b95795203f3ee46f44a197c946e4stevel# or other dealings in this Software without prior written authorization
29949e866e40b95795203f3ee46f44a197c946e4stevel# of the copyright holder.
29949e866e40b95795203f3ee46f44a197c946e4stevel# @(#)Makefile 1.60 07/10/11
29949e866e40b95795203f3ee46f44a197c946e4stevel# Build 32-bit or 64-bit?
29949e866e40b95795203f3ee46f44a197c946e4stevel# Package name used in tarballs
29949e866e40b95795203f3ee46f44a197c946e4stevel# Name used in server-specific rules in ../Makefile.inc
29949e866e40b95795203f3ee46f44a197c946e4stevel# Source tarball
29949e866e40b95795203f3ee46f44a197c946e4stevelSOURCE_TARBALL_NAME=$(MODULE_NAME)-$(XORGSERVER_VERS).tar.bz2
29949e866e40b95795203f3ee46f44a197c946e4stevel# Patches to apply to source after unpacking, in order
29949e866e40b95795203f3ee46f44a197c946e4stevel# *** Moved to patch-list file so they can be shared between Xorg & Xvnc builds
29949e866e40b95795203f3ee46f44a197c946e4stevel# Directory created by unpacking source
29949e866e40b95795203f3ee46f44a197c946e4stevelSOURCE_DIR=$(BUILD_DIR)/$(MODULE_NAME)-$(XORGSERVER_VERS)
29949e866e40b95795203f3ee46f44a197c946e4stevel# Man pages to apply Sun footer to & attributes to list
29949e866e40b95795203f3ee46f44a197c946e4stevel# XXX: Need to adjust some of these to correct packages/stability
89b43686db1fe9681d80a7cf5662730cb9378caeBayard Bell -a '{Availability, SUNWxorg-server} {Interface Stability, Volatile}'
29949e866e40b95795203f3ee46f44a197c946e4stevel# Compiler to use - x86 MMX code only builds with gcc, not Sun Studio, so use
29949e866e40b95795203f3ee46f44a197c946e4stevel# gcc on x86 for now, but keep Sun Studio on SPARC
29949e866e40b95795203f3ee46f44a197c946e4stevel# Binary built in tree
29949e866e40b95795203f3ee46f44a197c946e4stevelBUILD_TARGETS=$(XORGSERVER_BIN) $(BUILD_DIR)/mapfile-Xorg-externs
29949e866e40b95795203f3ee46f44a197c946e4stevel# Merge in additional sources from sun-src directory
29949e866e40b95795203f3ee46f44a197c946e4stevel# Command line options to GNU autoconf configure script
29949e866e40b95795203f3ee46f44a197c946e4stevel# XXX: --disable-dga
-e 's%^.* _XSERVER64 .*$$%#include <sys/isa_defs.h>\
cp -p $(SOURCE_DIR)/hw/xfree86/os-support/bus/xf86Sbus.h $(PROTODIR)$(X11_INCLUDES_DIR)/xorg/xf86Sbus.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' >> $@