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