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