Makefile revision 829
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte###############################################################################
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte# libpciaccess Makefile
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte# Copyright 2009 Sun Microsystems, Inc. All rights reserved.
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte# Use is subject to license terms.
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte# Permission is hereby granted, free of charge, to any person obtaining a
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte# copy of this software and associated documentation files (the
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte# "Software"), to deal in the Software without restriction, including
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte# without limitation the rights to use, copy, modify, merge, publish,
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte# distribute, and/or sell copies of the Software, and to permit persons
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte# to whom the Software is furnished to do so, provided that the above
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte# copyright notice(s) and this permission notice appear in all copies of
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte# the Software and that both the above copyright notice(s) and this
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte# permission notice appear in supporting documentation.
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte# OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte# MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte# OF THIRD PARTY RIGHTS. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte# HOLDERS INCLUDED IN THIS NOTICE BE LIABLE FOR ANY CLAIM, OR ANY SPECIAL
6a573d82e26abdedeb701fcdd5b5461b2fa0da40Sukumar Swaminathan# INDIRECT OR CONSEQUENTIAL DAMAGES, OR ANY DAMAGES WHATSOEVER RESULTING
825277341c15b6b0d2c4b8b622ae7b1d2bdc0390Sukumar Swaminathan# FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT,
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte# NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte# WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
291a2b48b9adcd7b3666c34e80ba6411929afe7fSukumar Swaminathan# Except as contained in this notice, the name of a copyright holder
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte# shall not be used in advertising or otherwise to promote the sale, use
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte# or other dealings in this Software without prior written authorization
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte# of the copyright holder.
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte# Package name used in tarballs
291a2b48b9adcd7b3666c34e80ba6411929afe7fSukumar Swaminathan# Version number (used in path names)
291a2b48b9adcd7b3666c34e80ba6411929afe7fSukumar Swaminathan# Patches to apply to source after unpacking, in order
6a573d82e26abdedeb701fcdd5b5461b2fa0da40Sukumar Swaminathan# Where to install libpciaccess files
6a573d82e26abdedeb701fcdd5b5461b2fa0da40Sukumar Swaminathan# Man pages to apply Sun footer to & attributes to list
291a2b48b9adcd7b3666c34e80ba6411929afe7fSukumar Swaminathan#SUNTOUCHED_MANPAGES=man/*.man
291a2b48b9adcd7b3666c34e80ba6411929afe7fSukumar Swaminathan# pkg-config files that need to have -R added
291a2b48b9adcd7b3666c34e80ba6411929afe7fSukumar Swaminathan# Activate additional debugging code in debug builds
291a2b48b9adcd7b3666c34e80ba6411929afe7fSukumar Swaminathan# Additional targets for scanpci
825277341c15b6b0d2c4b8b622ae7b1d2bdc0390Sukumar SwaminathanMODULE_ADD_SOURCE_TARGETS = source_scanpci_man
291a2b48b9adcd7b3666c34e80ba6411929afe7fSukumar SwaminathanMODULE_ADD_INSTALL_TARGETS = install_scanpci
291a2b48b9adcd7b3666c34e80ba6411929afe7fSukumar Swaminathan# Update scanpci.man with program man page flags instead of library ones
291a2b48b9adcd7b3666c34e80ba6411929afe7fSukumar Swaminathan /usr/perl5/bin/perl $(TOP)/common/suntouch-manpages.pl \
291a2b48b9adcd7b3666c34e80ba6411929afe7fSukumar Swaminathan -a '{Interface Stability, $(MODULE_STABILITY)}' \
291a2b48b9adcd7b3666c34e80ba6411929afe7fSukumar Swaminathan sed -e 's/__xorgversion__/"$(MODULE_NAME) $(MODULE_VERSION)"/' \
291a2b48b9adcd7b3666c34e80ba6411929afe7fSukumar Swaminathan# We want to install scanpci, even though the upstream Makefile doesn't
291a2b48b9adcd7b3666c34e80ba6411929afe7fSukumar Swaminathan mkdir -p $(PROTODIR)$(MODULE_PREFIX)/bin$(ARCHLIBSUBDIR) \
291a2b48b9adcd7b3666c34e80ba6411929afe7fSukumar Swaminathan $(PROTODIR)$(MODULE_PREFIX)/share/man/man1
291a2b48b9adcd7b3666c34e80ba6411929afe7fSukumar Swaminathan $(INSTALL_SCRIPT) -m 755 $(SOURCE_DIR)/src/scanpci \
291a2b48b9adcd7b3666c34e80ba6411929afe7fSukumar Swaminathan $(PROTODIR)$(MODULE_PREFIX)/bin$(ARCHLIBSUBDIR)/scanpci
291a2b48b9adcd7b3666c34e80ba6411929afe7fSukumar Swaminathan $(INSTALL_SCRIPT) -m 444 $(SOURCE_DIR)/src/scanpci.1 \