Makefile revision 38603a2034ae521f26661b0a6239028a83026614
0e1dece22e128f9dfa723316a35c4b3f06912381Tinderbox User# CDDL HEADER START
60e5e10f8d2e2b0c41e8abad38cacd867caa6ab2Rob Austein# The contents of this file are subject to the terms of the
4a14ce5ba00ab7bc55c99ffdcf59c7a4ab902721Automatic Updater# Common Development and Distribution License (the "License").
c40265eba0c99708887d68e67901924065ba2514Brian Wellington# You may not use this file except in compliance with the License.
60e5e10f8d2e2b0c41e8abad38cacd867caa6ab2Rob Austein# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
af5073d03288a53b646ec3b807ac25ced64d7879Mark Andrews# See the License for the specific language governing permissions
60e5e10f8d2e2b0c41e8abad38cacd867caa6ab2Rob Austein# and limitations under the License.
af5073d03288a53b646ec3b807ac25ced64d7879Mark Andrews# When distributing Covered Code, include this CDDL HEADER in each
af5073d03288a53b646ec3b807ac25ced64d7879Mark Andrews# file and include the License file at usr/src/OPENSOLARIS.LICENSE.
af5073d03288a53b646ec3b807ac25ced64d7879Mark Andrews# If applicable, add the following below this CDDL HEADER, with the
c40265eba0c99708887d68e67901924065ba2514Brian Wellington# fields enclosed by brackets "[]" replaced with your own identifying
ea94d370123a5892f6c47a97f21d1b28d44bb168Tinderbox User# information: Portions Copyright [yyyy] [name of copyright owner]
60e5e10f8d2e2b0c41e8abad38cacd867caa6ab2Rob Austein# CDDL HEADER END
e21a2904f02a03fa06b6db04d348f65fe9c67b2bMark Andrews# Copyright 2009 Sun Microsystems, Inc. All rights reserved.
60e5e10f8d2e2b0c41e8abad38cacd867caa6ab2Rob Austein# Use is subject to license terms.
60e5e10f8d2e2b0c41e8abad38cacd867caa6ab2Rob Austein# Note that libcurses installs commands along with its library.
60e5e10f8d2e2b0c41e8abad38cacd867caa6ab2Rob Austein# This is a minor bug which probably should be fixed.
60e5e10f8d2e2b0c41e8abad38cacd867caa6ab2Rob Austein# Note also that a few extra libraries are kept in cmd source.
0e1dece22e128f9dfa723316a35c4b3f06912381Tinderbox User# Certain libraries are linked with, hence depend on, other libraries.
60e5e10f8d2e2b0c41e8abad38cacd867caa6ab2Rob Austein# Although we have historically used .WAIT to express dependencies, it
5fa6a064b8301e4f274bd132fd577def59e4fb4cTinderbox User# reduces the amount of parallelism and thus lengthens the time it
60e5e10f8d2e2b0c41e8abad38cacd867caa6ab2Rob Austein# takes to build the libraries. Thus, we now require that any new
60e5e10f8d2e2b0c41e8abad38cacd867caa6ab2Rob Austein# libraries explicitly call out their dependencies. Eventually, all
60e5e10f8d2e2b0c41e8abad38cacd867caa6ab2Rob Austein# the library dependencies will be called out explicitly. See
60e5e10f8d2e2b0c41e8abad38cacd867caa6ab2Rob Austein# "Library interdependencies" near the end of this file.
60e5e10f8d2e2b0c41e8abad38cacd867caa6ab2Rob Austein# Aside from explicit dependencies (and legacy .WAITs), all libraries
7208386cd37a2092c70eddf80cf29519b16c4c80Mark Andrews# are built in parallel.
7208386cd37a2092c70eddf80cf29519b16c4c80Mark Andrews# The $(CLOSED_BUILD) additions to SUBDIRS & MSGSUBDIRS are unfortunate,
7208386cd37a2092c70eddf80cf29519b16c4c80Mark Andrews# but required due to the "dependencies" of using .WAIT to barrier the
f6da30bb5447c23d880b09f601441e70c5313557Mark Andrews# parallel dmake builds. once 4631488 has been fixed, they can be
7208386cd37a2092c70eddf80cf29519b16c4c80Mark Andrews# consolidated into one $(CLOSED_BUILD)SUBDIRS += (all closed libs) as
7208386cd37a2092c70eddf80cf29519b16c4c80Mark Andrews# shown in HDRSUBDIRS
60e5e10f8d2e2b0c41e8abad38cacd867caa6ab2Rob Austein# Create a special version of $(SUBDIRS) with no .WAIT's, for use with the
60e5e10f8d2e2b0c41e8abad38cacd867caa6ab2Rob Austein# clean and clobber targets (for more information, see those targets, below).
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 \
librstp \
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 \
smhba \
libima \
mpapi \
mms \
libds \
libdscp \
libpri \
print: libldap5
# in certain situations (e.g., exportable source builds,
@if [ -f $@/Makefile ]; then \
FRC: