Makefile revision 9fb67ea305c66b6a297583b9b0db6796b0dfe497
0N/A# The contents of this file are subject to the terms of the 0N/A# Common Development and Distribution License (the "License"). 0N/A# You may not use this file except in compliance with the License. 0N/A# See the License for the specific language governing permissions 0N/A# and limitations under the License. 0N/A# When distributing Covered Code, include this CDDL HEADER in each 0N/A# If applicable, add the following below this CDDL HEADER, with the 0N/A# fields enclosed by brackets "[]" replaced with your own identifying 0N/A# information: Portions Copyright [yyyy] [name of copyright owner] 2362N/A# Copyright 2010 Sun Microsystems, Inc. All rights reserved. 2362N/A# Use is subject to license terms. 0N/A# Note that libcurses installs commands along with its library. 0N/A# This is a minor bug which probably should be fixed. 0N/A# Note also that a few extra libraries are kept in cmd source. 0N/A# Certain libraries are linked with, hence depend on, other libraries. 1696N/A# Although we have historically used .WAIT to express dependencies, it 0N/A# reduces the amount of parallelism and thus lengthens the time it 3787N/A# takes to build the libraries. Thus, we now require that any new 3787N/A# libraries explicitly call out their dependencies. Eventually, all 3787N/A# the library dependencies will be called out explicitly. See 3787N/A# "Library interdependencies" near the end of this file. 0N/A# Aside from explicit dependencies (and legacy .WAITs), all libraries 0N/A# are built in parallel. 0N/A# The $(CLOSED_BUILD) additions to SUBDIRS & MSGSUBDIRS are unfortunate, 0N/A# but required due to the "dependencies" of using .WAIT to barrier the 0N/A# parallel dmake builds. once 4631488 has been fixed, they can be 0N/A# consolidated into one $(CLOSED_BUILD)SUBDIRS += (all closed libs) as 0N/A# shown in HDRSUBDIRS 0N/A# Create a special version of $(SUBDIRS) with no .WAIT's, for use with the 0N/A# clean and clobber targets (for more information, see those targets, below). 0N/A# For the all and install targets, we clearly must respect library 0N/A# dependencies so that the libraries link correctly. However, for 0N/A# the remaining targets (check, clean, clobber, install_h, lint, _dc 0N/A# and _msg), libraries do not have any dependencies on one another 0N/A# and thus respecting dependencies just slows down the build. 0N/A# As such, for these rules, we use pattern replacement to explicitly 0N/A# avoid triggering the dependency information. Note that for clean, 0N/A# clobber and lint, we must use $(NOWAIT_SUBDIRS) rather than 0N/A# $(SUBDIRS), to prevent `.WAIT' from expanding to `.WAIT-nodepend'. 0N/A# extra libraries kept in other source areas 0N/A# Library interdependencies are called out explicitly here # The reason this rule checks for the existence of the # Makefile is that some of the directories do not exist # in certain situations (e.g., exportable source builds,