Makefile revision 40
341N/A###############################################################################
341N/A#
1402N/A# Xau 1.x Makefile
341N/A#
341N/A# Copyright 2006 Sun Microsystems, Inc. All rights reserved.
919N/A# Use subject to license terms.
919N/A#
919N/A# Permission is hereby granted, free of charge, to any person obtaining a
919N/A# copy of this software and associated documentation files (the
919N/A# "Software"), to deal in the Software without restriction, including
919N/A# without limitation the rights to use, copy, modify, merge, publish,
919N/A# distribute, and/or sell copies of the Software, and to permit persons
919N/A# to whom the Software is furnished to do so, provided that the above
919N/A# copyright notice(s) and this permission notice appear in all copies of
919N/A# the Software and that both the above copyright notice(s) and this
919N/A# permission notice appear in supporting documentation.
919N/A#
919N/A# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS
919N/A# OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
919N/A# MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT
919N/A# OF THIRD PARTY RIGHTS. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR
919N/A# HOLDERS INCLUDED IN THIS NOTICE BE LIABLE FOR ANY CLAIM, OR ANY SPECIAL
341N/A# INDIRECT OR CONSEQUENTIAL DAMAGES, OR ANY DAMAGES WHATSOEVER RESULTING
341N/A# FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT,
341N/A# NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION
341N/A# WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
493N/A#
341N/A# Except as contained in this notice, the name of a copyright holder
341N/A# shall not be used in advertising or otherwise to promote the sale, use
1370N/A# or other dealings in this Software without prior written authorization
341N/A# of the copyright holder.
911N/A#
1370N/A# @(#)Makefile 1.2 06/08/02
1370N/A#
1370N/A
911N/APWD:sh=pwd
341N/ATOP=$(PWD)/../..
341N/ABUILD_TYPES=32 64
1402N/A
1265N/A# Version number (used in path names)
1370N/AXAU_VERS=1.0.2
1370N/A
1370N/A# Source tarball
1179N/ASOURCE_TARBALL_NAME=libXau-$(XAU_VERS).tar.bz2
1233N/A
1265N/A# Download site for source
1179N/ASOURCE_URL=$(XORG_RELEASES_URL)/lib/$(SOURCE_TARBALL_NAME)
1370N/A
1370N/A# Patches to apply to source after unpacking, in order
1370N/ASOURCE_PATCHES =
1370N/A
1179N/A# Directory created by unpacking source
1179N/ASOURCE_DIR=$(BUILD_DIR)/libXau-$(XAU_VERS)
1179N/A
1370N/A# Library name (used for specfiles/mapfiles)
1370N/ALIBNAME=Xau
1370N/A
1370N/A# Man pages to apply Sun footer to & attributes to list
1370N/ASUNTOUCHED_MANPAGES=Xau.man
1265N/ASUNTOUCH_MAN_FLAGS= -l Xau \
1370N/A -a '{Availability, SUNWxwplt} {Interface Stability, Committed} {MT-Level, Unsafe}'
1370N/A
1370N/Ainclude $(TOP)/common/Makefile.inc
1370N/A
1370N/A# Where to install files
1265N/AXAU_prefix=$(X11_DIR)
1370N/A
1370N/A# Command line options to GNU autoconf configure script
1265N/ACONFIG_OPTS = --enable-shared=yes --enable-static=no \
1370N/A --prefix=$(XAU_prefix) --libdir='$${exec_prefix}/lib$(LIBSUBDIR)' \
1370N/A --enable-xthreads --with-lint --enable-lint-library
1370N/A
1265N/A# Environment variable options to GNU autoconf configure script
1179N/ACONFIG_ENV = CC=$(CC) CFLAGS="$(LIB_CFLAGS)" \
1370N/A LD="$(LD) $(LDFLAGS)" LDFLAGS="$(LIB_LDFLAGS)" \
1370N/A PKG_CONFIG_PATH=$(PROTODIR)/usr/lib/$(ARCHLIBSUBDIR)/pkgconfig \
1370N/A LIB_MAN_SUFFIX=3Xau
1370N/A
1370N/A# Run configure script
1370N/A$(SOURCE_DIR)/Makefile: $(UNPACK_TARGET) $(XPROTO_DEP)
1370N/A (cd $(SOURCE_DIR) ; chmod a+x configure ; \
1370N/A $(CONFIG_ENV) ./configure $(CONFIG_OPTS) )
1370N/A
1370N/A# Library built in tree
1370N/AXAU_LIB=$(BUILD_DIR)/.libs/libXau.so.6.0.0
1370N/A
1370N/Abuild_gen: $(XAU_LIB)
1370N/A
1370N/A$(XAU_LIB): $(SOURCE_DIR)/Makefile $(BUILD_DIR)/$(SPECMAP)
1370N/A (cd $(SOURCE_DIR) ; LD_OPTIONS="$(LIB_REQUIRED_LDFLAGS) -M $(PWD)/$(BUILD_DIR)/$(SPECMAP)" $(MAKE) $(MFLAGS) )
1370N/A
1370N/A
1345N/Ainstall_gen: $(XAU_LIB)
341N/A (cd $(SOURCE_DIR) ; $(LIBPATHS) LD_OPTIONS="$(LIB_REQUIRED_LDFLAGS)" $(MAKE) $(MFLAGS) -e DESTDIR=$(PROTODIR) libdir=$(XAU_prefix)/lib$(ARCHLIBSUBDIR) install pkgconfigdir=/usr/lib/$(ARCHLIBSUBDIR)/pkgconfig)
341N/A