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