Makefile revision 366
c10c16dec587a0662068f6e2991c29ed3a9db943Richard Lowe###############################################################################
c10c16dec587a0662068f6e2991c29ed3a9db943Richard Lowe#
c10c16dec587a0662068f6e2991c29ed3a9db943Richard Lowe# Xext 1.x Makefile
c10c16dec587a0662068f6e2991c29ed3a9db943Richard Lowe#
c10c16dec587a0662068f6e2991c29ed3a9db943Richard Lowe# Copyright 2008 Sun Microsystems, Inc. All rights reserved.
c10c16dec587a0662068f6e2991c29ed3a9db943Richard Lowe# Use subject to license terms.
c10c16dec587a0662068f6e2991c29ed3a9db943Richard Lowe#
c10c16dec587a0662068f6e2991c29ed3a9db943Richard Lowe# Permission is hereby granted, free of charge, to any person obtaining a
c10c16dec587a0662068f6e2991c29ed3a9db943Richard Lowe# copy of this software and associated documentation files (the
c10c16dec587a0662068f6e2991c29ed3a9db943Richard Lowe# "Software"), to deal in the Software without restriction, including
c10c16dec587a0662068f6e2991c29ed3a9db943Richard Lowe# without limitation the rights to use, copy, modify, merge, publish,
a9478106a12424322498e53cf7cd75bd8a4d6004Yuri Pankov# distribute, and/or sell copies of the Software, and to permit persons
c10c16dec587a0662068f6e2991c29ed3a9db943Richard Lowe# to whom the Software is furnished to do so, provided that the above
a9478106a12424322498e53cf7cd75bd8a4d6004Yuri Pankov# copyright notice(s) and this permission notice appear in all copies of
5dbfd19ad5fcc2b779f40f80fa05c1bd28fd0b4eTheo Schlossnagle# the Software and that both the above copyright notice(s) and this
2d08521bd15501c8370ba2153b9cca4f094979d0Garrett D'Amore# permission notice appear in supporting documentation.
a9478106a12424322498e53cf7cd75bd8a4d6004Yuri Pankov#
c10c16dec587a0662068f6e2991c29ed3a9db943Richard Lowe# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS
a9478106a12424322498e53cf7cd75bd8a4d6004Yuri Pankov# OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
c10c16dec587a0662068f6e2991c29ed3a9db943Richard Lowe# MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT
a9478106a12424322498e53cf7cd75bd8a4d6004Yuri Pankov# OF THIRD PARTY RIGHTS. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR
c10c16dec587a0662068f6e2991c29ed3a9db943Richard Lowe# HOLDERS INCLUDED IN THIS NOTICE BE LIABLE FOR ANY CLAIM, OR ANY SPECIAL
a9478106a12424322498e53cf7cd75bd8a4d6004Yuri Pankov# INDIRECT OR CONSEQUENTIAL DAMAGES, OR ANY DAMAGES WHATSOEVER RESULTING
c10c16dec587a0662068f6e2991c29ed3a9db943Richard Lowe# FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT,
c10c16dec587a0662068f6e2991c29ed3a9db943Richard Lowe# NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION
c10c16dec587a0662068f6e2991c29ed3a9db943Richard Lowe# WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
c10c16dec587a0662068f6e2991c29ed3a9db943Richard Lowe#
c10c16dec587a0662068f6e2991c29ed3a9db943Richard Lowe# Except as contained in this notice, the name of a copyright holder
c10c16dec587a0662068f6e2991c29ed3a9db943Richard Lowe# shall not be used in advertising or otherwise to promote the sale, use
c10c16dec587a0662068f6e2991c29ed3a9db943Richard Lowe# or other dealings in this Software without prior written authorization
c10c16dec587a0662068f6e2991c29ed3a9db943Richard Lowe# of the copyright holder.
c10c16dec587a0662068f6e2991c29ed3a9db943Richard Lowe#
c10c16dec587a0662068f6e2991c29ed3a9db943Richard Lowe# @(#)Makefile 1.1 08/03/12
c10c16dec587a0662068f6e2991c29ed3a9db943Richard Lowe#
c10c16dec587a0662068f6e2991c29ed3a9db943Richard Lowe
c10c16dec587a0662068f6e2991c29ed3a9db943Richard Lowe# Package name used in tarballs
c10c16dec587a0662068f6e2991c29ed3a9db943Richard LoweLIB_MODULE=libXext
c10c16dec587a0662068f6e2991c29ed3a9db943Richard Lowe
c10c16dec587a0662068f6e2991c29ed3a9db943Richard Lowe# Version number (used in path names)
c10c16dec587a0662068f6e2991c29ed3a9db943Richard LoweLIB_VERS=1.0.4
c10c16dec587a0662068f6e2991c29ed3a9db943Richard Lowe
c10c16dec587a0662068f6e2991c29ed3a9db943Richard Lowe# Patches to apply to source after unpacking, in order
c10c16dec587a0662068f6e2991c29ed3a9db943Richard LoweSOURCE_PATCHES = \
c10c16dec587a0662068f6e2991c29ed3a9db943Richard Lowe shm.patch \
c10c16dec587a0662068f6e2991c29ed3a9db943Richard Lowe sun-exts.patch
c10c16dec587a0662068f6e2991c29ed3a9db943Richard Lowe
c10c16dec587a0662068f6e2991c29ed3a9db943Richard Lowe# Library name (used for specfiles/mapfiles)
c10c16dec587a0662068f6e2991c29ed3a9db943Richard LoweLIBNAME=Xext
c10c16dec587a0662068f6e2991c29ed3a9db943Richard Lowe
c10c16dec587a0662068f6e2991c29ed3a9db943Richard Lowe# Man pages to apply Sun footer to & attributes to list
c10c16dec587a0662068f6e2991c29ed3a9db943Richard LoweSUNTOUCHED_MANPAGES=man/*.man
c10c16dec587a0662068f6e2991c29ed3a9db943Richard LoweSUN_PACKAGE=SUNWxwplt
c10c16dec587a0662068f6e2991c29ed3a9db943Richard LoweLIB_STABILITY=Committed
c10c16dec587a0662068f6e2991c29ed3a9db943Richard LoweLIB_MAN_SUFFIX=3Xext
c10c16dec587a0662068f6e2991c29ed3a9db943Richard Lowe
c10c16dec587a0662068f6e2991c29ed3a9db943Richard Lowe# Library built in tree
c10c16dec587a0662068f6e2991c29ed3a9db943Richard LoweLIB_BUILT=$(SOURCE_DIR)/src/.libs/libXext.so.0
c10c16dec587a0662068f6e2991c29ed3a9db943Richard Lowe
c10c16dec587a0662068f6e2991c29ed3a9db943Richard Lowe# pkg-config files that need to have -R added
c10c16dec587a0662068f6e2991c29ed3a9db943Richard LoweFIX_PC_FILES=xext.pc.in
c10c16dec587a0662068f6e2991c29ed3a9db943Richard Lowe
c10c16dec587a0662068f6e2991c29ed3a9db943Richard Lowe# Command line options to GNU autoconf configure script
c10c16dec587a0662068f6e2991c29ed3a9db943Richard LoweLIB_ADD_CONFIG_OPTS = --with-lint --enable-lint-library
c10c16dec587a0662068f6e2991c29ed3a9db943Richard Lowe
c10c16dec587a0662068f6e2991c29ed3a9db943Richard Lowe# Enable Solaris-specific code
c10c16dec587a0662068f6e2991c29ed3a9db943Richard LoweLIB_ADD_CPPFLAGS = -DSUNSOFT
c10c16dec587a0662068f6e2991c29ed3a9db943Richard Lowe
c10c16dec587a0662068f6e2991c29ed3a9db943Richard Lowe# Link with version mapfile and libraries that contain sources that used
c10c16dec587a0662068f6e2991c29ed3a9db943Richard Lowe# to be in libXext
c10c16dec587a0662068f6e2991c29ed3a9db943Richard LoweLIB_ADD_LD_OPTIONS = -M $(PWD)/mapfile-vers
c10c16dec587a0662068f6e2991c29ed3a9db943Richard Lowe
c10c16dec587a0662068f6e2991c29ed3a9db943Richard Lowe# Regenerate Makefile.in's from Makefile.am's after patching them
c10c16dec587a0662068f6e2991c29ed3a9db943Richard LoweAUTORECONF=true
c10c16dec587a0662068f6e2991c29ed3a9db943Richard Lowe
c10c16dec587a0662068f6e2991c29ed3a9db943Richard Lowe### Rules specific to this directory:
c10c16dec587a0662068f6e2991c29ed3a9db943Richard Lowe
c10c16dec587a0662068f6e2991c29ed3a9db943Richard Lowe# Merge in additional sources from sun-src directory
c10c16dec587a0662068f6e2991c29ed3a9db943Richard Loweadd-sun-src:: $(LNDIR)
c10c16dec587a0662068f6e2991c29ed3a9db943Richard Lowe mkdir -p $(SOURCE_DIR)
c10c16dec587a0662068f6e2991c29ed3a9db943Richard Lowe (cd $(SOURCE_DIR) && $(LNDIR) ../../sun-src)
c10c16dec587a0662068f6e2991c29ed3a9db943Richard Lowe
c10c16dec587a0662068f6e2991c29ed3a9db943Richard Lowesource_gen:: add-sun-src
c10c16dec587a0662068f6e2991c29ed3a9db943Richard Lowe
c10c16dec587a0662068f6e2991c29ed3a9db943Richard LoweDESTDIR=$(PROTODIR)
c10c16dec587a0662068f6e2991c29ed3a9db943Richard LoweINSTDIR=$(DESTDIR)$(X11_INCLUDES_DIR)/X11/extensions
c10c16dec587a0662068f6e2991c29ed3a9db943Richard Lowe
c10c16dec587a0662068f6e2991c29ed3a9db943Richard Loweinstall_gen::
c10c16dec587a0662068f6e2991c29ed3a9db943Richard Lowe mkdir -p $(INSTDIR)
c10c16dec587a0662068f6e2991c29ed3a9db943Richard Lowe cp -pf sun-src/include/X11/extensions/*.h $(INSTDIR)/
c10c16dec587a0662068f6e2991c29ed3a9db943Richard Lowe
c10c16dec587a0662068f6e2991c29ed3a9db943Richard Loweinclude ../Makefile.inc
c10c16dec587a0662068f6e2991c29ed3a9db943Richard Lowe