Makefile revision a6d42e7d71324c5193c3b94d57d96ba2925d52e1
c10c16dec587a0662068f6e2991c29ed3a9db943Richard Lowe# CDDL HEADER START
c10c16dec587a0662068f6e2991c29ed3a9db943Richard Lowe# The contents of this file are subject to the terms of the
c10c16dec587a0662068f6e2991c29ed3a9db943Richard Lowe# Common Development and Distribution License (the "License").
c10c16dec587a0662068f6e2991c29ed3a9db943Richard Lowe# You may not use this file except in compliance with the License.
c10c16dec587a0662068f6e2991c29ed3a9db943Richard Lowe# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
c10c16dec587a0662068f6e2991c29ed3a9db943Richard Lowe# See the License for the specific language governing permissions
c10c16dec587a0662068f6e2991c29ed3a9db943Richard Lowe# and limitations under the License.
c10c16dec587a0662068f6e2991c29ed3a9db943Richard Lowe# When distributing Covered Code, include this CDDL HEADER in each
c10c16dec587a0662068f6e2991c29ed3a9db943Richard Lowe# file and include the License file at usr/src/OPENSOLARIS.LICENSE.
c10c16dec587a0662068f6e2991c29ed3a9db943Richard Lowe# If applicable, add the following below this CDDL HEADER, with the
c10c16dec587a0662068f6e2991c29ed3a9db943Richard Lowe# fields enclosed by brackets "[]" replaced with your own identifying
c10c16dec587a0662068f6e2991c29ed3a9db943Richard Lowe# information: Portions Copyright [yyyy] [name of copyright owner]
c10c16dec587a0662068f6e2991c29ed3a9db943Richard Lowe# CDDL HEADER END
c10c16dec587a0662068f6e2991c29ed3a9db943Richard Lowe# Copyright 2008 Sun Microsystems, Inc. All rights reserved.
c10c16dec587a0662068f6e2991c29ed3a9db943Richard Lowe# Use is subject to license terms.
c10c16dec587a0662068f6e2991c29ed3a9db943Richard Lowe# Note that libcurses installs commands along with its library.
c10c16dec587a0662068f6e2991c29ed3a9db943Richard Lowe# This is a minor bug which probably should be fixed.
c10c16dec587a0662068f6e2991c29ed3a9db943Richard Lowe# Note also that a few extra libraries are kept in cmd source.
c10c16dec587a0662068f6e2991c29ed3a9db943Richard Lowe# Certain libraries are linked with, hence depend on, other libraries.
c10c16dec587a0662068f6e2991c29ed3a9db943Richard Lowe# Although we have historically used .WAIT to express dependencies, it
c10c16dec587a0662068f6e2991c29ed3a9db943Richard Lowe# reduces the amount of parallelism and thus lengthens the time it
c10c16dec587a0662068f6e2991c29ed3a9db943Richard Lowe# takes to build the libraries. Thus, we now require that any new
c10c16dec587a0662068f6e2991c29ed3a9db943Richard Lowe# libraries explicitly call out their dependencies. Eventually, all
c10c16dec587a0662068f6e2991c29ed3a9db943Richard Lowe# the library dependencies will be called out explicitly. See
c10c16dec587a0662068f6e2991c29ed3a9db943Richard Lowe# "Library interdependencies" near the end of this file.
c10c16dec587a0662068f6e2991c29ed3a9db943Richard Lowe# Aside from explicit dependencies (and legacy .WAITs), all libraries
c10c16dec587a0662068f6e2991c29ed3a9db943Richard Lowe# are built in parallel.
c10c16dec587a0662068f6e2991c29ed3a9db943Richard Lowe# The $(CLOSED_BUILD) additions to SUBDIRS & MSGSUBDIRS are unfortunate,
c10c16dec587a0662068f6e2991c29ed3a9db943Richard Lowe# but required due to the "dependencies" of using .WAIT to barrier the
c10c16dec587a0662068f6e2991c29ed3a9db943Richard Lowe# parallel dmake builds. once 4631488 has been fixed, they can be
c10c16dec587a0662068f6e2991c29ed3a9db943Richard Lowe# consolidated into one $(CLOSED_BUILD)SUBDIRS += (all closed libs) as
c10c16dec587a0662068f6e2991c29ed3a9db943Richard Lowe# shown in HDRSUBDIRS
libkvm \
liblm \
libnls \
libnwam \
libtecla \
libumem \
libplot \
libldap4 \
libsasl \
libldap5 \
libbsm \
libsys \
libnisdb \
libpool \
libpp \
libproc \
hbaapi \
sun_fc \
libsmbfs \
libstmf \
libnsctl \
libdscfg \
SUBDIRS += \
abi \
libdevid \
libc_db \
libndmp \
libsec \
libtnf \
SUBDIRS += \
nsswitch \
libuutil \
libscf \
libsched \
libcpc \
madv \
mpss \
libwrap \
libxnet \
libtsnet \
libtsol \
libmail \
lvm \
libipp \
openssl \
liblgrp \
libfsmgt \
fm \
libavl \
udapl \
libzpool \
libzfs \
libmapid \
brand \
hal \
libshare \
libidmap \
libipmi \
libvscan \
smbsrv \
scsi \
mms \
libima \
mpapi \
efcode \
libds \
libdscp \
libpri \
librsc \
libfru \
storage \
libpcp \
fm: \
libipmi \
scsi \
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 \
libsmbfs \
libtsol \
libuutil \
libvscan \
libzfs \
lvm \
madv \
mms \
mpss \
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 \
libstmf \
libtecla \
libtnf \
libtsnet \
libtsol \
libumem \
libuutil \
libwrap \
libzfs \
hal \
lvm \
openssl \
pkcs11 \
fm \
udapl \
libmapid \
libkrb5 \
libshare \
libidmap \
libvscan \
smbsrv \
scsi \
hbaapi \
libima \
mpapi \
libds \
libdscp \
libpri \
print: libldap5
# in certain situations (e.g., exportable source builds,
@if [ -f $@/Makefile ]; then \
FRC: