Makefile revision 392
688N/A###############################################################################
688N/A#
688N/A# X11 1.x Makefile
688N/A#
688N/A# Copyright 2008 Sun Microsystems, Inc. All rights reserved.
688N/A# Use subject to license terms.
688N/A#
688N/A# Permission is hereby granted, free of charge, to any person obtaining a
688N/A# copy of this software and associated documentation files (the
688N/A# "Software"), to deal in the Software without restriction, including
688N/A# without limitation the rights to use, copy, modify, merge, publish,
688N/A# distribute, and/or sell copies of the Software, and to permit persons
688N/A# to whom the Software is furnished to do so, provided that the above
688N/A# copyright notice(s) and this permission notice appear in all copies of
688N/A# the Software and that both the above copyright notice(s) and this
688N/A# permission notice appear in supporting documentation.
688N/A#
688N/A# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS
688N/A# OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
688N/A# MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT
688N/A# OF THIRD PARTY RIGHTS. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR
688N/A# HOLDERS INCLUDED IN THIS NOTICE BE LIABLE FOR ANY CLAIM, OR ANY SPECIAL
688N/A# INDIRECT OR CONSEQUENTIAL DAMAGES, OR ANY DAMAGES WHATSOEVER RESULTING
688N/A# FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT,
688N/A# NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION
688N/A# WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
688N/A#
688N/A# Except as contained in this notice, the name of a copyright holder
688N/A# shall not be used in advertising or otherwise to promote the sale, use
688N/A# or other dealings in this Software without prior written authorization
688N/A# of the copyright holder.
688N/A#
688N/A# %W% %E%
688N/A#
688N/A
688N/A# Package name used in tarballs
688N/ALIB_MODULE=libX11
688N/A
688N/A# Version number (used in path names)
688N/ALIB_VERS=1.1.3
688N/A
688N/A# Patches to apply to source after unpacking, in order
688N/ASOURCE_PATCHES = \
688N/A lintlib.patch,-p1 \
688N/A manpages.patch,-p1 \
688N/A XErrorDB.patch,-p1 \
688N/A 1234757.patch \
688N/A 4010755.patch \
688N/A 4614834.patch \
688N/A 5039226.patch \
688N/A 6409332.patch \
688N/A solaris-abi.patch \
688N/A solaris-i18n.patch \
688N/A solaris-kbd.patch \
688N/A SolarisIA.patch \
688N/A sme.patch \
688N/A 4076297.patch \
688N/A 1261271.patch \
688N/A 6686591.patch
688N/A
688N/A# Library name (used for specfiles/mapfiles)
688N/ALIBNAME=X11
688N/A
688N/A# Man pages to apply Sun footer to & attributes to list
688N/ASUNTOUCHED_MANPAGES=man/*.man man/xkb/*.man
688N/ASUN_PACKAGE=SUNWxwplt
688N/ALIB_STABILITY=Committed
688N/ALIB_MAN_SUFFIX=3X11
688N/A
688N/A# Command line options to GNU autoconf configure script
688N/ALIB_ADD_CONFIG_OPTS = --enable-xthreads --enable-loadable-i18n \
688N/A --with-xcb=no --enable-loadable-xcursor --enable-xcms \
688N/A --enable-xlocaledir --enable-xkb --enable-man-pages=$(LIB_MAN_SUFFIX) \
688N/A --with-lint --enable-lint-library \
688N/A --with-locale-lib-dir='$${exec_prefix}/lib/X11/locale$(LIBSUBDIR)'
688N/A
688N/A# -xF is needed for mapfile reordering to work
688N/ALIB_ADD_CFLAGS = -xF -g
688N/A
688N/A# -DSUNSOFT enables SUN_SME (Shared Memory transport extension)
688N/A# -DMOTIFBC enables compatibility with bugs in Motif & other apps
688N/A# -DSUNSOFT_KBD enables Solaris traditional keyboard handling
688N/ALIB_ADD_CPPFLAGS = -DSUNSOFT -DMOTIFBC -DSUNSOFT_KBD
688N/A
688N/A# Work around libtool's interference
688N/ALIB_ADD_BUILD_DEPS = delibtoolize
688N/A
688N/A# Use -KPIC instead of -Kpic because we have too many symbols on SPARC
688N/ADELIBTOOLIZE_FLAGS_sparc = -P
688N/ADELIBTOOLIZE_FLAGS_i386 =
688N/ADELIBTOOLIZE_FLAGS = $(DELIBTOOLIZE_FLAGS_$(MACH))
688N/A
688N/A# Need additional mapfile for additional symbols in 64-bit versions
688N/ABUILD_64_FLAGS = ADD_libX11_LDFLAGS="-M $(PWD)/mapfile-vers-64"
688N/A
688N/A# Library built in tree
688N/ALIB_BUILT=$(SOURCE_DIR)/src/.libs/libX11.so.4
688N/A
688N/A# pkg-config files that need to have -R added
688N/AFIX_PC_FILES=x11.pc.in
688N/A
688N/A# Regenerate Makefile.in's from Makefile.am's after patching them
688N/AAUTORECONF=true
688N/A
688N/Ainclude ../Makefile.inc
688N/A
688N/A# Merge in additional sources from sun-src directory
688N/Asource_gen:: $(LNDIR)
688N/A mkdir -p $(SOURCE_DIR)
688N/A (cd $(SOURCE_DIR) && $(LNDIR) ../../sun-src)
688N/A
688N/Ainstall_gen::
688N/A mkdir -p $(PROTODIR)/usr/X11/lib$(ARCHLIBSUBDIR)
688N/A -rm -f $(PROTODIR)/usr/X11/lib$(ARCHLIBSUBDIR)/libX11.so
688N/A ln -s libX11.so.4 $(PROTODIR)/usr/X11/lib$(ARCHLIBSUBDIR)/libX11.so
688N/A
688N/A# Install additional headers we need in other parts of the build or ship in
688N/A# packages, but which X.Org doesn't
688N/Ainstall_32::
688N/A mkdir -p $(PROTODIR)/usr/X11/include/X11/extensions
688N/A cp -pf sun-src/include/X11/Xvarargs.h $(PROTODIR)/usr/X11/include/X11/
688N/A cp -pf sun-src/include/X11/extensions/XInteractive.h \
688N/A $(PROTODIR)/usr/X11/include/X11/extensions/
688N/A cp -pf sun-src/include/X11/extensions/XInteractive.h \
688N/A $(PROTODIR)/usr/X11/include/X11/extensions/
688N/A cp -pf $(BUILD_DIR_32)$(SOURCE_DIR)/src/ks_tables.h \
688N/A $(PROTODIR)/usr/X11/include/
688N/A cp -pf $(BUILD_DIR_32)$(SOURCE_DIR)/src/xlibi18n/Xlc*.h \
688N/A $(PROTODIR)/usr/X11/include/X11/
688N/A