Makefile revision e1dd0a2f3a26050d1f183c1cafae42c4e3a0b57e
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 2008 Sun Microsystems, Inc. All rights reserved. 2362N/A# Use is subject to license terms. 0N/A# ident "%Z%%M% %I% %E% SMI" 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. 0N/A# Although we have historically used .WAIT to express dependencies, it 0N/A# reduces the amount of parallelism and thus lengthens the time it 0N/A# takes to build the libraries. Thus, we now require that any new 3784N/A# libraries explicitly call out their dependencies. Eventually, all 3784N/A# the library dependencies will be called out explicitly. See 3784N/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 1121N/A# Create a special version of $(SUBDIRS) with no .WAIT's, for use with the 1121N/A# clean and clobber targets (for more information, see those targets, below). # For the all and install targets, we clearly must respect library # dependencies so that the libraries link correctly. However, for # the remaining targets (check, clean, clobber, install_h, lint, _dc # and _msg), libraries do not have any dependencies on one another # and thus respecting dependencies just slows down the build. # As such, for these rules, we use pattern replacement to explicitly # avoid triggering the dependency information. Note that for clean, # clobber and lint, we must use $(NOWAIT_SUBDIRS) rather than # $(SUBDIRS), to prevent `.WAIT' from expanding to `.WAIT-nodepend'. # extra libraries kept in other source areas # dependencies for pam_modules (see below) # 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,