Makefile revision 450396635f70344c58b6b1e4db38cf17ff34445c
f58c87ece2202b8f85310d8885c7e39a7f435c09Jason Lemay# CDDL HEADER START
f58c87ece2202b8f85310d8885c7e39a7f435c09Jason Lemay# The contents of this file are subject to the terms of the
f58c87ece2202b8f85310d8885c7e39a7f435c09Jason Lemay# Common Development and Distribution License (the "License").
f58c87ece2202b8f85310d8885c7e39a7f435c09Jason Lemay# You may not use this file except in compliance with the License.
f58c87ece2202b8f85310d8885c7e39a7f435c09Jason Lemay# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
f58c87ece2202b8f85310d8885c7e39a7f435c09Jason Lemay# See the License for the specific language governing permissions
f58c87ece2202b8f85310d8885c7e39a7f435c09Jason Lemay# and limitations under the License.
f58c87ece2202b8f85310d8885c7e39a7f435c09Jason Lemay# When distributing Covered Code, include this CDDL HEADER in each
f58c87ece2202b8f85310d8885c7e39a7f435c09Jason Lemay# file and include the License file at usr/src/OPENSOLARIS.LICENSE.
f58c87ece2202b8f85310d8885c7e39a7f435c09Jason Lemay# If applicable, add the following below this CDDL HEADER, with the
f58c87ece2202b8f85310d8885c7e39a7f435c09Jason Lemay# fields enclosed by brackets "[]" replaced with your own identifying
f58c87ece2202b8f85310d8885c7e39a7f435c09Jason Lemay# information: Portions Copyright [yyyy] [name of copyright owner]
f58c87ece2202b8f85310d8885c7e39a7f435c09Jason Lemay# CDDL HEADER END
f58c87ece2202b8f85310d8885c7e39a7f435c09Jason Lemay# Copyright 2009 Sun Microsystems, Inc. All rights reserved.
f58c87ece2202b8f85310d8885c7e39a7f435c09Jason Lemay# Use is subject to license terms.
f58c87ece2202b8f85310d8885c7e39a7f435c09Jason Lemay# Note that libcurses installs commands along with its library.
f58c87ece2202b8f85310d8885c7e39a7f435c09Jason Lemay# This is a minor bug which probably should be fixed.
f58c87ece2202b8f85310d8885c7e39a7f435c09Jason Lemay# Note also that a few extra libraries are kept in cmd source.
f58c87ece2202b8f85310d8885c7e39a7f435c09Jason Lemay# Certain libraries are linked with, hence depend on, other libraries.
f58c87ece2202b8f85310d8885c7e39a7f435c09Jason Lemay# Although we have historically used .WAIT to express dependencies, it
f58c87ece2202b8f85310d8885c7e39a7f435c09Jason Lemay# reduces the amount of parallelism and thus lengthens the time it
f58c87ece2202b8f85310d8885c7e39a7f435c09Jason Lemay# takes to build the libraries. Thus, we now require that any new
f58c87ece2202b8f85310d8885c7e39a7f435c09Jason Lemay# libraries explicitly call out their dependencies. Eventually, all
f58c87ece2202b8f85310d8885c7e39a7f435c09Jason Lemay# the library dependencies will be called out explicitly. See
f58c87ece2202b8f85310d8885c7e39a7f435c09Jason Lemay# "Library interdependencies" near the end of this file.
f58c87ece2202b8f85310d8885c7e39a7f435c09Jason Lemay# Aside from explicit dependencies (and legacy .WAITs), all libraries
f58c87ece2202b8f85310d8885c7e39a7f435c09Jason Lemay# are built in parallel.
f58c87ece2202b8f85310d8885c7e39a7f435c09Jason Lemay# The $(CLOSED_BUILD) additions to SUBDIRS & MSGSUBDIRS are unfortunate,
f58c87ece2202b8f85310d8885c7e39a7f435c09Jason Lemay# but required due to the "dependencies" of using .WAIT to barrier the
f58c87ece2202b8f85310d8885c7e39a7f435c09Jason Lemay# parallel dmake builds. once 4631488 has been fixed, they can be
f58c87ece2202b8f85310d8885c7e39a7f435c09Jason Lemay# consolidated into one $(CLOSED_BUILD)SUBDIRS += (all closed libs) as
f58c87ece2202b8f85310d8885c7e39a7f435c09Jason Lemay# shown in HDRSUBDIRS
f58c87ece2202b8f85310d8885c7e39a7f435c09Jason Lemay# Create a special version of $(SUBDIRS) with no .WAIT's, for use with the
f58c87ece2202b8f85310d8885c7e39a7f435c09Jason Lemay# clean and clobber targets (for more information, see those targets, below).
libdscfg \
libeti \
libfstyp \
libgen \
libipmi \
libipmp \
libipp \
libkstat \
libkvm \
libmail \
libmd \
libndmp \
libnsctl \
libnsl \
libnwam \
libpam \
libpctx \
libpicl \
libplot \
libpool \
libpp \
libproc \
librcm \
librdc \
libscf \
libsip \
librsm \
librstp \
libsasl \
libsec \
libshell \
libslp \
libfcoe \
libstmf \
libsum \
libtecla \
libtnf \
libtsnet \
libtsol \
libumem \
libuutil \
libwrap \
libzfs \
hal \
lvm \
pkcs11 \
fm \
udapl \
libmapid \
libkrb5 \
libsmbfs \
libshare \
libidmap \
libvscan \
smbsrv \
scsi \
hbaapi \
smhba \
libima \
mpapi \
mms \
libds \
libdscp \
libpri \
print: libldap5
# in certain situations (e.g., exportable source builds,
@if [ -f $@/Makefile ]; then \
FRC: