Makefile revision 1196
0N/A# Makefile for X Consolidation Open Source bits
0N/A#
1068N/A# Copyright (c) 2005, 2011, Oracle and/or its affiliates. All rights reserved.
0N/A#
0N/A# Permission is hereby granted, free of charge, to any person obtaining a
919N/A# copy of this software and associated documentation files (the "Software"),
919N/A# to deal in the Software without restriction, including without limitation
919N/A# the rights to use, copy, modify, merge, publish, distribute, sublicense,
919N/A# and/or sell copies of the Software, and to permit persons to whom the
919N/A# Software is furnished to do so, subject to the following conditions:
919N/A#
919N/A# The above copyright notice and this permission notice (including the next
919N/A# paragraph) shall be included in all copies or substantial portions of the
919N/A# Software.
919N/A#
919N/A# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
919N/A# IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
919N/A# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL
919N/A# THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
919N/A# LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
919N/A# FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER
919N/A# DEALINGS IN THE SOFTWARE.
0N/A#
0N/A#
0N/A###############################################################################
0N/A#
493N/A
810N/A# Need to install to proto area by default for inter-package dependencies to
810N/A# work right.
810N/Adefault_target: install
810N/A
493N/A# Modules have to be built in a specific order for dependencies to be
493N/A# handled properly
0N/A
493N/A# Some specific notes:
822N/A# - app/rgb depends on the rgb.h header installed by the Xorg xserver,
822N/A# so has to be built after xserver/xorg
493N/A# - util/util-macros must be first, since any module that does autoreconf
493N/A# requires it
493N/A# - data/xbitmaps must be before app, as some applications depend on the
493N/A# bitmaps installed, but the rest of data depends on applications like
493N/A# xcursorgen for processing, so must come later
810N/A# - font depends on utils like mkfontdir from app
810N/A
810N/A# High level dependencies
1193N/Aproto: util/util-macros util/lndir util/build-tools
970N/Autil/lndir: proto/x11proto
1068N/Alib: proto font/util util
1068N/Autil: proto font/util
1068N/Aapp: lib data/xbitmaps font/util
1068N/Axserver/xorg xserver/xvnc: proto doc/xorg-sgml-doctools lib font/util
822N/Adriver: xserver/xorg
822N/Aapp/rgb: xserver/xorg
1056N/Adoc/xorg-docs: doc/xorg-sgml-doctools
810N/Adata: app
851N/AFONTAPPS = app/bdftopcf app/mkfontscale app/mkfontdir
1068N/Afont: $(FONTAPPS) font/util
851N/A$(FONTAPPS): lib
493N/A
493N/AOS_SUBDIRS_common = \
174N/A util/util-macros \
1193N/A util/build-tools \
970N/A proto/x11proto \
967N/A util/lndir \
8N/A proto \
61N/A data/xbitmaps \
1068N/A font/util \
493N/A util \
1010N/A doc/xorg-sgml-doctools \
1010N/A doc/xorg-docs \
186N/A lib \
70N/A app \
851N/A $(FONTAPPS) \
822N/A xserver/xorg \
822N/A xserver/xvnc \
970N/A xserver/xserver-common \
98N/A driver \
430N/A app/rgb \
214N/A data \
98N/A font
0N/A
493N/AOS_SUBDIRS_sparc = $(OS_SUBDIRS_common)
493N/AOS_SUBDIRS_i386 = $(OS_SUBDIRS_common)
0N/A
1056N/A# Subdirs we used to build, but now just need to clean up
1056N/AOBSOLETE_SUBDIRS = \
1056N/A doc/docbook-utils
1056N/A
493N/APWD:sh=pwd
967N/ATOP=$(PWD)/..
0N/A
493N/A### Include common definitions
493N/ADIRNAME=""
967N/Ainclude $(TOP)/open-src/common/Makefile.subdirs
0N/A
1196N/APROTOTOP=$(TOP)/proto
1196N/APROTODIR=$(PROTOTOP)/root_$(MACH)
1196N/A
1196N/Acheck: check_rtime
1196N/A
1196N/A# check_rtime script from onbld to check binaries are built with the right
1196N/A# linker flags
1196N/Acheck_rtime:
1196N/A check_rtime -e ../exception_lists/check_rtime -d $(PROTODIR) $(PROTODIR)