Makefile revision 1356
5a102b3c56d4ac75632c7e9244ee0ce5bdbbf13aSascha Graef# Makefile for X Consolidation Open Source Library modules
5a102b3c56d4ac75632c7e9244ee0ce5bdbbf13aSascha Graef#
5a102b3c56d4ac75632c7e9244ee0ce5bdbbf13aSascha Graef# Copyright (c) 2007, 2012, Oracle and/or its affiliates. All rights reserved.
5a102b3c56d4ac75632c7e9244ee0ce5bdbbf13aSascha Graef#
5a102b3c56d4ac75632c7e9244ee0ce5bdbbf13aSascha Graef# Permission is hereby granted, free of charge, to any person obtaining a
5a102b3c56d4ac75632c7e9244ee0ce5bdbbf13aSascha Graef# copy of this software and associated documentation files (the "Software"),
5a102b3c56d4ac75632c7e9244ee0ce5bdbbf13aSascha Graef# to deal in the Software without restriction, including without limitation
5a102b3c56d4ac75632c7e9244ee0ce5bdbbf13aSascha Graef# the rights to use, copy, modify, merge, publish, distribute, sublicense,
5a102b3c56d4ac75632c7e9244ee0ce5bdbbf13aSascha Graef# and/or sell copies of the Software, and to permit persons to whom the
5a102b3c56d4ac75632c7e9244ee0ce5bdbbf13aSascha Graef# Software is furnished to do so, subject to the following conditions:
5a102b3c56d4ac75632c7e9244ee0ce5bdbbf13aSascha Graef#
5a102b3c56d4ac75632c7e9244ee0ce5bdbbf13aSascha Graef# The above copyright notice and this permission notice (including the next
5a102b3c56d4ac75632c7e9244ee0ce5bdbbf13aSascha Graef# paragraph) shall be included in all copies or substantial portions of the
5a102b3c56d4ac75632c7e9244ee0ce5bdbbf13aSascha Graef# Software.
5a102b3c56d4ac75632c7e9244ee0ce5bdbbf13aSascha Graef#
5a102b3c56d4ac75632c7e9244ee0ce5bdbbf13aSascha Graef# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
5a102b3c56d4ac75632c7e9244ee0ce5bdbbf13aSascha Graef# IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
5a102b3c56d4ac75632c7e9244ee0ce5bdbbf13aSascha Graef# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL
5a102b3c56d4ac75632c7e9244ee0ce5bdbbf13aSascha Graef# THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
5a102b3c56d4ac75632c7e9244ee0ce5bdbbf13aSascha Graef# LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
5a102b3c56d4ac75632c7e9244ee0ce5bdbbf13aSascha Graef# FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER
5a102b3c56d4ac75632c7e9244ee0ce5bdbbf13aSascha Graef# DEALINGS IN THE SOFTWARE.
5a102b3c56d4ac75632c7e9244ee0ce5bdbbf13aSascha Graef#
5a102b3c56d4ac75632c7e9244ee0ce5bdbbf13aSascha Graef#
5a102b3c56d4ac75632c7e9244ee0ce5bdbbf13aSascha Graef###############################################################################
5a102b3c56d4ac75632c7e9244ee0ce5bdbbf13aSascha Graef
5a102b3c56d4ac75632c7e9244ee0ce5bdbbf13aSascha Graef# Need to install to proto area by default for inter-package dependencies to
5a102b3c56d4ac75632c7e9244ee0ce5bdbbf13aSascha Graef# work right.
5a102b3c56d4ac75632c7e9244ee0ce5bdbbf13aSascha Graefdefault_target: install
5a102b3c56d4ac75632c7e9244ee0ce5bdbbf13aSascha Graef
5a102b3c56d4ac75632c7e9244ee0ce5bdbbf13aSascha Graef# Order copied from X.Org's util/modular/build.sh:
5a102b3c56d4ac75632c7e9244ee0ce5bdbbf13aSascha Graef# the libraries have a dependency order:
5a102b3c56d4ac75632c7e9244ee0ce5bdbbf13aSascha Graef# xtrans, Xau, Xdmcp before anything else
5a102b3c56d4ac75632c7e9244ee0ce5bdbbf13aSascha Graef# fontenc before Xfont
5a102b3c56d4ac75632c7e9244ee0ce5bdbbf13aSascha Graef# ICE before SM
5a102b3c56d4ac75632c7e9244ee0ce5bdbbf13aSascha Graef# X11 before Xext
5a102b3c56d4ac75632c7e9244ee0ce5bdbbf13aSascha Graef# (X11 and SM) before Xt
5a102b3c56d4ac75632c7e9244ee0ce5bdbbf13aSascha Graef# Xt before Xmu and Xpm and Xtst
5a102b3c56d4ac75632c7e9244ee0ce5bdbbf13aSascha Graef# Xext before any other extension library, including mesa
5a102b3c56d4ac75632c7e9244ee0ce5bdbbf13aSascha Graef# Xfixes before Xcomposite, Xcursor or Xdamage
5a102b3c56d4ac75632c7e9244ee0ce5bdbbf13aSascha Graef# libpthread-stubs before libdrm and xcb
5a102b3c56d4ac75632c7e9244ee0ce5bdbbf13aSascha Graef# libdrm before mesa
5a102b3c56d4ac75632c7e9244ee0ce5bdbbf13aSascha Graef
5a102b3c56d4ac75632c7e9244ee0ce5bdbbf13aSascha Graef# Dependencies needed for parallel make:
5a102b3c56d4ac75632c7e9244ee0ce5bdbbf13aSascha GraefDPS: libX11 libXt
5a102b3c56d4ac75632c7e9244ee0ce5bdbbf13aSascha Graeffontconfig: freetype
5a102b3c56d4ac75632c7e9244ee0ce5bdbbf13aSascha Graeflibdga: libX11
5a102b3c56d4ac75632c7e9244ee0ce5bdbbf13aSascha Graeflibdmx: libX11 libXext
5a102b3c56d4ac75632c7e9244ee0ce5bdbbf13aSascha Graeflibdrm: libpthread-stubs
5a102b3c56d4ac75632c7e9244ee0ce5bdbbf13aSascha Graeflibxcb: libpthread-stubs
5a102b3c56d4ac75632c7e9244ee0ce5bdbbf13aSascha Graefxcb-util: libxcb
5a102b3c56d4ac75632c7e9244ee0ce5bdbbf13aSascha Graefxcb-util-image: libxcb xcb-util
5a102b3c56d4ac75632c7e9244ee0ce5bdbbf13aSascha Graefxcb-util-keysyms: libxcb
5a102b3c56d4ac75632c7e9244ee0ce5bdbbf13aSascha Graefxcb-util-renderutil: libxcb
5a102b3c56d4ac75632c7e9244ee0ce5bdbbf13aSascha Graefxcb-util-wm: libxcb
5a102b3c56d4ac75632c7e9244ee0ce5bdbbf13aSascha GraeflibFS: libxtrans
5a102b3c56d4ac75632c7e9244ee0ce5bdbbf13aSascha GraeflibICE: libxtrans
5a102b3c56d4ac75632c7e9244ee0ce5bdbbf13aSascha GraeflibSM: libxtrans libICE
5a102b3c56d4ac75632c7e9244ee0ce5bdbbf13aSascha GraeflibX11: libxtrans libXau libXdmcp libxcb
5a102b3c56d4ac75632c7e9244ee0ce5bdbbf13aSascha GraeflibXaw: libX11 libXt libXmu libXpm
5a102b3c56d4ac75632c7e9244ee0ce5bdbbf13aSascha GraeflibXaw4: libX11 libXt libXmu
5a102b3c56d4ac75632c7e9244ee0ce5bdbbf13aSascha GraeflibXaw5: libX11 libXt libXmu
5a102b3c56d4ac75632c7e9244ee0ce5bdbbf13aSascha GraeflibXcomposite: libX11 libXext libXfixes
libXcursor: libX11 libXfixes libXrender
libXdamage: libXfixes
libXevie: libX11 libXext
libXext: libX11 libXau
libXfixes: libX11 libXext
libXfont: libxtrans freetype libfontenc
libXft: freetype fontconfig libXrender libX11
libXi: libX11 libXext
libXinerama: libX11 libXext
libXmu: libX11 libXt libXext
libXp: libX11 libXext
libXpm: libX11 libXt
libXrandr: libX11 libXext libXrender
libXrender: libX11 libXext
libXres: libX11 libXext
libXScrnSaver: libX11 libXext
libXt: libX11 libSM libICE
libXtsol: libX11 libXext
libXtst: libX11 libXext
libXv: libX11 libXext
libXvMC: libX11 libXext
libXxf86misc: libX11 libXext
libXxf86vm: libX11 libXext
libxkbfile: libX11
mesa: libdrm libX11 libXext libXdamage libXfixes libXxf86vm
freeglut: mesa
# pixman doesn't need these itself, but its test framework uses gtk,
# which does depend on these
pixman: libXext libXrender libXinerama libXi libXrandr libXcursor
pixman: libXcomposite libXdamage libXfixes libX11 freetype fontconfig
OS_SUBDIRS_common = \
DPS \
freetype \
fontconfig \
libdga \
libdmx \
libdrm \
libowconfig \
libpthread-stubs \
libxtrans \
libXau \
libXdmcp \
libxcb \
xcb-util \
xcb-util-image \
xcb-util-keysyms \
xcb-util-renderutil \
xcb-util-wm \
libX11 \
libXext \
libfontenc \
libFS \
libICE \
liblbxutil \
libpciaccess \
libSM \
libXt \
libXmu \
libXpm \
libXp \
libXaw \
libXaw4 \
libXaw5 \
libXfixes \
libXcomposite \
libXrender \
libXdamage \
libXcursor \
libXevie \
libXfont \
libXft \
libXi \
libXinerama \
libxkbfile \
libXrandr \
libXres \
libXScrnSaver \
libXtsol \
libXtst \
libXv \
libXvMC \
libXxf86misc \
libXxf86vm \
mesa \
freeglut \
pixman
OS_SUBDIRS_sparc = $(OS_SUBDIRS_common)
OS_SUBDIRS_i386 = $(OS_SUBDIRS_common)
OBSOLETE_SUBDIRS = \
hwc \
libXlg3d \
libXprintUtil \
libXprintAppUtil
PWD:sh=pwd
TOP=$(PWD)/../..
### Include common definitions
DIRNAME="lib/"
include $(TOP)/open-src/common/Makefile.subdirs