Makefile revision 970
73dad9d84c12dfeea573f0153ee2f5a20788197cvboxsync# Makefile for X Consolidation Open Source bits
eb4ce29f3435061a9053c8ef3c541f89639ad86fvboxsync#
73dad9d84c12dfeea573f0153ee2f5a20788197cvboxsync# Copyright (c) 2005, 2010, Oracle and/or its affiliates. All rights reserved.
eb4ce29f3435061a9053c8ef3c541f89639ad86fvboxsync#
eb4ce29f3435061a9053c8ef3c541f89639ad86fvboxsync# Permission is hereby granted, free of charge, to any person obtaining a
3f4449ae9853de8d2eb9e46c30f6bdeacb5355f3vboxsync# copy of this software and associated documentation files (the "Software"),
eb4ce29f3435061a9053c8ef3c541f89639ad86fvboxsync# to deal in the Software without restriction, including without limitation
5c65eaa08f2ec993a19c9bef6e5463918e40e0ebvboxsync# the rights to use, copy, modify, merge, publish, distribute, sublicense,
5c65eaa08f2ec993a19c9bef6e5463918e40e0ebvboxsync# and/or sell copies of the Software, and to permit persons to whom the
5c65eaa08f2ec993a19c9bef6e5463918e40e0ebvboxsync# Software is furnished to do so, subject to the following conditions:
5c65eaa08f2ec993a19c9bef6e5463918e40e0ebvboxsync#
5c65eaa08f2ec993a19c9bef6e5463918e40e0ebvboxsync# The above copyright notice and this permission notice (including the next
5c65eaa08f2ec993a19c9bef6e5463918e40e0ebvboxsync# paragraph) shall be included in all copies or substantial portions of the
5c65eaa08f2ec993a19c9bef6e5463918e40e0ebvboxsync# Software.
eb4ce29f3435061a9053c8ef3c541f89639ad86fvboxsync#
eb4ce29f3435061a9053c8ef3c541f89639ad86fvboxsync# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
eb4ce29f3435061a9053c8ef3c541f89639ad86fvboxsync# IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
eb4ce29f3435061a9053c8ef3c541f89639ad86fvboxsync# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL
eb4ce29f3435061a9053c8ef3c541f89639ad86fvboxsync# THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
eb4ce29f3435061a9053c8ef3c541f89639ad86fvboxsync# LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
eb4ce29f3435061a9053c8ef3c541f89639ad86fvboxsync# FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER
eb4ce29f3435061a9053c8ef3c541f89639ad86fvboxsync# DEALINGS IN THE SOFTWARE.
eb4ce29f3435061a9053c8ef3c541f89639ad86fvboxsync#
eb4ce29f3435061a9053c8ef3c541f89639ad86fvboxsync#
eb4ce29f3435061a9053c8ef3c541f89639ad86fvboxsync###############################################################################
eb4ce29f3435061a9053c8ef3c541f89639ad86fvboxsync#
eb4ce29f3435061a9053c8ef3c541f89639ad86fvboxsync
eb4ce29f3435061a9053c8ef3c541f89639ad86fvboxsync# Need to install to proto area by default for inter-package dependencies to
eb4ce29f3435061a9053c8ef3c541f89639ad86fvboxsync# work right.
eb4ce29f3435061a9053c8ef3c541f89639ad86fvboxsyncdefault_target: install
eb4ce29f3435061a9053c8ef3c541f89639ad86fvboxsync
eb4ce29f3435061a9053c8ef3c541f89639ad86fvboxsync# Modules have to be built in a specific order for dependencies to be
eb4ce29f3435061a9053c8ef3c541f89639ad86fvboxsync# handled properly
eb4ce29f3435061a9053c8ef3c541f89639ad86fvboxsync
eb4ce29f3435061a9053c8ef3c541f89639ad86fvboxsync# Some specific notes:
eb4ce29f3435061a9053c8ef3c541f89639ad86fvboxsync# - app/rgb depends on the rgb.h header installed by the Xorg xserver,
eb4ce29f3435061a9053c8ef3c541f89639ad86fvboxsync# so has to be built after xserver/xorg
eb4ce29f3435061a9053c8ef3c541f89639ad86fvboxsync# - util/util-macros must be first, since any module that does autoreconf
eb4ce29f3435061a9053c8ef3c541f89639ad86fvboxsync# requires it
eb4ce29f3435061a9053c8ef3c541f89639ad86fvboxsync# - data/xbitmaps must be before app, as some applications depend on the
eb4ce29f3435061a9053c8ef3c541f89639ad86fvboxsync# bitmaps installed, but the rest of data depends on applications like
eb4ce29f3435061a9053c8ef3c541f89639ad86fvboxsync# xcursorgen for processing, so must come later
eb4ce29f3435061a9053c8ef3c541f89639ad86fvboxsync# - font depends on utils like mkfontdir from app
eb4ce29f3435061a9053c8ef3c541f89639ad86fvboxsync
eb4ce29f3435061a9053c8ef3c541f89639ad86fvboxsync# High level dependencies
eb4ce29f3435061a9053c8ef3c541f89639ad86fvboxsyncproto: util/util-macros util/lndir
eb4ce29f3435061a9053c8ef3c541f89639ad86fvboxsyncutil/lndir: proto/x11proto
eb4ce29f3435061a9053c8ef3c541f89639ad86fvboxsynclib: proto util
eb4ce29f3435061a9053c8ef3c541f89639ad86fvboxsyncutil: proto
eb4ce29f3435061a9053c8ef3c541f89639ad86fvboxsyncapp: lib data/xbitmaps
eb4ce29f3435061a9053c8ef3c541f89639ad86fvboxsyncxserver/xorg xserver/xvnc: proto doc lib
eb4ce29f3435061a9053c8ef3c541f89639ad86fvboxsyncdriver: xserver/xorg
eb4ce29f3435061a9053c8ef3c541f89639ad86fvboxsyncapp/rgb: xserver/xorg
eb4ce29f3435061a9053c8ef3c541f89639ad86fvboxsyncdata: app
eb4ce29f3435061a9053c8ef3c541f89639ad86fvboxsyncFONTAPPS = app/bdftopcf app/mkfontscale app/mkfontdir
eb4ce29f3435061a9053c8ef3c541f89639ad86fvboxsyncfont: $(FONTAPPS)
eb4ce29f3435061a9053c8ef3c541f89639ad86fvboxsync$(FONTAPPS): lib
eb4ce29f3435061a9053c8ef3c541f89639ad86fvboxsync
eb4ce29f3435061a9053c8ef3c541f89639ad86fvboxsyncOS_SUBDIRS_common = \
eb4ce29f3435061a9053c8ef3c541f89639ad86fvboxsync util/util-macros \
eb4ce29f3435061a9053c8ef3c541f89639ad86fvboxsync proto/x11proto \
eb4ce29f3435061a9053c8ef3c541f89639ad86fvboxsync util/lndir \
eb4ce29f3435061a9053c8ef3c541f89639ad86fvboxsync proto \
eb4ce29f3435061a9053c8ef3c541f89639ad86fvboxsync data/xbitmaps \
eb4ce29f3435061a9053c8ef3c541f89639ad86fvboxsync util \
eb4ce29f3435061a9053c8ef3c541f89639ad86fvboxsync doc \
eb4ce29f3435061a9053c8ef3c541f89639ad86fvboxsync lib \
eb4ce29f3435061a9053c8ef3c541f89639ad86fvboxsync app \
eb4ce29f3435061a9053c8ef3c541f89639ad86fvboxsync $(FONTAPPS) \
eb4ce29f3435061a9053c8ef3c541f89639ad86fvboxsync xserver/xorg \
eb4ce29f3435061a9053c8ef3c541f89639ad86fvboxsync xserver/xvnc \
eb4ce29f3435061a9053c8ef3c541f89639ad86fvboxsync xserver/xserver-common \
eb4ce29f3435061a9053c8ef3c541f89639ad86fvboxsync driver \
eb4ce29f3435061a9053c8ef3c541f89639ad86fvboxsync app/rgb \
eb4ce29f3435061a9053c8ef3c541f89639ad86fvboxsync data \
eb4ce29f3435061a9053c8ef3c541f89639ad86fvboxsync font
eb4ce29f3435061a9053c8ef3c541f89639ad86fvboxsync
eb4ce29f3435061a9053c8ef3c541f89639ad86fvboxsyncOS_SUBDIRS_sparc = $(OS_SUBDIRS_common)
eb4ce29f3435061a9053c8ef3c541f89639ad86fvboxsyncOS_SUBDIRS_i386 = $(OS_SUBDIRS_common)
eb4ce29f3435061a9053c8ef3c541f89639ad86fvboxsync
73dad9d84c12dfeea573f0153ee2f5a20788197cvboxsyncPWD:sh=pwd
TOP=$(PWD)/..
### Include common definitions
DIRNAME=""
include $(TOP)/open-src/common/Makefile.subdirs