Makefile revision 1505984fb9b71ec01490b272e8f012433efb0c1a
#
# 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 2009 Sun Microsystems, Inc. All rights reserved.
# Use is subject to license terms.
#
#
# 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 \
libast \
libdll \
libcmd \
libshell \
libsum \
librt \
libadm \
libctf \
libgen \
libgss \
libpam \
libuuid \
libpthread .WAIT \
libslp \
libdoor \
libdladm \
libdlpi \
libeti \
libcrypt \
libefi \
libfstyp \
libipmp \
libkmf \
libkstat \
libkvm \
liblm \
libnls \
libnwam \
libtecla \
libumem \
libplot \
libldap4 \
libsasl \
libldap5 \
libbsm \
libsys \
libnisdb \
libpool \
libpp \
libproc \
hbaapi \
sun_fc \
libsmbfs \
libfcoe \
libstmf \
libnsctl \
libdscfg \
librdc \
$(CLOSED_BUILD)SUBDIRS += \
SUBDIRS += \
abi \
libdevid \
libc_db \
libndmp \
libsec \
libtnf \
$(CLOSED_BUILD)SUBDIRS += \
SUBDIRS += \
nsswitch \
print \
libuutil \
libscf \
libsched \
libcpc \
madv \
mpss \
libwrap \
libxnet \
libtsnet \
libtsol \
libraidcfg .WAIT \
libpicltree .WAIT \
libmail \
lvm \
libipp \
liblgrp \
libfsmgt \
fm \
libavl \
udapl \
libzpool \
libzfs \
pyzfs \
libmapid \
brand \
hal \
libshare \
libidmap \
libipmi \
libvscan \
smbsrv \
scsi \
mms \
libima \
mpapi \
i386_SUBDIRS= \
libntfs \
sparc_SUBDIRS= .WAIT \
efcode \
libds \
libdscp \
libprtdiag .WAIT \
libpri \
librsc \
libfruutils .WAIT \
libfru \
storage \
libpcp \
fm: \
libipmi \
libzfs \
scsi \
#
# 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 \
libast \
libbsm \
libc \
libcmd \
libdladm \
libdll \
libgss \
libidmap \
libipmp \
libnsl \
libpam \
libpicl \
libpool \
libpkg \
libpp \
libscf \
libsasl \
libldap5 \
libsecdb \
libshare \
libshell \
libsldap \
libslp \
libsmbfs \
libsum \
libtsol \
libuutil \
libvscan \
libzfs \
lvm \
madv \
mms \
mpss \
pyzfs \
$(CLOSED_BUILD)MSGSUBDIRS += \
MSGSUBDIRS += \
HDRSUBDIRS= \
libast \
libbrand \
libbsm \
libc \
libcmd \
libcpc \
libctf \
libdevid \
libdladm \
libdll \
libdlpi \
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 \
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 \
libima \
mpapi \
mms \
$(CLOSED_BUILD)HDRSUBDIRS += \
libds \
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: