Makefile revision 749
b87a704401ebdfccd907e30fec7e047760b0177dBrian Wellington# Makefile for X Consolidation Open Source Library modules
e20788e1216ed720aefa84f3295f7899d9f28c22Mark Andrews#
92f56936fbb3bad349cb3e5e6834beb75008a2caMark Andrews# Copyright 2009 Sun Microsystems, Inc. All rights reserved.
ec5347e2c775f027573ce5648b910361aa926c01Automatic Updater# Use is subject to license terms.
ec5347e2c775f027573ce5648b910361aa926c01Automatic Updater#
ec5347e2c775f027573ce5648b910361aa926c01Automatic Updater# Permission is hereby granted, free of charge, to any person obtaining a
ec5347e2c775f027573ce5648b910361aa926c01Automatic Updater# copy of this software and associated documentation files (the
ec5347e2c775f027573ce5648b910361aa926c01Automatic Updater# "Software"), to deal in the Software without restriction, including
ec5347e2c775f027573ce5648b910361aa926c01Automatic Updater# without limitation the rights to use, copy, modify, merge, publish,
ec5347e2c775f027573ce5648b910361aa926c01Automatic Updater# distribute, and/or sell copies of the Software, and to permit persons
ec5347e2c775f027573ce5648b910361aa926c01Automatic Updater# to whom the Software is furnished to do so, provided that the above
ec5347e2c775f027573ce5648b910361aa926c01Automatic Updater# copyright notice(s) and this permission notice appear in all copies of
ec5347e2c775f027573ce5648b910361aa926c01Automatic Updater# the Software and that both the above copyright notice(s) and this
ec5347e2c775f027573ce5648b910361aa926c01Automatic Updater# permission notice appear in supporting documentation.
ec5347e2c775f027573ce5648b910361aa926c01Automatic Updater#
ec5347e2c775f027573ce5648b910361aa926c01Automatic Updater# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS
4979d89e042f6152b8270723fc8dd40de0dd354cAndreas Gustafsson# OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
40f53fa8d9c6a4fc38c0014495e7a42b08f52481David Lawrence# MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT
271c4c7ffafeb0bda21278af6cac4535c0193f18Automatic Updater# OF THIRD PARTY RIGHTS. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR
b87a704401ebdfccd907e30fec7e047760b0177dBrian Wellington# HOLDERS INCLUDED IN THIS NOTICE BE LIABLE FOR ANY CLAIM, OR ANY SPECIAL
b87a704401ebdfccd907e30fec7e047760b0177dBrian Wellington# INDIRECT OR CONSEQUENTIAL DAMAGES, OR ANY DAMAGES WHATSOEVER RESULTING
40f53fa8d9c6a4fc38c0014495e7a42b08f52481David Lawrence# FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT,
dafcb997e390efa4423883dafd100c975c4095d6Mark Andrews# NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION
dafcb997e390efa4423883dafd100c975c4095d6Mark Andrews# WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
dafcb997e390efa4423883dafd100c975c4095d6Mark Andrews#
dafcb997e390efa4423883dafd100c975c4095d6Mark Andrews# Except as contained in this notice, the name of a copyright holder
dafcb997e390efa4423883dafd100c975c4095d6Mark Andrews# shall not be used in advertising or otherwise to promote the sale, use
dafcb997e390efa4423883dafd100c975c4095d6Mark Andrews# or other dealings in this Software without prior written authorization
dafcb997e390efa4423883dafd100c975c4095d6Mark Andrews# of the copyright holder.
b87a704401ebdfccd907e30fec7e047760b0177dBrian Wellington#
b87a704401ebdfccd907e30fec7e047760b0177dBrian Wellington# @(#)Makefile 1.31 09/07/14
ab023a65562e62b85a824509d829b6fad87e00b1Rob Austein#
b87a704401ebdfccd907e30fec7e047760b0177dBrian Wellington###############################################################################
b87a704401ebdfccd907e30fec7e047760b0177dBrian Wellington
b87a704401ebdfccd907e30fec7e047760b0177dBrian Wellington# Order copied from X.Org's util/modular/build.sh:
553ead32ff5b00284e574dcabc39115d4d74ec66Evan Hunt# the libraries have a dependency order:
b87a704401ebdfccd907e30fec7e047760b0177dBrian Wellington# xtrans, Xau, Xdmcp before anything else
c6d2578fd67bc1a427d13fd0699b25a187feec8aMark Andrews# fontenc before Xfont
b87a704401ebdfccd907e30fec7e047760b0177dBrian Wellington# ICE before SM
ad418d66f8f4c3927b62de39a24ad1408fe9bd23Brian Wellington# X11 before Xext
6a759e38699d133302d0df120d7afcd4af721951David Lawrence# (X11 and SM) before Xt
79d91e915023ffa5fac1bb2f91f19210bb18407cBrian Wellington# Xt before Xmu and Xpm and Xtst
b87a704401ebdfccd907e30fec7e047760b0177dBrian Wellington# Xext before any other extension library, including mesa
1a69a1a78cfaa86f3b68bbc965232b7876d4da2aDavid Lawrence# Xfixes before Xcomposite
1a69a1a78cfaa86f3b68bbc965232b7876d4da2aDavid Lawrence# Xp before XprintUtil before XprintAppUtil
364a82f7c25b62967678027043425201a5e5171aBob Halley# libpthread-stubs before libdrm (and in the future, before xcb)
364a82f7c25b62967678027043425201a5e5171aBob Halley# libdrm before mesa
8a198fa776a09beb4dabf40b73a54d9c7bd70ac9Evan Hunt
a9bc95f22ef2dd4a12e79be99412c9f18b814a5dBrian WellingtonOS_SUBDIRS_common = \
b87a704401ebdfccd907e30fec7e047760b0177dBrian Wellington freetype \
b1d234eb75e2804e09d89178a76df39c321db51bBrian Wellington fontconfig \
a9bc95f22ef2dd4a12e79be99412c9f18b814a5dBrian Wellington libpthread-stubs \
1f8f904ad612e372bf34d88fce28c59ac5e54574Brian Wellington libxtrans \
a9bc95f22ef2dd4a12e79be99412c9f18b814a5dBrian Wellington libXau \
32eeec855957c3dd38f0d6c98ca79b67a71300b6Brian Wellington libXdmcp \
a9bc95f22ef2dd4a12e79be99412c9f18b814a5dBrian Wellington libX11 \
b87a704401ebdfccd907e30fec7e047760b0177dBrian Wellington libXext \
b87a704401ebdfccd907e30fec7e047760b0177dBrian Wellington libfontenc \
acbb301e648b82fcc38b876a44403cf0fe539cc9Evan Hunt libFS \
acbb301e648b82fcc38b876a44403cf0fe539cc9Evan Hunt libICE \
acbb301e648b82fcc38b876a44403cf0fe539cc9Evan Hunt liblbxutil \
acbb301e648b82fcc38b876a44403cf0fe539cc9Evan Hunt libpciaccess \
b1d234eb75e2804e09d89178a76df39c321db51bBrian Wellington libSM \
b87a704401ebdfccd907e30fec7e047760b0177dBrian Wellington libXt \
b7bf1bc9d9e822022d7c4c918851551ce3d69a1aBrian Wellington libXmu \
22e8a319814f3ff2b9ec8c8321e167be2344f1afBrian Wellington libXpm \
7efc8c3f692fc3226c00ce8bdc1b90eb06562352David Lawrence libXp \
b1d234eb75e2804e09d89178a76df39c321db51bBrian Wellington libXaw \
6a285c816d1c5f82afbcc92f7f5928ce8e9f9ffaBrian Wellington libXaw4 \
553ead32ff5b00284e574dcabc39115d4d74ec66Evan Hunt libXaw5 \
553ead32ff5b00284e574dcabc39115d4d74ec66Evan Hunt libXfixes \
36e37042c6c9252cdf6eb99bd71ccb6e6c43ba6dBrian Wellington libXcomposite \
debd489a44363870f96f75818e89ec27d3cab736Francis Dupont libXrender \
debd489a44363870f96f75818e89ec27d3cab736Francis Dupont libXdamage \
debd489a44363870f96f75818e89ec27d3cab736Francis Dupont libXcursor \
775a8d86d93269a621a7ad15c49b31b533da0671Francis Dupont libXevie \
775a8d86d93269a621a7ad15c49b31b533da0671Francis Dupont libXfont \
6a285c816d1c5f82afbcc92f7f5928ce8e9f9ffaBrian Wellington libXft \
d6a2af163f61cad7ab014a9dd5dc0f35920b1ed3David Lawrence libXi \
c3de05e48abc255b044e66c876809f597a7192a3Brian Wellington libXinerama \
553ead32ff5b00284e574dcabc39115d4d74ec66Evan Hunt libxkbfile \
93e353425a81da7793dde3776f4caca658f57c11Mark Andrews libxkbui \
b272d38cc5d24f64c0647a9afb340c21c4b9aaf7Evan Hunt libXrandr \
b272d38cc5d24f64c0647a9afb340c21c4b9aaf7Evan Hunt libXres \
553ead32ff5b00284e574dcabc39115d4d74ec66Evan Hunt libXScrnSaver \
553ead32ff5b00284e574dcabc39115d4d74ec66Evan Hunt libXtsol \
cc6cddfd94e8f0c58c290317b0853dac30b1b895Evan Hunt libXtst \
cc6cddfd94e8f0c58c290317b0853dac30b1b895Evan Hunt libXv \
37dee1ff94960a61243f611c0f87f8c316815c53Mark Andrews libXvMC \
aaaf8d4f4873d21e55c3ffb4f656203d08339865Mark Andrews libXxf86misc \
553ead32ff5b00284e574dcabc39115d4d74ec66Evan Hunt libXxf86vm \
553ead32ff5b00284e574dcabc39115d4d74ec66Evan Hunt pixman \
553ead32ff5b00284e574dcabc39115d4d74ec66Evan Hunt hwc
553ead32ff5b00284e574dcabc39115d4d74ec66Evan Hunt
553ead32ff5b00284e574dcabc39115d4d74ec66Evan HuntOS_SUBDIRS_sparc = $(OS_SUBDIRS_common)
553ead32ff5b00284e574dcabc39115d4d74ec66Evan Hunt
553ead32ff5b00284e574dcabc39115d4d74ec66Evan HuntOS_SUBDIRS_i386 = $(OS_SUBDIRS_common) \
c6f4972c745f8903aba6dcca41f17a44c473db66Mark Andrews libdrm \
c6f4972c745f8903aba6dcca41f17a44c473db66Mark Andrews mesa
c6f4972c745f8903aba6dcca41f17a44c473db66Mark Andrews
c6f4972c745f8903aba6dcca41f17a44c473db66Mark AndrewsOBSOLETE_SUBDIRS = \
c6f4972c745f8903aba6dcca41f17a44c473db66Mark Andrews libXlg3d \
c6f4972c745f8903aba6dcca41f17a44c473db66Mark Andrews libXprintUtil \
c6f4972c745f8903aba6dcca41f17a44c473db66Mark Andrews libXprintAppUtil
c6f4972c745f8903aba6dcca41f17a44c473db66Mark Andrews
553ead32ff5b00284e574dcabc39115d4d74ec66Evan HuntPWD:sh=pwd
37dee1ff94960a61243f611c0f87f8c316815c53Mark AndrewsTOP=$(PWD)/..
aaaf8d4f4873d21e55c3ffb4f656203d08339865Mark Andrews
aaaf8d4f4873d21e55c3ffb4f656203d08339865Mark Andrews### Include common definitions
c6f4972c745f8903aba6dcca41f17a44c473db66Mark AndrewsDIRNAME="lib/"
c6f4972c745f8903aba6dcca41f17a44c473db66Mark Andrewsinclude $(TOP)/common/Makefile.subdirs
c6f4972c745f8903aba6dcca41f17a44c473db66Mark Andrews