Makefile revision fb9f9b975cb9214fec5dab37d461199adab9b964
b0e8629055a766d4555a005a283c2889a5974945Mark Andrews# CDDL HEADER START
5a4557e8de2951a2796676b5ec4b6a90caa5be14Mark Andrews# The contents of this file are subject to the terms of the
5a4557e8de2951a2796676b5ec4b6a90caa5be14Mark Andrews# Common Development and Distribution License, Version 1.0 only
5a4557e8de2951a2796676b5ec4b6a90caa5be14Mark Andrews# (the "License"). You may not use this file except in compliance
5a4557e8de2951a2796676b5ec4b6a90caa5be14Mark Andrews# with the License.
5a4557e8de2951a2796676b5ec4b6a90caa5be14Mark Andrews# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
5a4557e8de2951a2796676b5ec4b6a90caa5be14Mark Andrews# See the License for the specific language governing permissions
5a4557e8de2951a2796676b5ec4b6a90caa5be14Mark Andrews# and limitations under the License.
5a4557e8de2951a2796676b5ec4b6a90caa5be14Mark Andrews# When distributing Covered Code, include this CDDL HEADER in each
5a4557e8de2951a2796676b5ec4b6a90caa5be14Mark Andrews# file and include the License file at usr/src/OPENSOLARIS.LICENSE.
5a4557e8de2951a2796676b5ec4b6a90caa5be14Mark Andrews# If applicable, add the following below this CDDL HEADER, with the
b0e8629055a766d4555a005a283c2889a5974945Mark Andrews# fields enclosed by brackets "[]" replaced with your own identifying
5a4557e8de2951a2796676b5ec4b6a90caa5be14Mark Andrews# information: Portions Copyright [yyyy] [name of copyright owner]
5a4557e8de2951a2796676b5ec4b6a90caa5be14Mark Andrews# CDDL HEADER END
5a4557e8de2951a2796676b5ec4b6a90caa5be14Mark Andrews# Copyright 2005 Sun Microsystems, Inc. All rights reserved.
5a4557e8de2951a2796676b5ec4b6a90caa5be14Mark Andrews# Use is subject to license terms.
5a4557e8de2951a2796676b5ec4b6a90caa5be14Mark Andrews# ident "%Z%%M% %I% %E% SMI"
5a4557e8de2951a2796676b5ec4b6a90caa5be14Mark Andrews# Note that libcurses installs commands along with its library.
5a4557e8de2951a2796676b5ec4b6a90caa5be14Mark Andrews# This is a minor bug which probably should be fixed.
5a4557e8de2951a2796676b5ec4b6a90caa5be14Mark Andrews# Note also that a few extra libraries are kept in cmd source.
5a4557e8de2951a2796676b5ec4b6a90caa5be14Mark Andrews# Certain libraries are linked with, hence depend on, other libraries.
5a4557e8de2951a2796676b5ec4b6a90caa5be14Mark Andrews# Although we have historically used .WAIT to express dependencies, it
5a4557e8de2951a2796676b5ec4b6a90caa5be14Mark Andrews# reduces the amount of parallelism and thus lengthens the time it
5a4557e8de2951a2796676b5ec4b6a90caa5be14Mark Andrews# takes to build the libraries. Thus, we now require that any new
5a4557e8de2951a2796676b5ec4b6a90caa5be14Mark Andrews# libraries explicitly call out their dependencies. Eventually, all
5a4557e8de2951a2796676b5ec4b6a90caa5be14Mark Andrews# the library dependencies will be called out explicitly. See
5a4557e8de2951a2796676b5ec4b6a90caa5be14Mark Andrews# "Library interdependencies" near the end of this file.
5a4557e8de2951a2796676b5ec4b6a90caa5be14Mark Andrews# Aside from explicit dependencies (and legacy .WAITs), all libraries
5a4557e8de2951a2796676b5ec4b6a90caa5be14Mark Andrews# are built in parallel.
5a4557e8de2951a2796676b5ec4b6a90caa5be14Mark Andrews# The $(CLOSED_BUILD) additions to SUBDIRS & MSGSUBDIRS are unfortunate,
a057e8e33baa5fa369be28a9680585200ce3ff73Mark Andrews# but required due to the "dependencies" of using .WAIT to barrier the
5a4557e8de2951a2796676b5ec4b6a90caa5be14Mark Andrews# parallel dmake builds. once 4631488 has been fixed, they can be
5a4557e8de2951a2796676b5ec4b6a90caa5be14Mark Andrews# consolidated into one $(CLOSED_BUILD)SUBDIRS += (all closed libs) as
b0e8629055a766d4555a005a283c2889a5974945Mark Andrews# shown in HDRSUBDIRS
5a4557e8de2951a2796676b5ec4b6a90caa5be14Mark Andrews# Create a special version of $(SUBDIRS) with no .WAIT's, for use with the
5a4557e8de2951a2796676b5ec4b6a90caa5be14Mark Andrews# clean and clobber targets (for more information, see those targets, below).
libc \
libgss \
libipmp \
libnsl \
libpam \
libpicl \
libpool \
libscf \
libsasl \
libldap5 \
libsecdb \
libsldap \
libslp \
libuutil \
lvm \
madv \
mpss \
MSGSUBDIRS += \
libbsm \
libc \
libcpc \
libctf \
libdevid \
libdladm \
libdlpi \
libeti \
libgen \
libipmp \
libipp \
libkstat \
libkvm \
liblaadm \
libmail \
libpam \
libpctx \
libpicl \
libplot \
libpool \
libproc \
librcm \
libscf \
librsm \
libsasl \
libsec \
libslp \
libtecla \
libtnf \
libumem \
libuutil \
libwrap \
libzfs \
lvm \
openssl \
pkcs11 \
fm \
udapl \
print: libldap5
# in certain situations (e.g., exportable source builds,
@if [ -f $@/Makefile ]; then \
FRC: