Makefile revision 1138
5a4557e8de2951a2796676b5ec4b6a90caa5be14Mark Andrews# Makefile for X Consolidation Open Source Library modules
1fdd2470b625a58b57d0b155e6caf8c4fc0afe8aAutomatic Updater#
5a4557e8de2951a2796676b5ec4b6a90caa5be14Mark Andrews# Copyright (c) 2007, 2011, Oracle and/or its affiliates. All rights reserved.
5a4557e8de2951a2796676b5ec4b6a90caa5be14Mark Andrews#
4a14ce5ba00ab7bc55c99ffdcf59c7a4ab902721Automatic Updater# Permission is hereby granted, free of charge, to any person obtaining a
5a4557e8de2951a2796676b5ec4b6a90caa5be14Mark Andrews# copy of this software and associated documentation files (the "Software"),
5a4557e8de2951a2796676b5ec4b6a90caa5be14Mark Andrews# to deal in the Software without restriction, including without limitation
5a4557e8de2951a2796676b5ec4b6a90caa5be14Mark Andrews# the rights to use, copy, modify, merge, publish, distribute, sublicense,
5a4557e8de2951a2796676b5ec4b6a90caa5be14Mark Andrews# and/or sell copies of the Software, and to permit persons to whom the
5a4557e8de2951a2796676b5ec4b6a90caa5be14Mark Andrews# Software is furnished to do so, subject to the following conditions:
5a4557e8de2951a2796676b5ec4b6a90caa5be14Mark Andrews#
5a4557e8de2951a2796676b5ec4b6a90caa5be14Mark Andrews# The above copyright notice and this permission notice (including the next
5a4557e8de2951a2796676b5ec4b6a90caa5be14Mark Andrews# paragraph) shall be included in all copies or substantial portions of the
5a4557e8de2951a2796676b5ec4b6a90caa5be14Mark Andrews# Software.
5a4557e8de2951a2796676b5ec4b6a90caa5be14Mark Andrews#
5a4557e8de2951a2796676b5ec4b6a90caa5be14Mark Andrews# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
64affc54f96a2c71cbd10ed71e246ce0746259aaAutomatic Updater# IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
5a4557e8de2951a2796676b5ec4b6a90caa5be14Mark Andrews# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL
5a4557e8de2951a2796676b5ec4b6a90caa5be14Mark Andrews# THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
5a4557e8de2951a2796676b5ec4b6a90caa5be14Mark Andrews# LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
5a4557e8de2951a2796676b5ec4b6a90caa5be14Mark Andrews# FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER
e21a2904f02a03fa06b6db04d348f65fe9c67b2bMark Andrews# DEALINGS IN THE SOFTWARE.
5a4557e8de2951a2796676b5ec4b6a90caa5be14Mark Andrews#
5a4557e8de2951a2796676b5ec4b6a90caa5be14Mark Andrews#
2a31bd531072824ef252c18303859d6af7451b00Francis Dupont###############################################################################
2cbb4ab75757fbb656997a82c14ca07db37d481aAutomatic Updater
5a4557e8de2951a2796676b5ec4b6a90caa5be14Mark Andrews# Need to install to proto area by default for inter-package dependencies to
5a4557e8de2951a2796676b5ec4b6a90caa5be14Mark Andrews# work right.
5a4557e8de2951a2796676b5ec4b6a90caa5be14Mark Andrewsdefault_target: install
5a4557e8de2951a2796676b5ec4b6a90caa5be14Mark Andrews
5a4557e8de2951a2796676b5ec4b6a90caa5be14Mark Andrews# Order copied from X.Org's util/modular/build.sh:
5a4557e8de2951a2796676b5ec4b6a90caa5be14Mark Andrews# the libraries have a dependency order:
5a4557e8de2951a2796676b5ec4b6a90caa5be14Mark Andrews# xtrans, Xau, Xdmcp before anything else
28b3569d6248168e6c00caab951521cc8141a49dAutomatic Updater# fontenc before Xfont
5a4557e8de2951a2796676b5ec4b6a90caa5be14Mark Andrews# ICE before SM
2cbb4ab75757fbb656997a82c14ca07db37d481aAutomatic Updater# X11 before Xext
5a4557e8de2951a2796676b5ec4b6a90caa5be14Mark Andrews# (X11 and SM) before Xt
5a4557e8de2951a2796676b5ec4b6a90caa5be14Mark Andrews# Xt before Xmu and Xpm and Xtst
5a4557e8de2951a2796676b5ec4b6a90caa5be14Mark Andrews# Xext before any other extension library, including mesa
5a4557e8de2951a2796676b5ec4b6a90caa5be14Mark Andrews# Xfixes before Xcomposite, Xcursor or Xdamage
5a4557e8de2951a2796676b5ec4b6a90caa5be14Mark Andrews# libpthread-stubs before libdrm and xcb
5a4557e8de2951a2796676b5ec4b6a90caa5be14Mark Andrews# libdrm before mesa
5a4557e8de2951a2796676b5ec4b6a90caa5be14Mark Andrews
5a4557e8de2951a2796676b5ec4b6a90caa5be14Mark Andrews# Dependencies needed for parallel make:
5a4557e8de2951a2796676b5ec4b6a90caa5be14Mark AndrewsDPS: libX11 libXt
5a4557e8de2951a2796676b5ec4b6a90caa5be14Mark Andrewsfontconfig: freetype
5a4557e8de2951a2796676b5ec4b6a90caa5be14Mark Andrewslibdga: libX11
5a4557e8de2951a2796676b5ec4b6a90caa5be14Mark Andrewslibdmx: libX11 libXext
5a4557e8de2951a2796676b5ec4b6a90caa5be14Mark Andrewslibdrm: libpthread-stubs
575e15fed997a3ad1cb35c5b9ef34ab24ce47e72Automatic Updaterlibxcb: libpthread-stubs
5a4557e8de2951a2796676b5ec4b6a90caa5be14Mark Andrewsxcb-util: libxcb
5a4557e8de2951a2796676b5ec4b6a90caa5be14Mark Andrewsxcb-util-image: libxcb xcb-util
575e15fed997a3ad1cb35c5b9ef34ab24ce47e72Automatic Updaterxcb-util-keysyms: libxcb
5a4557e8de2951a2796676b5ec4b6a90caa5be14Mark Andrewsxcb-util-renderutil: libxcb
5a4557e8de2951a2796676b5ec4b6a90caa5be14Mark Andrewsxcb-util-wm: libxcb
d71e2e0c61df16ff37c9934c371a4a60c08974f7Mark AndrewslibFS: libxtrans
0a7ed88633a680bb881868b75ded4d09a7bbbc50Automatic UpdaterlibICE: libxtrans
0a7ed88633a680bb881868b75ded4d09a7bbbc50Automatic UpdaterlibSM: libxtrans libICE
5a4557e8de2951a2796676b5ec4b6a90caa5be14Mark AndrewslibX11: libxtrans libXau libXdmcp libxcb
ad671240d635376dd8681550eebee799d2e3d1fdAutomatic UpdaterlibXaw: libX11 libXt libXmu libXpm
ad671240d635376dd8681550eebee799d2e3d1fdAutomatic UpdaterlibXaw4: libX11 libXt libXmu
ad671240d635376dd8681550eebee799d2e3d1fdAutomatic UpdaterlibXaw5: libX11 libXt libXmu
ad671240d635376dd8681550eebee799d2e3d1fdAutomatic UpdaterlibXcomposite: libX11 libXext libXfixes
ad671240d635376dd8681550eebee799d2e3d1fdAutomatic UpdaterlibXcursor: libX11 libXfixes libXrender
5a4557e8de2951a2796676b5ec4b6a90caa5be14Mark AndrewslibXdamage: libXfixes
5a4557e8de2951a2796676b5ec4b6a90caa5be14Mark AndrewslibXevie: libX11 libXext
575e15fed997a3ad1cb35c5b9ef34ab24ce47e72Automatic UpdaterlibXext: libX11 libXau
5a4557e8de2951a2796676b5ec4b6a90caa5be14Mark AndrewslibXfixes: libX11 libXext
5a4557e8de2951a2796676b5ec4b6a90caa5be14Mark AndrewslibXfont: libxtrans freetype libfontenc
5a4557e8de2951a2796676b5ec4b6a90caa5be14Mark AndrewslibXft: freetype fontconfig libXrender libX11
5a4557e8de2951a2796676b5ec4b6a90caa5be14Mark AndrewslibXi: libX11 libXext
0a7ed88633a680bb881868b75ded4d09a7bbbc50Automatic UpdaterlibXinerama: libX11 libXext
0a7ed88633a680bb881868b75ded4d09a7bbbc50Automatic UpdaterlibXmu: libX11 libXt libXext
8e821eea5f57ac47a94305aa7ab0c3570d92a311Automatic UpdaterlibXp: libX11 libXext
8e821eea5f57ac47a94305aa7ab0c3570d92a311Automatic UpdaterlibXpm: libX11 libXt
0a7ed88633a680bb881868b75ded4d09a7bbbc50Automatic UpdaterlibXrandr: libX11 libXext libXrender
0a7ed88633a680bb881868b75ded4d09a7bbbc50Automatic UpdaterlibXrender: libX11 libXext
0a7ed88633a680bb881868b75ded4d09a7bbbc50Automatic UpdaterlibXres: libX11 libXext
0a7ed88633a680bb881868b75ded4d09a7bbbc50Automatic UpdaterlibXScrnSaver: libX11 libXext
0a7ed88633a680bb881868b75ded4d09a7bbbc50Automatic UpdaterlibXt: libX11 libSM libICE
0a7ed88633a680bb881868b75ded4d09a7bbbc50Automatic UpdaterlibXtsol: libX11 libXext
0a7ed88633a680bb881868b75ded4d09a7bbbc50Automatic UpdaterlibXtst: libX11 libXext
8e821eea5f57ac47a94305aa7ab0c3570d92a311Automatic UpdaterlibXv: libX11 libXext
8e821eea5f57ac47a94305aa7ab0c3570d92a311Automatic UpdaterlibXvMC: libX11 libXext
8e821eea5f57ac47a94305aa7ab0c3570d92a311Automatic UpdaterlibXxf86misc: libX11 libXext
5a4557e8de2951a2796676b5ec4b6a90caa5be14Mark AndrewslibXxf86vm: libX11 libXext
5a4557e8de2951a2796676b5ec4b6a90caa5be14Mark Andrewslibxkbfile: libX11
5a4557e8de2951a2796676b5ec4b6a90caa5be14Mark Andrewsmesa: libdrm libX11 libXext
731cc132f22dbc9e0ecd7035dce314a61076d31bAutomatic Updaterfreeglut: mesa
731cc132f22dbc9e0ecd7035dce314a61076d31bAutomatic Updater
5a4557e8de2951a2796676b5ec4b6a90caa5be14Mark Andrews# pixman doesn't need these itself, but its test framework uses gtk,
5a4557e8de2951a2796676b5ec4b6a90caa5be14Mark Andrews# which does depend on these
0a7ed88633a680bb881868b75ded4d09a7bbbc50Automatic Updaterpixman: libXext libXrender libXinerama libXi libXrandr libXcursor
0a7ed88633a680bb881868b75ded4d09a7bbbc50Automatic Updaterpixman: libXcomposite libXdamage libXfixes libX11 freetype fontconfig
5a4557e8de2951a2796676b5ec4b6a90caa5be14Mark Andrews
5a4557e8de2951a2796676b5ec4b6a90caa5be14Mark AndrewsOS_SUBDIRS_common = \
5a4557e8de2951a2796676b5ec4b6a90caa5be14Mark Andrews DPS \
ca67ebfe9eef0b8f04179f7e511a19e0337a5422Automatic Updater freetype \
ca67ebfe9eef0b8f04179f7e511a19e0337a5422Automatic Updater fontconfig \
5a4557e8de2951a2796676b5ec4b6a90caa5be14Mark Andrews libdga \
8e821eea5f57ac47a94305aa7ab0c3570d92a311Automatic Updater libdmx \
ca67ebfe9eef0b8f04179f7e511a19e0337a5422Automatic Updater libdrm \
5a4557e8de2951a2796676b5ec4b6a90caa5be14Mark Andrews libowconfig \
8e821eea5f57ac47a94305aa7ab0c3570d92a311Automatic Updater libpthread-stubs \
5a4557e8de2951a2796676b5ec4b6a90caa5be14Mark Andrews libxtrans \
ca67ebfe9eef0b8f04179f7e511a19e0337a5422Automatic Updater libXau \
0a7ed88633a680bb881868b75ded4d09a7bbbc50Automatic Updater libXdmcp \
0a7ed88633a680bb881868b75ded4d09a7bbbc50Automatic Updater libxcb \
0a7ed88633a680bb881868b75ded4d09a7bbbc50Automatic Updater xcb-util \
0a7ed88633a680bb881868b75ded4d09a7bbbc50Automatic Updater xcb-util-image \
0a7ed88633a680bb881868b75ded4d09a7bbbc50Automatic Updater xcb-util-keysyms \
0a7ed88633a680bb881868b75ded4d09a7bbbc50Automatic Updater xcb-util-renderutil \
0a7ed88633a680bb881868b75ded4d09a7bbbc50Automatic Updater xcb-util-wm \
0a7ed88633a680bb881868b75ded4d09a7bbbc50Automatic Updater libX11 \
ca67ebfe9eef0b8f04179f7e511a19e0337a5422Automatic Updater libXext \
ca67ebfe9eef0b8f04179f7e511a19e0337a5422Automatic Updater libfontenc \
5a4557e8de2951a2796676b5ec4b6a90caa5be14Mark Andrews libFS \
5a4557e8de2951a2796676b5ec4b6a90caa5be14Mark Andrews libICE \
5a4557e8de2951a2796676b5ec4b6a90caa5be14Mark Andrews liblbxutil \
5a4557e8de2951a2796676b5ec4b6a90caa5be14Mark Andrews libpciaccess \
5a4557e8de2951a2796676b5ec4b6a90caa5be14Mark Andrews libSM \
5a4557e8de2951a2796676b5ec4b6a90caa5be14Mark Andrews libXt \
5a4557e8de2951a2796676b5ec4b6a90caa5be14Mark Andrews libXmu \
2f8d63983c297c62630044d28a6f66676b4d339dMark Andrews libXpm \
2f8d63983c297c62630044d28a6f66676b4d339dMark Andrews libXp \
5a4557e8de2951a2796676b5ec4b6a90caa5be14Mark Andrews libXaw \
0a7ed88633a680bb881868b75ded4d09a7bbbc50Automatic Updater libXaw4 \
0a7ed88633a680bb881868b75ded4d09a7bbbc50Automatic Updater libXaw5 \
0a7ed88633a680bb881868b75ded4d09a7bbbc50Automatic Updater libXfixes \
0a7ed88633a680bb881868b75ded4d09a7bbbc50Automatic Updater libXcomposite \
0a7ed88633a680bb881868b75ded4d09a7bbbc50Automatic Updater libXrender \
8e821eea5f57ac47a94305aa7ab0c3570d92a311Automatic Updater libXdamage \
8e821eea5f57ac47a94305aa7ab0c3570d92a311Automatic Updater libXcursor \
0a7ed88633a680bb881868b75ded4d09a7bbbc50Automatic Updater libXevie \
0a7ed88633a680bb881868b75ded4d09a7bbbc50Automatic Updater libXfont \
0a7ed88633a680bb881868b75ded4d09a7bbbc50Automatic Updater libXft \
0a7ed88633a680bb881868b75ded4d09a7bbbc50Automatic Updater libXi \
0a7ed88633a680bb881868b75ded4d09a7bbbc50Automatic Updater libXinerama \
0a7ed88633a680bb881868b75ded4d09a7bbbc50Automatic Updater libxkbfile \
0a7ed88633a680bb881868b75ded4d09a7bbbc50Automatic Updater libXrandr \
0a7ed88633a680bb881868b75ded4d09a7bbbc50Automatic Updater libXres \
0a7ed88633a680bb881868b75ded4d09a7bbbc50Automatic Updater libXScrnSaver \
0a7ed88633a680bb881868b75ded4d09a7bbbc50Automatic Updater libXtsol \
0a7ed88633a680bb881868b75ded4d09a7bbbc50Automatic Updater libXtst \
5a4557e8de2951a2796676b5ec4b6a90caa5be14Mark Andrews libXv \
5a4557e8de2951a2796676b5ec4b6a90caa5be14Mark Andrews libXvMC \
5a4557e8de2951a2796676b5ec4b6a90caa5be14Mark Andrews libXxf86misc \
5a4557e8de2951a2796676b5ec4b6a90caa5be14Mark Andrews libXxf86vm \
5a4557e8de2951a2796676b5ec4b6a90caa5be14Mark Andrews mesa \
8ec3c085233cedb22b05da36e2773c8f357a7e45Automatic Updater freeglut \
8ec3c085233cedb22b05da36e2773c8f357a7e45Automatic Updater pixman
8ec3c085233cedb22b05da36e2773c8f357a7e45Automatic Updater
8ec3c085233cedb22b05da36e2773c8f357a7e45Automatic UpdaterOS_SUBDIRS_sparc = $(OS_SUBDIRS_common)
64affc54f96a2c71cbd10ed71e246ce0746259aaAutomatic Updater
8ec3c085233cedb22b05da36e2773c8f357a7e45Automatic UpdaterOS_SUBDIRS_i386 = $(OS_SUBDIRS_common)
8ec3c085233cedb22b05da36e2773c8f357a7e45Automatic Updater
5a4557e8de2951a2796676b5ec4b6a90caa5be14Mark AndrewsOBSOLETE_SUBDIRS = \
5a4557e8de2951a2796676b5ec4b6a90caa5be14Mark Andrews hwc \
5a4557e8de2951a2796676b5ec4b6a90caa5be14Mark Andrews libXlg3d \
5a4557e8de2951a2796676b5ec4b6a90caa5be14Mark Andrews libXprintUtil \
5a4557e8de2951a2796676b5ec4b6a90caa5be14Mark Andrews libXprintAppUtil
5a4557e8de2951a2796676b5ec4b6a90caa5be14Mark Andrews
5a4557e8de2951a2796676b5ec4b6a90caa5be14Mark AndrewsPWD:sh=pwd
0a7ed88633a680bb881868b75ded4d09a7bbbc50Automatic UpdaterTOP=$(PWD)/../..
5a4557e8de2951a2796676b5ec4b6a90caa5be14Mark Andrews
f8e3e03cacd16ffb923a9603fca23a9e1a1fee07Automatic Updater### Include common definitions
f8e3e03cacd16ffb923a9603fca23a9e1a1fee07Automatic UpdaterDIRNAME="lib/"
f8e3e03cacd16ffb923a9603fca23a9e1a1fee07Automatic Updaterinclude $(TOP)/open-src/common/Makefile.subdirs
f8e3e03cacd16ffb923a9603fca23a9e1a1fee07Automatic Updater
f8e3e03cacd16ffb923a9603fca23a9e1a1fee07Automatic Updater