Makefile revision 577
ac4e70ff8955669341f435bc0a734a17c01af124Mark Andrews# Makefile for X Consolidation Open Source Library modules
205c10066a0acfeac52d1a135671f41d207b8557Automatic Updater#
205c10066a0acfeac52d1a135671f41d207b8557Automatic Updater# Copyright 2008 Sun Microsystems, Inc. All rights reserved.
1167fc7904c5f0a472f8df207ac46dd52c7f1ec8Automatic Updater# Use subject to license terms.
0c39b3ed9409ecb277d5e32fa763a4e4d6598df8Automatic Updater#
46da3117812814a29432a8d9a9ccf8acdbfdadceAutomatic Updater# Permission is hereby granted, free of charge, to any person obtaining a
2bb3422dc683c013db7042f5736240de6b86f182Automatic Updater# copy of this software and associated documentation files (the
cd0aa2d941d1438fabb5337f1f38c49478edf71dAutomatic Updater# "Software"), to deal in the Software without restriction, including
2ec4ab21838e218863d052ebfa3e106e04f50820Evan Hunt# without limitation the rights to use, copy, modify, merge, publish,
ea854b585041ad19f70f7af15e08144ef2c2bd1bMark Andrews# distribute, and/or sell copies of the Software, and to permit persons
78cb74fab4665da2e2641ba909c6f59f74cc4193Automatic Updater# to whom the Software is furnished to do so, provided that the above
cd0aa2d941d1438fabb5337f1f38c49478edf71dAutomatic Updater# copyright notice(s) and this permission notice appear in all copies of
90ff38a0d8deaf5f9c2aa5916d99b2e572d28738Automatic Updater# the Software and that both the above copyright notice(s) and this
9e3a7b0faf417a10f5f689edf288807b2d5eedc5Brian Wellington# permission notice appear in supporting documentation.
ac4e70ff8955669341f435bc0a734a17c01af124Mark Andrews#
6c6a121295b30772cbf3dd75a51fb9d883051a0eAutomatic Updater# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS
9e3a7b0faf417a10f5f689edf288807b2d5eedc5Brian Wellington# OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
9cd5eb6fe0f26d65724b99216cb31dcdd12e4afdAutomatic Updater# MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT
bc0a53583d92309bebcf93c408e2f3247ebd3d3cAutomatic Updater# OF THIRD PARTY RIGHTS. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR
56874aef380a64a2c183b7c282c3e7a361d67fa1Automatic Updater# HOLDERS INCLUDED IN THIS NOTICE BE LIABLE FOR ANY CLAIM, OR ANY SPECIAL
c651f15b30f1dae5cc2f00878fb5da5b3a35a468Mark Andrews# INDIRECT OR CONSEQUENTIAL DAMAGES, OR ANY DAMAGES WHATSOEVER RESULTING
58be84825d7f5de30e50eb7206b37227ecd8055bAutomatic Updater# FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT,
3cc98b8ecedcbc8465f1cf2740b966b315662430Automatic Updater# NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION
c651f15b30f1dae5cc2f00878fb5da5b3a35a468Mark Andrews# WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
c651f15b30f1dae5cc2f00878fb5da5b3a35a468Mark Andrews#
96713299d08c0735c18ebe8772dd2cc1ecd4356aAutomatic Updater# Except as contained in this notice, the name of a copyright holder
831f79c4310a7d38fc3475ccfff531b2b2535641Automatic Updater# 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
f2770f6b39a9b2a98afb7a11ed105f73f1570c1eAutomatic Updater# of the copyright holder.
efb0e886f18894a1d2489f1ad74ad14b579e11c7Mark Andrews#
f2770f6b39a9b2a98afb7a11ed105f73f1570c1eAutomatic Updater# @(#)Makefile 1.27 08/10/30
91216cff91b34c9ff6e846dc23f248219cafe660Andreas Gustafsson#
f2770f6b39a9b2a98afb7a11ed105f73f1570c1eAutomatic Updater###############################################################################
f2770f6b39a9b2a98afb7a11ed105f73f1570c1eAutomatic Updater
91216cff91b34c9ff6e846dc23f248219cafe660Andreas Gustafsson# Order copied from X.Org's util/modular/build.sh:
f2770f6b39a9b2a98afb7a11ed105f73f1570c1eAutomatic Updater# the libraries have a dependency order:
9513a2a6670951f5cf5477fcfec9f933fcaff628Automatic Updater# xtrans, Xau, Xdmcp before anything else
9513a2a6670951f5cf5477fcfec9f933fcaff628Automatic Updater# fontenc before Xfont
aa9c561961e9d877946ebaa8795fa2be054ab7bfEvan Hunt# ICE before SM
9513a2a6670951f5cf5477fcfec9f933fcaff628Automatic Updater# X11 before Xext
9513a2a6670951f5cf5477fcfec9f933fcaff628Automatic Updater# (X11 and SM) before Xt
aa9c561961e9d877946ebaa8795fa2be054ab7bfEvan Hunt# Xt before Xmu and Xpm and Xtst
9513a2a6670951f5cf5477fcfec9f933fcaff628Automatic Updater# Xext before any other extension library
9513a2a6670951f5cf5477fcfec9f933fcaff628Automatic Updater# Xfixes before Xcomposite
9513a2a6670951f5cf5477fcfec9f933fcaff628Automatic Updater# Xp before XprintUtil before XprintAppUtil
aa9c561961e9d877946ebaa8795fa2be054ab7bfEvan Hunt
2d2dc37599979c83495510f8af8d1756753aa2c5Automatic UpdaterOS_SUBDIRS_common = \
2d2dc37599979c83495510f8af8d1756753aa2c5Automatic Updater freetype \
aa9c561961e9d877946ebaa8795fa2be054ab7bfEvan Hunt fontconfig \
9513a2a6670951f5cf5477fcfec9f933fcaff628Automatic Updater libpthread-stubs \
9513a2a6670951f5cf5477fcfec9f933fcaff628Automatic Updater libxtrans \
9513a2a6670951f5cf5477fcfec9f933fcaff628Automatic Updater libXau \
9513a2a6670951f5cf5477fcfec9f933fcaff628Automatic Updater libXdmcp \
9513a2a6670951f5cf5477fcfec9f933fcaff628Automatic Updater libX11 \
cdfc81e048bd34c1d628380247bda6b80a89e20eAutomatic Updater libXext \
cdfc81e048bd34c1d628380247bda6b80a89e20eAutomatic Updater libfontenc \
9513a2a6670951f5cf5477fcfec9f933fcaff628Automatic Updater libFS \
9513a2a6670951f5cf5477fcfec9f933fcaff628Automatic Updater libICE \
9513a2a6670951f5cf5477fcfec9f933fcaff628Automatic Updater liblbxutil \
9513a2a6670951f5cf5477fcfec9f933fcaff628Automatic Updater libpciaccess \
eabc9c3c07cd956d3c436bd7614cb162dabdda76Mark Andrews libSM \
eabc9c3c07cd956d3c436bd7614cb162dabdda76Mark Andrews libXt \
eabc9c3c07cd956d3c436bd7614cb162dabdda76Mark Andrews libXmu \
9e3a7b0faf417a10f5f689edf288807b2d5eedc5Brian Wellington libXpm \
9cd5eb6fe0f26d65724b99216cb31dcdd12e4afdAutomatic Updater libXp \
c651f15b30f1dae5cc2f00878fb5da5b3a35a468Mark Andrews libXaw \
129090f0f6f91753b4a085ab635e28549fd018adAutomatic Updater libXfixes \
129090f0f6f91753b4a085ab635e28549fd018adAutomatic Updater libXcomposite \
c651f15b30f1dae5cc2f00878fb5da5b3a35a468Mark Andrews libXrender \
d7a77415c13bb2fc2d1acb857486d97e4466e3b8Automatic Updater libXdamage \
c651f15b30f1dae5cc2f00878fb5da5b3a35a468Mark Andrews libXcursor \
db5b7e2cdf150c46e8242d3e2e3ad3f5c7300258Automatic Updater libXevie \
80faf1588895fd26490f82f95a7a1b771df1c324Automatic Updater libXfont \
c651f15b30f1dae5cc2f00878fb5da5b3a35a468Mark Andrews libXft \
1a06700908f5a1d9f4a8d51285a0fd971e2f9117Automatic Updater libXi \
c651f15b30f1dae5cc2f00878fb5da5b3a35a468Mark Andrews libXinerama \
db5b7e2cdf150c46e8242d3e2e3ad3f5c7300258Automatic Updater libxkbfile \
693c4232dfdffaff672197d4b9fea944c64cf80aAutomatic Updater libxkbui \
c651f15b30f1dae5cc2f00878fb5da5b3a35a468Mark Andrews libXprintUtil \
f2770f6b39a9b2a98afb7a11ed105f73f1570c1eAutomatic Updater libXprintAppUtil \
91216cff91b34c9ff6e846dc23f248219cafe660Andreas Gustafsson libXrandr \
f2770f6b39a9b2a98afb7a11ed105f73f1570c1eAutomatic Updater libXres \
f2770f6b39a9b2a98afb7a11ed105f73f1570c1eAutomatic Updater libXScrnSaver \
efb0e886f18894a1d2489f1ad74ad14b579e11c7Mark Andrews libXtsol \
f2770f6b39a9b2a98afb7a11ed105f73f1570c1eAutomatic Updater libXtst \
91216cff91b34c9ff6e846dc23f248219cafe660Andreas Gustafsson libXv \
f2770f6b39a9b2a98afb7a11ed105f73f1570c1eAutomatic Updater libXvMC \
f2770f6b39a9b2a98afb7a11ed105f73f1570c1eAutomatic Updater libXxf86misc \
91216cff91b34c9ff6e846dc23f248219cafe660Andreas Gustafsson libXxf86vm \
f2770f6b39a9b2a98afb7a11ed105f73f1570c1eAutomatic Updater libXlg3d \
dd65eb1efb40b1c47d57963192bfc54873b219beAutomatic Updater pixman \
dd65eb1efb40b1c47d57963192bfc54873b219beAutomatic Updater hwc
78f3ed4bc2fcd3d270bfd599804f3b27a1db4d91Mark Andrews
b1265b5a06df36d490d4bdf54284fb133a1f5a84Automatic UpdaterOS_SUBDIRS_sparc = $(OS_SUBDIRS_common)
9174e44c14b1cb91a651fa1dc29470438c246ab9Automatic Updater
78f3ed4bc2fcd3d270bfd599804f3b27a1db4d91Mark AndrewsOS_SUBDIRS_i386 = $(OS_SUBDIRS_common) \
2a31bd531072824ef252c18303859d6af7451b00Francis Dupont libdrm \
0c39b3ed9409ecb277d5e32fa763a4e4d6598df8Automatic Updater mesa
0c39b3ed9409ecb277d5e32fa763a4e4d6598df8Automatic Updater
2a31bd531072824ef252c18303859d6af7451b00Francis DupontPWD:sh=pwd
c651f15b30f1dae5cc2f00878fb5da5b3a35a468Mark AndrewsTOP=$(PWD)/..
f9119ad8f6114b2255e7545bf5cd187f4db0a89bAutomatic Updater
9174e44c14b1cb91a651fa1dc29470438c246ab9Automatic Updater### Include common definitions
c651f15b30f1dae5cc2f00878fb5da5b3a35a468Mark AndrewsDIRNAME="lib/"
78f3ed4bc2fcd3d270bfd599804f3b27a1db4d91Mark Andrewsinclude $(TOP)/common/Makefile.subdirs
08e3b6797706a13054bad749dea04e94b514b8e7Automatic Updater