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