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