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