Makefile revision 810
080575042aba2197b425ebfd52061dea061a9aa1xy###############################################################################
080575042aba2197b425ebfd52061dea061a9aa1xy# X11 1.x Makefile
080575042aba2197b425ebfd52061dea061a9aa1xy# Copyright 2009 Sun Microsystems, Inc. All rights reserved.
080575042aba2197b425ebfd52061dea061a9aa1xy# Use is subject to license terms.
080575042aba2197b425ebfd52061dea061a9aa1xy# Permission is hereby granted, free of charge, to any person obtaining a
d5c3073dbbd835e1e9b7dca0c6c770cf3cc20afachenlu chen - Sun Microsystems - Beijing China# copy of this software and associated documentation files (the
080575042aba2197b425ebfd52061dea061a9aa1xy# "Software"), to deal in the Software without restriction, including
080575042aba2197b425ebfd52061dea061a9aa1xy# without limitation the rights to use, copy, modify, merge, publish,
080575042aba2197b425ebfd52061dea061a9aa1xy# distribute, and/or sell copies of the Software, and to permit persons
080575042aba2197b425ebfd52061dea061a9aa1xy# to whom the Software is furnished to do so, provided that the above
080575042aba2197b425ebfd52061dea061a9aa1xy# copyright notice(s) and this permission notice appear in all copies of
080575042aba2197b425ebfd52061dea061a9aa1xy# the Software and that both the above copyright notice(s) and this
080575042aba2197b425ebfd52061dea061a9aa1xy# permission notice appear in supporting documentation.
080575042aba2197b425ebfd52061dea061a9aa1xy# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS
080575042aba2197b425ebfd52061dea061a9aa1xy# OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
080575042aba2197b425ebfd52061dea061a9aa1xy# MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT
d5c3073dbbd835e1e9b7dca0c6c770cf3cc20afachenlu chen - Sun Microsystems - Beijing China# OF THIRD PARTY RIGHTS. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR
f0f2c3a5cf65a61de34af42edac38b2a7bda3416Girish Moodalbail# HOLDERS INCLUDED IN THIS NOTICE BE LIABLE FOR ANY CLAIM, OR ANY SPECIAL
080575042aba2197b425ebfd52061dea061a9aa1xy# INDIRECT OR CONSEQUENTIAL DAMAGES, OR ANY DAMAGES WHATSOEVER RESULTING
080575042aba2197b425ebfd52061dea061a9aa1xy# FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT,
080575042aba2197b425ebfd52061dea061a9aa1xy# NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION
080575042aba2197b425ebfd52061dea061a9aa1xy# WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
080575042aba2197b425ebfd52061dea061a9aa1xy# Except as contained in this notice, the name of a copyright holder
080575042aba2197b425ebfd52061dea061a9aa1xy# shall not be used in advertising or otherwise to promote the sale, use
080575042aba2197b425ebfd52061dea061a9aa1xy# or other dealings in this Software without prior written authorization
080575042aba2197b425ebfd52061dea061a9aa1xy# of the copyright holder.
080575042aba2197b425ebfd52061dea061a9aa1xy# ident "@(#)Makefile 1.23 09/10/13 SMI"
080575042aba2197b425ebfd52061dea061a9aa1xy# Package name used in tarballs
080575042aba2197b425ebfd52061dea061a9aa1xy# Version number (used in path names)
080575042aba2197b425ebfd52061dea061a9aa1xy# Patches to apply to source after unpacking, in order
080575042aba2197b425ebfd52061dea061a9aa1xy# Library name (used for specfiles/mapfiles)
080575042aba2197b425ebfd52061dea061a9aa1xy# Man pages to apply Sun footer to & attributes to list
080575042aba2197b425ebfd52061dea061a9aa1xy# Command line options to GNU autoconf configure script
080575042aba2197b425ebfd52061dea061a9aa1xyMODULE_CONFIG_OPTS = --enable-xthreads --enable-loadable-i18n \
080575042aba2197b425ebfd52061dea061a9aa1xy --enable-xlocaledir --enable-xkb --enable-man-pages=$(LIB_MAN_SUFFIX) \
080575042aba2197b425ebfd52061dea061a9aa1xy --with-locale-lib-dir='$${exec_prefix}/lib/X11/locale$(LIBSUBDIR)'
080575042aba2197b425ebfd52061dea061a9aa1xy# -xF is needed for mapfile reordering to work
080575042aba2197b425ebfd52061dea061a9aa1xy# -DSUNSOFT enables SUN_SME (Shared Memory transport extension)
080575042aba2197b425ebfd52061dea061a9aa1xy# -DMOTIFBC enables compatibility with bugs in Motif & other apps
080575042aba2197b425ebfd52061dea061a9aa1xy# -DSUNSOFT_KBD enables Solaris traditional keyboard handling
080575042aba2197b425ebfd52061dea061a9aa1xy# Work around libtool's interference
080575042aba2197b425ebfd52061dea061a9aa1xy# Use -KPIC instead of -Kpic because we have too many symbols on SPARC
080575042aba2197b425ebfd52061dea061a9aa1xy# Need additional mapfile for additional symbols in 64-bit versions
080575042aba2197b425ebfd52061dea061a9aa1xyMODULE_BUILD_64_FLAGS = ADD_libX11_LDFLAGS="-M $(PWD)/mapfile-vers-64"
080575042aba2197b425ebfd52061dea061a9aa1xy# pkg-config files that need to have -R added
080575042aba2197b425ebfd52061dea061a9aa1xy# Regenerate Makefile.in's from Makefile.am's after patching them
080575042aba2197b425ebfd52061dea061a9aa1xy# Merge in additional sources from sun-src directory
080575042aba2197b425ebfd52061dea061a9aa1xy# Install additional headers we need in other parts of the build or ship in
080575042aba2197b425ebfd52061dea061a9aa1xy# packages, but which X.Org doesn't
080575042aba2197b425ebfd52061dea061a9aa1xy cp -pf sun-src/include/X11/Xvarargs.h $(PROTODIR)/usr/X11/include/X11/