Makefile revision 366
280a8a0544b4aeb52414d20e8c6e6c5b1108562eTinderbox User###############################################################################
6c2a76b3e2ccd32c35814b6e0f54da00190749d7Evan Hunt#
6fe48fb46e53ffc37542853a1edb74cb481b7d94Automatic Updater# Xext 1.x Makefile
c7fd128f8ea8a527fe27c1b95ab46df7155bc8e4Tinderbox User#
c7fd128f8ea8a527fe27c1b95ab46df7155bc8e4Tinderbox User# Copyright 2008 Sun Microsystems, Inc. All rights reserved.
ba9e87b35e561bc7354ce3f4b9685b747b7be507Tinderbox User# Use subject to license terms.
1f9754245cbd5eec2d2a667bb292f62f72386d4bMark Andrews#
59663800d2ec04777dae2791dd92aa563faf94c8Evan Hunt# Permission is hereby granted, free of charge, to any person obtaining a
0c27b3fe77ac1d5094ba3521e8142d9e7973133fMark Andrews# copy of this software and associated documentation files (the
1f9754245cbd5eec2d2a667bb292f62f72386d4bMark Andrews# "Software"), to deal in the Software without restriction, including
59663800d2ec04777dae2791dd92aa563faf94c8Evan Hunt# without limitation the rights to use, copy, modify, merge, publish,
1ca2cf024391992fe14b2df7d3ae0f575d074452Evan Hunt# distribute, and/or sell copies of the Software, and to permit persons
0726d872f6f36901ea09321df57084614e5bb6faTinderbox User# to whom the Software is furnished to do so, provided that the above
1ca2cf024391992fe14b2df7d3ae0f575d074452Evan Hunt# copyright notice(s) and this permission notice appear in all copies of
a2c370ca12bb0360ff7e969474ead3f788c65fffTinderbox User# the Software and that both the above copyright notice(s) and this
8de3f14f1c300c3e1ed99084cc03485b42c92bf1Tinderbox User# permission notice appear in supporting documentation.
0c27b3fe77ac1d5094ba3521e8142d9e7973133fMark Andrews#
0c27b3fe77ac1d5094ba3521e8142d9e7973133fMark Andrews# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS
b886b04d8d2b085cbf3e1bf4442dee87f43ba5e4Tinderbox User# OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
0c27b3fe77ac1d5094ba3521e8142d9e7973133fMark Andrews# MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT
0c27b3fe77ac1d5094ba3521e8142d9e7973133fMark Andrews# OF THIRD PARTY RIGHTS. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR
0c27b3fe77ac1d5094ba3521e8142d9e7973133fMark Andrews# HOLDERS INCLUDED IN THIS NOTICE BE LIABLE FOR ANY CLAIM, OR ANY SPECIAL
c651f15b30f1dae5cc2f00878fb5da5b3a35a468Mark Andrews# INDIRECT OR CONSEQUENTIAL DAMAGES, OR ANY DAMAGES WHATSOEVER RESULTING
b91d11bfcc30b96f2c80f3a76d12e3dcc8597a68Mark Andrews# FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT,
0c27b3fe77ac1d5094ba3521e8142d9e7973133fMark Andrews# NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION
c651f15b30f1dae5cc2f00878fb5da5b3a35a468Mark Andrews# WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
c651f15b30f1dae5cc2f00878fb5da5b3a35a468Mark Andrews#
0c27b3fe77ac1d5094ba3521e8142d9e7973133fMark Andrews# Except as contained in this notice, the name of a copyright holder
0c27b3fe77ac1d5094ba3521e8142d9e7973133fMark Andrews# shall not be used in advertising or otherwise to promote the sale, use
c651f15b30f1dae5cc2f00878fb5da5b3a35a468Mark Andrews# or other dealings in this Software without prior written authorization
415d630b6309922caee8469384a6fab75cf05032Mark Andrews# of the copyright holder.
0eb371ca0dab50ae3462e98794a6126198c52f4bMark Andrews#
415d630b6309922caee8469384a6fab75cf05032Mark Andrews# @(#)Makefile 1.1 08/03/12
e813f036c8251b6d9d2a72fa84f80c2c9d2795afMark Andrews#
9218b940febade3085fd6d95a15e67d5f94833f0Tinderbox User
0eb371ca0dab50ae3462e98794a6126198c52f4bMark Andrews# Package name used in tarballs
415d630b6309922caee8469384a6fab75cf05032Mark AndrewsLIB_MODULE=libXext
efb0e886f18894a1d2489f1ad74ad14b579e11c7Mark Andrews
e813f036c8251b6d9d2a72fa84f80c2c9d2795afMark Andrews# Version number (used in path names)
9218b940febade3085fd6d95a15e67d5f94833f0Tinderbox UserLIB_VERS=1.0.4
0eb371ca0dab50ae3462e98794a6126198c52f4bMark Andrews
415d630b6309922caee8469384a6fab75cf05032Mark Andrews# Patches to apply to source after unpacking, in order
0eb371ca0dab50ae3462e98794a6126198c52f4bMark AndrewsSOURCE_PATCHES = \
415d630b6309922caee8469384a6fab75cf05032Mark Andrews shm.patch \
e813f036c8251b6d9d2a72fa84f80c2c9d2795afMark Andrews sun-exts.patch
9218b940febade3085fd6d95a15e67d5f94833f0Tinderbox User
0eb371ca0dab50ae3462e98794a6126198c52f4bMark Andrews# Library name (used for specfiles/mapfiles)
015055b6e23f5c08f6a5b34726f90b62597e9e45Tinderbox UserLIBNAME=Xext
0c27b3fe77ac1d5094ba3521e8142d9e7973133fMark Andrews
aa9c561961e9d877946ebaa8795fa2be054ab7bfEvan Hunt# Man pages to apply Sun footer to & attributes to list
0c27b3fe77ac1d5094ba3521e8142d9e7973133fMark AndrewsSUNTOUCHED_MANPAGES=man/*.man
0c27b3fe77ac1d5094ba3521e8142d9e7973133fMark AndrewsSUN_PACKAGE=SUNWxwplt
aa9c561961e9d877946ebaa8795fa2be054ab7bfEvan HuntLIB_STABILITY=Committed
0c27b3fe77ac1d5094ba3521e8142d9e7973133fMark AndrewsLIB_MAN_SUFFIX=3Xext
0c27b3fe77ac1d5094ba3521e8142d9e7973133fMark Andrews
0c27b3fe77ac1d5094ba3521e8142d9e7973133fMark Andrews# Library built in tree
aa9c561961e9d877946ebaa8795fa2be054ab7bfEvan HuntLIB_BUILT=$(SOURCE_DIR)/src/.libs/libXext.so.0
0c27b3fe77ac1d5094ba3521e8142d9e7973133fMark Andrews
0c27b3fe77ac1d5094ba3521e8142d9e7973133fMark Andrews# pkg-config files that need to have -R added
aa9c561961e9d877946ebaa8795fa2be054ab7bfEvan HuntFIX_PC_FILES=xext.pc.in
0c27b3fe77ac1d5094ba3521e8142d9e7973133fMark Andrews
0c27b3fe77ac1d5094ba3521e8142d9e7973133fMark Andrews# Command line options to GNU autoconf configure script
0c27b3fe77ac1d5094ba3521e8142d9e7973133fMark AndrewsLIB_ADD_CONFIG_OPTS = --with-lint --enable-lint-library
0c27b3fe77ac1d5094ba3521e8142d9e7973133fMark Andrews
0eb371ca0dab50ae3462e98794a6126198c52f4bMark Andrews# Enable Solaris-specific code
cdfc81e048bd34c1d628380247bda6b80a89e20eAutomatic UpdaterLIB_ADD_CPPFLAGS = -DSUNSOFT
e813f036c8251b6d9d2a72fa84f80c2c9d2795afMark Andrews
9218b940febade3085fd6d95a15e67d5f94833f0Tinderbox User# Link with version mapfile and libraries that contain sources that used
0eb371ca0dab50ae3462e98794a6126198c52f4bMark Andrews# to be in libXext
0eb371ca0dab50ae3462e98794a6126198c52f4bMark AndrewsLIB_ADD_LD_OPTIONS = -M $(PWD)/mapfile-vers
9513a2a6670951f5cf5477fcfec9f933fcaff628Automatic Updater
0eb371ca0dab50ae3462e98794a6126198c52f4bMark Andrews# Regenerate Makefile.in's from Makefile.am's after patching them
e813f036c8251b6d9d2a72fa84f80c2c9d2795afMark AndrewsAUTORECONF=true
9218b940febade3085fd6d95a15e67d5f94833f0Tinderbox User
0eb371ca0dab50ae3462e98794a6126198c52f4bMark Andrews### Rules specific to this directory:
0c27b3fe77ac1d5094ba3521e8142d9e7973133fMark Andrews
0eb371ca0dab50ae3462e98794a6126198c52f4bMark Andrews# Merge in additional sources from sun-src directory
eabc9c3c07cd956d3c436bd7614cb162dabdda76Mark Andrewsadd-sun-src:: $(LNDIR)
0eb371ca0dab50ae3462e98794a6126198c52f4bMark Andrews mkdir -p $(SOURCE_DIR)
e813f036c8251b6d9d2a72fa84f80c2c9d2795afMark Andrews (cd $(SOURCE_DIR) && $(LNDIR) ../../sun-src)
9218b940febade3085fd6d95a15e67d5f94833f0Tinderbox User
0eb371ca0dab50ae3462e98794a6126198c52f4bMark Andrewssource_gen:: add-sun-src
015055b6e23f5c08f6a5b34726f90b62597e9e45Tinderbox User
3ccf87473f7cf6d9faac156df38a935a238f96fdTinderbox UserDESTDIR=$(PROTODIR)
fec6e13f2d1e69fe1c2b8fac36f732f124cf5398Mark AndrewsINSTDIR=$(DESTDIR)$(X11_INCLUDES_DIR)/X11/extensions
b91d11bfcc30b96f2c80f3a76d12e3dcc8597a68Mark Andrews
ebe53509ca55a141131c104b6d722236b606e0efTinderbox Userinstall_gen::
fec6e13f2d1e69fe1c2b8fac36f732f124cf5398Mark Andrews mkdir -p $(INSTDIR)
415d630b6309922caee8469384a6fab75cf05032Mark Andrews cp -pf sun-src/include/X11/extensions/*.h $(INSTDIR)/
2ae159b376dac23870d8005563c585acf85a4b5aEvan Hunt
415d630b6309922caee8469384a6fab75cf05032Mark Andrewsinclude ../Makefile.inc
e813f036c8251b6d9d2a72fa84f80c2c9d2795afMark Andrews