Makefile revision 851
278N/A###############################################################################
278N/A#
278N/A# Xmu 1.x Makefile
278N/A#
851N/A# Copyright 2009 Sun Microsystems, Inc. All rights reserved.
851N/A# Use is subject to license terms.
278N/A#
278N/A# Permission is hereby granted, free of charge, to any person obtaining a
278N/A# copy of this software and associated documentation files (the
278N/A# "Software"), to deal in the Software without restriction, including
278N/A# without limitation the rights to use, copy, modify, merge, publish,
278N/A# distribute, and/or sell copies of the Software, and to permit persons
278N/A# to whom the Software is furnished to do so, provided that the above
278N/A# copyright notice(s) and this permission notice appear in all copies of
278N/A# the Software and that both the above copyright notice(s) and this
278N/A# permission notice appear in supporting documentation.
278N/A#
278N/A# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS
278N/A# OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
278N/A# MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT
278N/A# OF THIRD PARTY RIGHTS. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR
278N/A# HOLDERS INCLUDED IN THIS NOTICE BE LIABLE FOR ANY CLAIM, OR ANY SPECIAL
278N/A# INDIRECT OR CONSEQUENTIAL DAMAGES, OR ANY DAMAGES WHATSOEVER RESULTING
278N/A# FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT,
278N/A# NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION
278N/A# WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
278N/A#
278N/A# Except as contained in this notice, the name of a copyright holder
278N/A# shall not be used in advertising or otherwise to promote the sale, use
278N/A# or other dealings in this Software without prior written authorization
278N/A# of the copyright holder.
278N/A#
851N/A# ident "@(#)Makefile 1.6 09/12/05 SMI"
278N/A#
278N/A
278N/A# Package name used in tarballs
493N/AMODULE_NAME=libXmu
278N/A
278N/A# Version number (used in path names)
851N/AMODULE_VERSION=1.0.5
278N/A
278N/A# Patches to apply to source after unpacking, in order
278N/ASOURCE_PATCHES = \
278N/A bitmap-path.patch \
278N/A solaris-abi.patch
278N/A
278N/A# Library name (used for specfiles/mapfiles)
278N/ALIBNAME=Xmu
278N/A
278N/A# Man pages to apply Sun footer to & attributes to list
278N/A#SUNTOUCHED_MANPAGES= no man pages in upstream package
278N/ASUN_PACKAGE=SUNWxwplt
493N/AMODULE_STABILITY=Committed
278N/ALIB_MAN_SUFFIX=3Xmu
278N/A
493N/A
278N/A
278N/A# pkg-config files that need to have -R added
278N/AFIX_PC_FILES=xmu.pc.in xmuu.pc.in
278N/A
278N/A# Command line options to GNU autoconf configure script
493N/AMODULE_CONFIG_OPTS = --with-lint --enable-lint-library
278N/A
278N/A# Work around libtool brokenness that adds -R `pwd` to libXmu build
493N/AMODULE_BUILD_DEPS=delibtoolize
278N/A
354N/A# Regenerate Makefile.in's from Makefile.am's after patching them
493N/AAUTORECONF=yes
278N/A
354N/Ainclude ../Makefile.inc
278N/A
278N/A# Add-in Sun-added source files
278N/Asource_gen::
278N/A mkdir -p $(SOURCE_DIR)/src $(SOURCE_DIR)/include/X11/Xmu/
278N/A (cd $(SOURCE_DIR)/src ; ln -s ../../../sun-src/*.c .)
278N/A (cd $(SOURCE_DIR)/include/X11/Xmu ; ln -s ../../../../../sun-src/*.h .)
278N/A
278N/A# Additional files we need to install
278N/ACP = cp -pf
851N/AMANDIR = $(PROTODIR)$(X11_MAN_DIR)/man3Xmu
278N/A
278N/Ainstall_gen::
851N/A mkdir -p $(PROTODIR)$(X11_INCLUDES_DIR)/X11/Xmu $(MANDIR) \
851N/A $(PROTODIR)$(X11_LIB_DIR)$(ARCHLIBSUBDIR)
278N/A $(CP) $(SOURCE_DIR)/include/X11/Xmu/XmuSolaris.h \
278N/A $(SOURCE_DIR)/include/X11/Xmu/WhitePoint.h \
851N/A $(PROTODIR)$(X11_INCLUDES_DIR)/X11/Xmu
278N/A $(CP) sun-src/*.3Xmu $(MANDIR)
851N/A rm -f $(PROTODIR)$(X11_LIB_DIR)$(ARCHLIBSUBDIR)/libXmu.so \
851N/A $(PROTODIR)$(X11_LIB_DIR)$(ARCHLIBSUBDIR)/libXmuu.so
851N/A ln -s libXmu.so.4 $(PROTODIR)$(X11_LIB_DIR)$(ARCHLIBSUBDIR)/libXmu.so
851N/A ln -s libXmuu.so.1 $(PROTODIR)$(X11_LIB_DIR)$(ARCHLIBSUBDIR)/libXmuu.so