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