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