Makefile revision 7c478bd95313f5f23a4c958a745db2134aa03244
#
# CDDL HEADER START
#
# The contents of this file are subject to the terms of the
# Common Development and Distribution License, Version 1.0 only
# (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 2005 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:
SUBDIRS= \
libmapmalloc .WAIT \
libmd5 \
librsm \
libcmd \
libnsl \
libsctp \
libresolv2 .WAIT \
libaio \
librt \
libadm \
libctf \
libgen \
libgss \
libpam \
libuuid \
libpthread .WAIT \
libslp \
libdoor \
libdladm \
libdlpi \
libeti \
libcrypt \
libefi \
libipmp \
libkstat \
libkvm \
liblaadm \
liblm \
libnls \
libtecla \
libumem \
libplot \
libldap4 \
libsasl \
libldap5 \
libbsm \
libsys \
libnisdb \
libpool \
libproc \
librac \
libdevid \
libc_db \
libsec \
libtnf \
libike \
nsswitch \
print \
libuutil \
libscf \
libsched \
libcpc \
madv \
mpss \
libwrap \
libxnet \
libpicltree .WAIT \
libmail \
lvm \
libipp \
openssl \
liblgrp \
libfsmgt \
fm \
libavl \
udapl \
sparc_SUBDIRS= .WAIT \
efcode \
libmd5_psr .WAIT \
libprtdiag .WAIT \
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 \
krb5 \
libbsm \
libc \
libgss \
libipmp \
libnsl \
libpam \
libpicl \
libpool \
libscf \
libsasl \
libldap5 \
libsecdb \
libsldap \
libslp \
libuutil \
lvm \
madv \
mpss \
HDRSUBDIRS= libaio \
libbsm \
libc \
libcpc \
libctf \
libdevid \
libdladm \
libdlpi \
libeti \
libgen \
libike \
libipmp \
libipp \
libkstat \
libkvm \
liblaadm \
libmail \
libpam \
libpctx \
libpicl \
libplot \
libpool \
libproc \
librcm \
libscf \
librsm \
libsasl \
libslp \
libtecla \
libtnf \
libumem \
libuutil \
libwrap \
lvm \
openssl \
pkcs11 \
fm \
udapl \
#
# 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
#
# 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 our exportable source builds.
#
@if [ -f $@/Makefile ]; then \
else \
true; \
fi
else \
true; \
fi
FRC: