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