Makefile revision 598
dfed970f63d5085c24ae95a34998e3411e05806fMark Andrews###############################################################################
499b34cea04a46823d003d4c0520c8b03e8513cbBrian Wellington#
dfed970f63d5085c24ae95a34998e3411e05806fMark Andrews# Copyright 2008 Sun Microsystems, Inc. All rights reserved.
dfed970f63d5085c24ae95a34998e3411e05806fMark Andrews# Use subject to license terms.
dfed970f63d5085c24ae95a34998e3411e05806fMark Andrews#
dfed970f63d5085c24ae95a34998e3411e05806fMark Andrews# Permission is hereby granted, free of charge, to any person obtaining a
dfed970f63d5085c24ae95a34998e3411e05806fMark Andrews# copy of this software and associated documentation files (the
dfed970f63d5085c24ae95a34998e3411e05806fMark Andrews# "Software"), to deal in the Software without restriction, including
dfed970f63d5085c24ae95a34998e3411e05806fMark Andrews# without limitation the rights to use, copy, modify, merge, publish,
dfed970f63d5085c24ae95a34998e3411e05806fMark Andrews# distribute, and/or sell copies of the Software, and to permit persons
dfed970f63d5085c24ae95a34998e3411e05806fMark Andrews# to whom the Software is furnished to do so, provided that the above
dfed970f63d5085c24ae95a34998e3411e05806fMark Andrews# copyright notice(s) and this permission notice appear in all copies of
dfed970f63d5085c24ae95a34998e3411e05806fMark Andrews# the Software and that both the above copyright notice(s) and this
dfed970f63d5085c24ae95a34998e3411e05806fMark Andrews# permission notice appear in supporting documentation.
dfed970f63d5085c24ae95a34998e3411e05806fMark Andrews#
dfed970f63d5085c24ae95a34998e3411e05806fMark Andrews# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS
dfed970f63d5085c24ae95a34998e3411e05806fMark Andrews# OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
499b34cea04a46823d003d4c0520c8b03e8513cbBrian Wellington# MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT
dfed970f63d5085c24ae95a34998e3411e05806fMark Andrews# OF THIRD PARTY RIGHTS. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR
dfed970f63d5085c24ae95a34998e3411e05806fMark Andrews# HOLDERS INCLUDED IN THIS NOTICE BE LIABLE FOR ANY CLAIM, OR ANY SPECIAL
dfed970f63d5085c24ae95a34998e3411e05806fMark Andrews# INDIRECT OR CONSEQUENTIAL DAMAGES, OR ANY DAMAGES WHATSOEVER RESULTING
dfed970f63d5085c24ae95a34998e3411e05806fMark Andrews# FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT,
dfed970f63d5085c24ae95a34998e3411e05806fMark Andrews# NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION
dfed970f63d5085c24ae95a34998e3411e05806fMark Andrews# WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
dfed970f63d5085c24ae95a34998e3411e05806fMark Andrews#
dfed970f63d5085c24ae95a34998e3411e05806fMark Andrews# Except as contained in this notice, the name of a copyright holder
f333ea9bdd3f85b74ae790e6c8ce2684295b3483Andreas Gustafsson# shall not be used in advertising or otherwise to promote the sale, use
38d9dc16287f72f018181f8dac6768b4eb05e930Mark Andrews# or other dealings in this Software without prior written authorization
dfed970f63d5085c24ae95a34998e3411e05806fMark Andrews# of the copyright holder.
dfed970f63d5085c24ae95a34998e3411e05806fMark Andrews#
dfed970f63d5085c24ae95a34998e3411e05806fMark Andrews# @(#)Makefile 1.6 08/12/19
5a77e9620a0b2f7417469c98be374de49d0eccc6Andreas Gustafsson#
dfed970f63d5085c24ae95a34998e3411e05806fMark Andrews
dfed970f63d5085c24ae95a34998e3411e05806fMark Andrews# Package name used in tarballs
dfed970f63d5085c24ae95a34998e3411e05806fMark AndrewsMODULE_NAME=util-macros
dfed970f63d5085c24ae95a34998e3411e05806fMark Andrews
dfed970f63d5085c24ae95a34998e3411e05806fMark Andrews# Version number (used in path names)
dfed970f63d5085c24ae95a34998e3411e05806fMark AndrewsMODULE_VERSION=1.2.1
dfed970f63d5085c24ae95a34998e3411e05806fMark Andrews
38d9dc16287f72f018181f8dac6768b4eb05e930Mark Andrews# Patches to apply to source after unpacking, in order
dfed970f63d5085c24ae95a34998e3411e05806fMark AndrewsSOURCE_PATCHES=
### Include common rulesets
include ../Makefile.inc
# Libtool versions before 2.2.2 fail to work with LD=cc in 64 bit builds,
# so install fixed libtool m4 macros here as well, so that modules that
# run autoreconf get the fixed sources
install_gen::
mkdir -p $(PROTODIR)$(X11_ACLOCAL_DIR)/
-rm -f $(PROTODIR)$(X11_ACLOCAL_DIR)/libtool.m4
SYSTEM_ACLOCAL_DIR=$$(aclocal --print-ac-dir) ; \
cp $${SYSTEM_ACLOCAL_DIR}/libtool.m4 \
$(PROTODIR)$(X11_ACLOCAL_DIR)/libtool.m4
gpatch -d $(PROTODIR)$(X11_ACLOCAL_DIR) < libtool-64.patch