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