Makefile revision b819cea2f73f98c5662230cc9affc8cc84f77fcf
#
# CDDL HEADER START
#
# The contents of this file are subject to the terms of the
# Common Development and Distribution License (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 2011 Nexenta Systems, Inc. All rights reserved.
# Copyright (c) 2012 by Delphix. All rights reserved.
# Copyright (c) 2012, Joyent, Inc. All rights reserved.
# Copyright (c) 2013 Gary Mills
# Copyright 2014 Garrett D'Amore <garrett@damore.org>
# 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= \
SUBDIRS += \
libmd \
libmd5 \
librsm \
libnsl \
libsctp \
libsip \
libresolv2 .WAIT \
libaio \
libast \
libdll \
libcmd \
libshell \
libsum \
librt \
libadm \
libctf \
libgen \
libgss \
libpam \
libuuid \
libpthread .WAIT \
libslp \
libdoor \
libdladm \
libdlpi \
libeti \
libcrypt \
libefi \
libfstyp \
libipadm \
libipd \
libipmp \
libkmf \
libkstat \
libkvm \
liblm \
libnls \
libnwam \
libtecla \
libumem \
libsasl \
libldap5 \
libbsm \
libsys \
libnisdb \
libpool \
libpp \
libproc \
hbaapi \
smhba \
sun_fc \
sun_sas \
libsmbfs \
libfcoe \
libsrpt \
libstmf \
libnsctl \
libdscfg \
librdc \
libpkg \
libpcidb \
libm1 \
libm \
SUBDIRS += \
abi \
libdevid \
libc_db \
libndmp \
libsec \
libtnf \
libxnet \
nsswitch \
print \
libuutil \
libscf \
libsched \
libcpc \
madv \
mpss \
libwrap \
libtsnet \
libtsol \
libraidcfg .WAIT \
libpicltree .WAIT \
libmail \
lvm \
libipp \
liblgrp \
libfsmgt \
fm \
libavl \
udapl \
libzpool \
libzfs \
libbe \
pylibbe \
pyzfs \
libmapid \
brand \
hal \
libshare \
libidmap \
libipmi \
libvscan \
smbsrv \
libilb \
scsi \
libima \
mpapi \
librstp \
libfruutils .WAIT \
libfru \
i386_SUBDIRS= \
libfdisk \
sparc_SUBDIRS= .WAIT \
efcode \
libds \
libdscp \
libprtdiag .WAIT \
libpri \
librsc \
storage \
libpcp \
fm: \
libipmi \
libzfs \
scsi \
#
# 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 \
brand \
krb5 \
libast \
libbsm \
libc \
libcmd \
libdladm \
libdll \
libgss \
libidmap \
libipmp \
libilb \
libipadm \
libnsl \
libnwam \
libpam \
libpicl \
libpool \
libpkg \
libpp \
libscf \
libsasl \
libldap5 \
libsecdb \
libshare \
libshell \
libsldap \
libslp \
libsmbfs \
libsum \
libtsol \
libuutil \
libvscan \
libzfs \
lvm \
madv \
mpss \
pyzfs \
MSGSUBDIRS += \
HDRSUBDIRS= \
libast \
libbrand \
libbsm \
libc \
libcmd \
libcpc \
libctf \
libdevid \
libdladm \
libdll \
libdlpi \
libdscfg \
libeti \
libfru \
libfstyp \
libgen \
libipadm \
libipd \
libipmi \
libipmp \
libipp \
libkstat \
libkvm \
libmail \
libmd \
libndmp \
libnsctl \
libnsl \
libnwam \
libpam \
libpcidb \
libpctx \
libpicl \
libpool \
libpp \
libproc \
librcm \
librdc \
libscf \
libsip \
librsm \
librstp \
libsasl \
libsec \
libshell \
libslp \
libfcoe \
libsrpt \
libstmf \
libsum \
libtecla \
libtnf \
libtsnet \
libtsol \
libumem \
libuutil \
libwrap \
libzfs \
hal \
lvm \
pkcs11 \
fm \
udapl \
libmapid \
libkrb5 \
libsmbfs \
libshare \
libidmap \
libvscan \
smbsrv \
libilb \
scsi \
hbaapi \
smhba \
libima \
mpapi \
libfdisk \
libds \
libdscp \
libpri \
libv12n \
#
# 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 certain situations (e.g., exportable source builds,
# OpenSolaris).
#
@if [ -f $@/Makefile ]; then \
else \
true; \
fi
else \
true; \
fi
FRC: