#
# 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 (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>
# Copyright (c) 2015 Gary Mills
# Copyright 2015 Nexenta Systems, Inc. All rights reserved.
# Copyright 2016 Toomas Soome <tsoome@me.com>
#
# 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.
# Library dependencies are called out explicitly, see "Library
# interdependencies" below.
.PARALLEL:
# Build libc and its dependencies
SUBDIRS= \
common \
libc \
.WAIT
# Build libraries with lots of dependents
SUBDIRS += \
libm \
libmd \
libmp \
libnsl \
.WAIT
# Build everything else. Aside from explicit dependencies, all libraries
# are built in parallel.
SUBDIRS += \
abi \
brand \
fm \
hal \
hbaapi \
krb5 \
libadm \
libads \
libaio \
libast \
libavl \
libbe \
libbrand \
libbsm \
libc_db \
libcmd \
libcpc \
libcrypt \
libctf \
libdevid \
libdladm \
libdll \
libdlpi \
libdoor \
libdscfg \
libefi \
libeti \
libfcoe \
libficl \
libfru \
libfsmgt \
libfstyp \
libgen \
libgss \
libidmap \
libilb \
libima \
libintl \
libipadm \
libipd \
libipmi \
libipmp \
libipp \
libkmf \
libkrb5 \
libkstat \
libkvm \
libldap5 \
liblgrp \
liblm \
libm1 \
libmail \
libmapid \
libmd5 \
libmvec \
libndmp \
libnisdb \
libnls \
libnsctl \
libnwam \
libpam \
libpcidb \
libpctx \
libpicl \
libpkg \
libpool \
libpp \
libproc \
librcm \
librdc \
librsm \
librstp \
librt \
libsasl \
libscf \
libsched \
libsctp \
libsec \
libsecdb \
libshare \
libshell \
libsip \
libsldap \
libslp \
libsmbfs \
libsrpt \
libstmf \
libsum \
libsys \
libtecla \
libtnf \
libtsnet \
libtsol \
libumem \
libuuid \
libuutil \
libvscan \
libw \
libwrap \
libxnet \
libzfs \
libzpool \
lvm \
madv \
mpapi \
mpss \
nsswitch \
pkcs11 \
print \
pylibbe \
pyzfs \
scsi \
smbsrv \
smhba \
sun_fc \
sun_sas \
udapl \
i386_SUBDIRS= \
libfdisk \
efcode \
libds \
libdscp \
libpri \
librsc \
storage \
libpcp \
#
# 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).
#
DCSUBDIRS = \
MSGSUBDIRS= \
abi \
brand \
krb5 \
libast \
libbsm \
libc \
libcmd \
libdladm \
libdll \
libgss \
libidmap \
libilb \
libipadm \
libipmp \
libldap5 \
libnsl \
libnwam \
libpam \
libpicl \
libpkg \
libpool \
libpp \
libsasl \
libscf \
libsecdb \
libshare \
libshell \
libsldap \
libslp \
libsmbfs \
libsum \
libtsol \
libuutil \
libvscan \
libzfs \
lvm \
madv \
mpss \
pyzfs \
HDRSUBDIRS= \
fm \
hal \
hbaapi \
libads \
libast \
libbrand \
libbsm \
libc \
libcmd \
libcpc \
libctf \
libdevid \
libdladm \
libdll \
libdlpi \
libdscfg \
libeti \
libfcoe \
libfru \
libfstyp \
libgen \
libidmap \
libilb \
libima \
libipadm \
libipd \
libipmi \
libipmp \
libipp \
libkrb5 \
libkstat \
libkvm \
libmail \
libmapid \
libmd \
libndmp \
libnsctl \
libnsl \
libnwam \
libpam \
libpcidb \
libpctx \
libpicl \
libpool \
libpp \
libproc \
librcm \
librdc \
librsm \
librstp \
libsasl \
libscf \
libsec \
libshare \
libshell \
libsip \
libslp \
libsmbfs \
libsrpt \
libstmf \
libsum \
libtecla \
libtnf \
libtsnet \
libtsol \
libumem \
libuutil \
libvscan \
libwrap \
libzfs \
lvm \
mpapi \
pkcs11 \
scsi \
smbsrv \
smhba \
udapl \
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.
# The following dependencies don't need to be listed below as they are built
# before everything else:
# libc libm libmd libmp libnsl libnvpair libsocket
#
# 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: