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