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