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