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