Makefile revision 22fb2eeb50dd2ffd3aefea05536263203fae0600
e9458b1a7a19a63aa4c179f9ab20f4d50681c168Jens Elkner# CDDL HEADER START
306763c67bb99228487345b32ab8c5c6cd41f23cChristian Maeder# The contents of this file are subject to the terms of the
98890889ffb2e8f6f722b00e265a211f13b5a861Corneliu-Claudiu Prodescu# Common Development and Distribution License (the "License").
b7cdce4a1a87dad63b65b75b54619ba7d6ae407aChristian Maeder# You may not use this file except in compliance with the License.
306763c67bb99228487345b32ab8c5c6cd41f23cChristian Maeder# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
306763c67bb99228487345b32ab8c5c6cd41f23cChristian Maeder# or http://www.opensolaris.org/os/licensing.
306763c67bb99228487345b32ab8c5c6cd41f23cChristian Maeder# See the License for the specific language governing permissions
819ef30d291cb3d17790271f901b0ca03f2b783fChristian Maeder# and limitations under the License.
306763c67bb99228487345b32ab8c5c6cd41f23cChristian Maeder# When distributing Covered Code, include this CDDL HEADER in each
306763c67bb99228487345b32ab8c5c6cd41f23cChristian Maeder# file and include the License file at usr/src/OPENSOLARIS.LICENSE.
b7cdce4a1a87dad63b65b75b54619ba7d6ae407aChristian Maeder# If applicable, add the following below this CDDL HEADER, with the
6b4943e54de8933d51cfd4f23b82cd5953b8bfd0Christian Maeder# fields enclosed by brackets "[]" replaced with your own identifying
b7cdce4a1a87dad63b65b75b54619ba7d6ae407aChristian Maeder# information: Portions Copyright [yyyy] [name of copyright owner]
b7cdce4a1a87dad63b65b75b54619ba7d6ae407aChristian Maeder# CDDL HEADER END
b7cdce4a1a87dad63b65b75b54619ba7d6ae407aChristian Maeder# Copyright 2009 Sun Microsystems, Inc. All rights reserved.
b7cdce4a1a87dad63b65b75b54619ba7d6ae407aChristian Maeder# Use is subject to license terms.
2eb84fc82d3ffa9116bc471fda3742bd9e5a24bbChristian Maeder# Note that libcurses installs commands along with its library.
2eb84fc82d3ffa9116bc471fda3742bd9e5a24bbChristian Maeder# This is a minor bug which probably should be fixed.
2eb84fc82d3ffa9116bc471fda3742bd9e5a24bbChristian Maeder# Note also that a few extra libraries are kept in cmd source.
2eb84fc82d3ffa9116bc471fda3742bd9e5a24bbChristian Maeder# Certain libraries are linked with, hence depend on, other libraries.
4ac9fad8454f66963e8985a41e061653147d4d60Christian Maeder# Although we have historically used .WAIT to express dependencies, it
4513e0c74371177e06e8360b4c4eea55293fbb9cChristian Maeder# reduces the amount of parallelism and thus lengthens the time it
6b4943e54de8933d51cfd4f23b82cd5953b8bfd0Christian Maeder# takes to build the libraries. Thus, we now require that any new
414ffa281d82f05a2d742c702f8e06b0cb05b229Christian Maeder# libraries explicitly call out their dependencies. Eventually, all
819ef30d291cb3d17790271f901b0ca03f2b783fChristian Maeder# the library dependencies will be called out explicitly. See
891964ed616e02baab4edd0ae7699016ffc06f27Christian Maeder# "Library interdependencies" near the end of this file.
891964ed616e02baab4edd0ae7699016ffc06f27Christian Maeder# Aside from explicit dependencies (and legacy .WAITs), all libraries
4ac9fad8454f66963e8985a41e061653147d4d60Christian Maeder# are built in parallel.
51b1633dc0785a542da974fae21fa7d6622c934eChristian Maeder# The $(CLOSED_BUILD) additions to SUBDIRS & MSGSUBDIRS are unfortunate,
51b1633dc0785a542da974fae21fa7d6622c934eChristian Maeder# but required due to the "dependencies" of using .WAIT to barrier the
51b1633dc0785a542da974fae21fa7d6622c934eChristian Maeder# parallel dmake builds. once 4631488 has been fixed, they can be
51b1633dc0785a542da974fae21fa7d6622c934eChristian Maeder# consolidated into one $(CLOSED_BUILD)SUBDIRS += (all closed libs) as
42c01284bba8d7c8d995c8dfb96ace57d28ed1bcTill Mossakowski# shown in HDRSUBDIRS
libnls \
libnwam \
libtecla \
libumem \
libplot \
libldap4 \
libsasl \
libldap5 \
libbsm \
libsys \
libnisdb \
libpool \
libpp \
libproc \
hbaapi \
sun_fc \
libsmbfs \
libfcoe \
libstmf \
libnsctl \
libdscfg \
librdc \
SUBDIRS += \
abi \
libdevid \
libc_db \
libndmp \
libsec \
libtnf \
SUBDIRS += \
nsswitch \
libuutil \
libscf \
libsched \
libcpc \
madv \
mpss \
libwrap \
libxnet \
libtsnet \
libtsol \
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 \
efcode \
libds \
libdscp \
libpri \
librsc \
libfru \
storage \
libpcp \
fm: \
libipmi \
libzfs \
scsi \
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 \
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 \
libds \
libdscp \
libpri \
print: libldap5
# in certain situations (e.g., exportable source builds,
@if [ -f $@/Makefile ]; then \
FRC: