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