Makefile revision 527
8886caf5dc3db70638022ddfd5442c0930bd43b5Mark Andrews###############################################################################
8886caf5dc3db70638022ddfd5442c0930bd43b5Mark Andrews# Xorg server Makefile
8886caf5dc3db70638022ddfd5442c0930bd43b5Mark Andrews# Copyright 2008 Sun Microsystems, Inc. All rights reserved.
8886caf5dc3db70638022ddfd5442c0930bd43b5Mark Andrews# Use subject to license terms.
8886caf5dc3db70638022ddfd5442c0930bd43b5Mark Andrews# Permission is hereby granted, free of charge, to any person obtaining a
8886caf5dc3db70638022ddfd5442c0930bd43b5Mark Andrews# copy of this software and associated documentation files (the
8886caf5dc3db70638022ddfd5442c0930bd43b5Mark Andrews# "Software"), to deal in the Software without restriction, including
8886caf5dc3db70638022ddfd5442c0930bd43b5Mark Andrews# without limitation the rights to use, copy, modify, merge, publish,
8886caf5dc3db70638022ddfd5442c0930bd43b5Mark Andrews# distribute, and/or sell copies of the Software, and to permit persons
8886caf5dc3db70638022ddfd5442c0930bd43b5Mark Andrews# to whom the Software is furnished to do so, provided that the above
8886caf5dc3db70638022ddfd5442c0930bd43b5Mark Andrews# copyright notice(s) and this permission notice appear in all copies of
8886caf5dc3db70638022ddfd5442c0930bd43b5Mark Andrews# the Software and that both the above copyright notice(s) and this
8886caf5dc3db70638022ddfd5442c0930bd43b5Mark Andrews# permission notice appear in supporting documentation.
8886caf5dc3db70638022ddfd5442c0930bd43b5Mark Andrews# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS
8886caf5dc3db70638022ddfd5442c0930bd43b5Mark Andrews# OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
8886caf5dc3db70638022ddfd5442c0930bd43b5Mark Andrews# MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT
8886caf5dc3db70638022ddfd5442c0930bd43b5Mark Andrews# OF THIRD PARTY RIGHTS. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR
f41405d21249e11c1636301b1324ac1937b455aaMark Andrews# HOLDERS INCLUDED IN THIS NOTICE BE LIABLE FOR ANY CLAIM, OR ANY SPECIAL
8886caf5dc3db70638022ddfd5442c0930bd43b5Mark Andrews# INDIRECT OR CONSEQUENTIAL DAMAGES, OR ANY DAMAGES WHATSOEVER RESULTING
7e8f841d085cbd14b270f7bb9e2a2b7c5bc22565Mark Andrews# FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT,
7e8f841d085cbd14b270f7bb9e2a2b7c5bc22565Mark Andrews# NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION
8886caf5dc3db70638022ddfd5442c0930bd43b5Mark Andrews# WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
8886caf5dc3db70638022ddfd5442c0930bd43b5Mark Andrews# Except as contained in this notice, the name of a copyright holder
8886caf5dc3db70638022ddfd5442c0930bd43b5Mark Andrews# shall not be used in advertising or otherwise to promote the sale, use
8886caf5dc3db70638022ddfd5442c0930bd43b5Mark Andrews# or other dealings in this Software without prior written authorization
8886caf5dc3db70638022ddfd5442c0930bd43b5Mark Andrews# of the copyright holder.
8886caf5dc3db70638022ddfd5442c0930bd43b5Mark Andrews# @(#)Makefile 1.65 08/09/05
8886caf5dc3db70638022ddfd5442c0930bd43b5Mark Andrews# Build 32-bit or 64-bit?
7e8f841d085cbd14b270f7bb9e2a2b7c5bc22565Mark Andrews# Package name used in tarballs
8886caf5dc3db70638022ddfd5442c0930bd43b5Mark Andrews# Version number (used in path names)
8886caf5dc3db70638022ddfd5442c0930bd43b5Mark Andrews# Patches to apply to source after unpacking, in order
8886caf5dc3db70638022ddfd5442c0930bd43b5Mark Andrews# *** Moved to patch-list file so they can be shared between Xorg & Xvnc builds
8886caf5dc3db70638022ddfd5442c0930bd43b5Mark Andrews# Man pages to apply Sun footer to & attributes to list
8886caf5dc3db70638022ddfd5442c0930bd43b5Mark Andrews# XXX: Need to adjust some of these to correct packages/stability
88b3bc12b5570aae77e5963204e9111a2875915eAndreas Gustafsson hw/xfree86/utils/xorgconfig/xorgconfig.man.pre \
c05a979fda35c83d7fba16fee7859644e98a7450Mark AndrewsMODULE_SUNTOUCH_MAN_FLAGS= -p $(MODULE_PREFIX)/bin/
2a313f56e78e19ae6dc2315bb53bd32fad13ae29Mark Andrews# Compiler to use - x86 MMX code only builds with gcc, not Sun Studio, so use
60c2c8814f838f503333da5b2fd7e6792ca39c14Mark Andrews# gcc on x86 for now, but keep Sun Studio on SPARC
5a020bc04be73df06735da0ec1abb1dd71c755e5Mark Andrews# Binary built in tree
de90c0b2efac159580365beaa761a14bdb74330cMark AndrewsBUILD_TARGETS=fix-xf1bpp $(XORGSERVER_BIN) $(BUILD_DIR)/mapfile-Xorg-externs
e03d4ecce3b62bb0a02d2f5e2cc1a9549df08498Mark Andrews# Need to regenerate autoconf/automake files after patching
-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' >> $@