Makefile revision 3e4f2897f6618210c2ddb7529d87dc4395159768
#
# CDDL HEADER START
#
# The contents of this file are subject to the terms of the
# Common Development and Distribution License (the "License").
# You may not use this file except in compliance with the License.
#
# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
# See the License for the specific language governing permissions
# and limitations under the License.
#
# When distributing Covered Code, include this CDDL HEADER in each
# file and include the License file at usr/src/OPENSOLARIS.LICENSE.
# If applicable, add the following below this CDDL HEADER, with the
# fields enclosed by brackets "[]" replaced with your own identifying
# information: Portions Copyright [yyyy] [name of copyright owner]
#
# CDDL HEADER END
#
#
# Copyright 2007 Sun Microsystems, Inc. All rights reserved.
# Use is subject to license terms.
#
# ident "%Z%%M% %I% %E% SMI"
#
# Note that libcurses installs commands along with its library.
# This is a minor bug which probably should be fixed.
# Note also that a few extra libraries are kept in cmd source.
#
# Certain libraries are linked with, hence depend on, other libraries.
#
# Although we have historically used .WAIT to express dependencies, it
# reduces the amount of parallelism and thus lengthens the time it
# takes to build the libraries. Thus, we now require that any new
# libraries explicitly call out their dependencies. Eventually, all
# the library dependencies will be called out explicitly. See
# "Library interdependencies" near the end of this file.
#
# Aside from explicit dependencies (and legacy .WAITs), all libraries
# are built in parallel.
#
.PARALLEL:
#
# The $(CLOSED_BUILD) additions to SUBDIRS & MSGSUBDIRS are unfortunate,
# but required due to the "dependencies" of using .WAIT to barrier the
# parallel dmake builds. once 4631488 has been fixed, they can be
# consolidated into one $(CLOSED_BUILD)SUBDIRS += (all closed libs) as
# shown in HDRSUBDIRS
#
SUBDIRS= \
$(CLOSED_BUILD)SUBDIRS += \
SUBDIRS += \
libmd \
libmd5 \
librsm \
libnsl \
libsctp \
libsip \
libresolv2 .WAIT \
libaio \
librt \
libadm \
libctf \
libgen \
libgss \
libpam \
libuuid \
libpthread .WAIT \
libslp \
libcmd \
libdoor \
libdladm \
libdlpi \
libeti \
libcrypt \
libefi \
libfstyp \
libipmp \
libkmf \
libkstat \
libkvm \
liblaadm \
liblm \
libnls \
libtecla \
libumem \
libplot \
libldap4 \
libsasl \
libldap5 \
libbsm \
libsys \
libnisdb \
libpool \
libproc \
$(CLOSED_BUILD)SUBDIRS += \
SUBDIRS += \
abi \
libdevid \
libc_db \
libsec \
libtnf \
$(CLOSED_BUILD)SUBDIRS += \
SUBDIRS += \
nsswitch \
print \
libuutil \
libscf \
$(CLOSED_BUILD)SUBDIRS += \
SUBDIRS += \
libcpc \
madv \
mpss \
libwladm \
libwrap \
libxnet \
libtsnet \
libtsol \
libraidcfg .WAIT \
libpicltree .WAIT \
libmail \
lvm \
libipp \
openssl \
liblgrp \
libfsmgt \
fm \
libavl \
udapl \
libzpool \
libzfs \
libmapid \
brand \
hal \
libshare \
sparc_SUBDIRS= .WAIT \
efcode \
libdscp \
libprtdiag .WAIT \
libpri \
librsc \
libfruutils .WAIT \
libfru \
storage \
wrsm \
#
# Create a special version of $(SUBDIRS) with no .WAIT's, for use with the
# clean and clobber targets (for more information, see those targets, below).
#
NOWAIT_SUBDIRS= $(SUBDIRS:.WAIT=)
DCSUBDIRS = \
MSGSUBDIRS= \
abi \
brand \
krb5 \
libbsm \
libc \
libdladm \
libgss \
libipmp \
libnsl \
libpam \
libpicl \
libpool \
libscf \
libsasl \
libldap5 \
libsecdb \
libshare \
libsldap \
libslp \
libtsol \
libuutil \
libwladm \
libzfs \
lvm \
madv \
mpss \
$(CLOSED_BUILD)MSGSUBDIRS += \
MSGSUBDIRS += \
HDRSUBDIRS= \
libbrand \
libbsm \
libc \
libcpc \
libctf \
libdevid \
libdladm \
libdlpi \
libeti \
libfstyp \
libgen \
libipmp \
libipp \
libkstat \
libkvm \
liblaadm \
libmail \
libmd \
libnsl \
libpam \
libpctx \
libpicl \
libplot \
libpool \
libproc \
librcm \
libscf \
libsip \
librsm \
libsasl \
libsec \
libslp \
libtecla \
libtnf \
libtsnet \
libtsol \
libumem \
libuutil \
libwladm \
libwrap \
libzfs \
hal \
lvm \
openssl \
pkcs11 \
fm \
udapl \
libmapid \
libkrb5 \
libshare \
$(CLOSED_BUILD)HDRSUBDIRS += \
libdscp \
libpri \
#
# 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
@pwd
# dependencies for pam_modules (see below)
#
# Library interdependencies are called out explicitly here
#
print: libldap5
#
# 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,
# OpenSolaris).
#
@if [ -f $@/Makefile ]; then \
else \
true; \
fi
else \
true; \
fi
FRC: