Makefile revision 48
729N/A###############################################################################
729N/A#
729N/A# Xdmcp 1.x Makefile
729N/A#
943N/A# Copyright 2006 Sun Microsystems, Inc. All rights reserved.
729N/A# Use subject to license terms.
729N/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
919N/A# INDIRECT OR CONSEQUENTIAL DAMAGES, OR ANY DAMAGES WHATSOEVER RESULTING
919N/A# FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT,
729N/A# NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION
729N/A# WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
729N/A#
729N/A# Except as contained in this notice, the name of a copyright holder
729N/A# shall not be used in advertising or otherwise to promote the sale, use
729N/A# or other dealings in this Software without prior written authorization
729N/A# of the copyright holder.
729N/A#
729N/A# @(#)Makefile 1.1 06/08/15
911N/A#
911N/A
911N/APWD:sh=pwd
911N/ATOP=$(PWD)/../..
729N/ABUILD_TYPES=32 64
729N/A
729N/A# Version number (used in path names)
729N/AXDMCP_VERS=1.0.2
729N/A
729N/A# Source tarball
729N/ASOURCE_TARBALL_NAME=libXdmcp-$(XDMCP_VERS).tar.bz2
729N/A
729N/A# Download site for source
729N/ASOURCE_URL=$(XORG_RELEASES_URL)/lib/$(SOURCE_TARBALL_NAME)
729N/A
729N/A# Patches to apply to source after unpacking, in order
729N/ASOURCE_PATCHES =
729N/A
851N/A# Directory created by unpacking source
729N/ASOURCE_DIR=$(BUILD_DIR)/libXdmcp-$(XDMCP_VERS)
729N/A
729N/A# Library name (used for specfiles/mapfiles)
729N/ALIBNAME=Xdmcp
851N/A
729N/A# libXdmcp has no man pages to apply Sun footer to
729N/A#SUNTOUCHED_MANPAGES=Xdmcp.man
729N/A#SUNTOUCH_MAN_FLAGS= -l Xdmcp \
851N/A# -a '{Availability, SUNWxwplt} {Interface Stability, Committed} {MT-Level, Unsafe}'
729N/A
729N/Ainclude $(TOP)/common/Makefile.inc
729N/A
729N/A# Where to install files
729N/AXDMCP_prefix=$(X11_DIR)
851N/A
851N/A# Command line options to GNU autoconf configure script
963N/ACONFIG_OPTS = --enable-shared=yes --enable-static=no \
851N/A --prefix=$(XDMCP_prefix) --libdir='$${exec_prefix}/lib$(LIBSUBDIR)' \
851N/A --with-lint --enable-lint-library
851N/A
947N/A# Environment variable options to GNU autoconf configure script
963N/ACONFIG_ENV = CC=$(CC) CFLAGS="$(LIB_CFLAGS)" \
963N/A LD="$(LD) $(LDFLAGS)" LDFLAGS="$(LIB_LDFLAGS)" \
PKG_CONFIG_PATH=$(PROTODIR)/usr/lib/$(ARCHLIBSUBDIR)/pkgconfig \
LIB_MAN_SUFFIX=3Xdmcp
# Remove encryption source before building
source_gen::
-rm $(SOURCE_DIR)/Wraphelp.*
# Run configure script
$(SOURCE_DIR)/Makefile: $(UNPACK_TARGET) $(XPROTO_DEP)
(cd $(SOURCE_DIR) ; chmod a+x configure ; \
$(CONFIG_ENV) ./configure $(CONFIG_OPTS) )
# Library built in tree
XDMCP_LIB=$(BUILD_DIR)/.libs/libXdmcp.so.6.0.0
build_gen: $(XDMCP_LIB)
$(XDMCP_LIB): $(SOURCE_DIR)/Makefile $(BUILD_DIR)/$(SPECMAP)
(cd $(SOURCE_DIR) ; LD_OPTIONS="$(LIB_REQUIRED_LDFLAGS) -M $(PWD)/$(BUILD_DIR)/$(SPECMAP)" $(MAKE) $(MFLAGS) )
install_gen: $(XDMCP_LIB)
(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)