Makefile revision 450396635f70344c58b6b1e4db38cf17ff34445c
f58c87ece2202b8f85310d8885c7e39a7f435c09Jason Lemay#
f58c87ece2202b8f85310d8885c7e39a7f435c09Jason Lemay# CDDL HEADER START
f58c87ece2202b8f85310d8885c7e39a7f435c09Jason Lemay#
f58c87ece2202b8f85310d8885c7e39a7f435c09Jason Lemay# The contents of this file are subject to the terms of the
f58c87ece2202b8f85310d8885c7e39a7f435c09Jason Lemay# Common Development and Distribution License (the "License").
f58c87ece2202b8f85310d8885c7e39a7f435c09Jason Lemay# You may not use this file except in compliance with the License.
f58c87ece2202b8f85310d8885c7e39a7f435c09Jason Lemay#
f58c87ece2202b8f85310d8885c7e39a7f435c09Jason Lemay# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
f58c87ece2202b8f85310d8885c7e39a7f435c09Jason Lemay# or http://www.opensolaris.org/os/licensing.
f58c87ece2202b8f85310d8885c7e39a7f435c09Jason Lemay# See the License for the specific language governing permissions
f58c87ece2202b8f85310d8885c7e39a7f435c09Jason Lemay# and limitations under the License.
f58c87ece2202b8f85310d8885c7e39a7f435c09Jason Lemay#
f58c87ece2202b8f85310d8885c7e39a7f435c09Jason Lemay# When distributing Covered Code, include this CDDL HEADER in each
f58c87ece2202b8f85310d8885c7e39a7f435c09Jason Lemay# file and include the License file at usr/src/OPENSOLARIS.LICENSE.
f58c87ece2202b8f85310d8885c7e39a7f435c09Jason Lemay# If applicable, add the following below this CDDL HEADER, with the
f58c87ece2202b8f85310d8885c7e39a7f435c09Jason Lemay# fields enclosed by brackets "[]" replaced with your own identifying
f58c87ece2202b8f85310d8885c7e39a7f435c09Jason Lemay# information: Portions Copyright [yyyy] [name of copyright owner]
f58c87ece2202b8f85310d8885c7e39a7f435c09Jason Lemay#
f58c87ece2202b8f85310d8885c7e39a7f435c09Jason Lemay# CDDL HEADER END
f58c87ece2202b8f85310d8885c7e39a7f435c09Jason Lemay#
f58c87ece2202b8f85310d8885c7e39a7f435c09Jason Lemay#
f58c87ece2202b8f85310d8885c7e39a7f435c09Jason Lemay# Copyright 2009 Sun Microsystems, Inc. All rights reserved.
f58c87ece2202b8f85310d8885c7e39a7f435c09Jason Lemay# Use is subject to license terms.
f58c87ece2202b8f85310d8885c7e39a7f435c09Jason Lemay#
f58c87ece2202b8f85310d8885c7e39a7f435c09Jason Lemay#
f58c87ece2202b8f85310d8885c7e39a7f435c09Jason Lemay
f58c87ece2202b8f85310d8885c7e39a7f435c09Jason Lemayinclude ../Makefile.master
f58c87ece2202b8f85310d8885c7e39a7f435c09Jason Lemay
f58c87ece2202b8f85310d8885c7e39a7f435c09Jason Lemay# Note that libcurses installs commands along with its library.
f58c87ece2202b8f85310d8885c7e39a7f435c09Jason Lemay# This is a minor bug which probably should be fixed.
f58c87ece2202b8f85310d8885c7e39a7f435c09Jason Lemay# Note also that a few extra libraries are kept in cmd source.
f58c87ece2202b8f85310d8885c7e39a7f435c09Jason Lemay#
f58c87ece2202b8f85310d8885c7e39a7f435c09Jason Lemay# Certain libraries are linked with, hence depend on, other libraries.
f58c87ece2202b8f85310d8885c7e39a7f435c09Jason Lemay#
f58c87ece2202b8f85310d8885c7e39a7f435c09Jason Lemay# Although we have historically used .WAIT to express dependencies, it
f58c87ece2202b8f85310d8885c7e39a7f435c09Jason Lemay# reduces the amount of parallelism and thus lengthens the time it
f58c87ece2202b8f85310d8885c7e39a7f435c09Jason Lemay# takes to build the libraries. Thus, we now require that any new
f58c87ece2202b8f85310d8885c7e39a7f435c09Jason Lemay# libraries explicitly call out their dependencies. Eventually, all
f58c87ece2202b8f85310d8885c7e39a7f435c09Jason Lemay# the library dependencies will be called out explicitly. See
f58c87ece2202b8f85310d8885c7e39a7f435c09Jason Lemay# "Library interdependencies" near the end of this file.
f58c87ece2202b8f85310d8885c7e39a7f435c09Jason Lemay#
f58c87ece2202b8f85310d8885c7e39a7f435c09Jason Lemay# Aside from explicit dependencies (and legacy .WAITs), all libraries
f58c87ece2202b8f85310d8885c7e39a7f435c09Jason Lemay# are built in parallel.
f58c87ece2202b8f85310d8885c7e39a7f435c09Jason Lemay#
f58c87ece2202b8f85310d8885c7e39a7f435c09Jason Lemay.PARALLEL:
f58c87ece2202b8f85310d8885c7e39a7f435c09Jason Lemay
f58c87ece2202b8f85310d8885c7e39a7f435c09Jason Lemay#
f58c87ece2202b8f85310d8885c7e39a7f435c09Jason Lemay# The $(CLOSED_BUILD) additions to SUBDIRS & MSGSUBDIRS are unfortunate,
f58c87ece2202b8f85310d8885c7e39a7f435c09Jason Lemay# but required due to the "dependencies" of using .WAIT to barrier the
f58c87ece2202b8f85310d8885c7e39a7f435c09Jason Lemay# parallel dmake builds. once 4631488 has been fixed, they can be
f58c87ece2202b8f85310d8885c7e39a7f435c09Jason Lemay# consolidated into one $(CLOSED_BUILD)SUBDIRS += (all closed libs) as
f58c87ece2202b8f85310d8885c7e39a7f435c09Jason Lemay# shown in HDRSUBDIRS
f58c87ece2202b8f85310d8885c7e39a7f435c09Jason Lemay#
f58c87ece2202b8f85310d8885c7e39a7f435c09Jason LemaySUBDIRS= \
f58c87ece2202b8f85310d8885c7e39a7f435c09Jason Lemay common .WAIT \
f58c87ece2202b8f85310d8885c7e39a7f435c09Jason Lemay ../cmd/sgs/libconv \
f58c87ece2202b8f85310d8885c7e39a7f435c09Jason Lemay ../cmd/sgs/libdl .WAIT
f58c87ece2202b8f85310d8885c7e39a7f435c09Jason Lemay
f58c87ece2202b8f85310d8885c7e39a7f435c09Jason Lemay$(CLOSED_BUILD)SUBDIRS += \
80849398a45dca1fb917716907d6ec99be6222c2Peter Major $(CLOSED)/lib/libc_i18n
f58c87ece2202b8f85310d8885c7e39a7f435c09Jason Lemay
80849398a45dca1fb917716907d6ec99be6222c2Peter MajorSUBDIRS += \
f58c87ece2202b8f85310d8885c7e39a7f435c09Jason Lemay libc .WAIT \
f58c87ece2202b8f85310d8885c7e39a7f435c09Jason Lemay ../cmd/sgs/libelf .WAIT \
f58c87ece2202b8f85310d8885c7e39a7f435c09Jason Lemay c_synonyms \
f58c87ece2202b8f85310d8885c7e39a7f435c09Jason Lemay libmd \
f58c87ece2202b8f85310d8885c7e39a7f435c09Jason Lemay libmd5 \
f58c87ece2202b8f85310d8885c7e39a7f435c09Jason Lemay librsm \
f58c87ece2202b8f85310d8885c7e39a7f435c09Jason Lemay libmp .WAIT \
f58c87ece2202b8f85310d8885c7e39a7f435c09Jason Lemay libnsl \
f58c87ece2202b8f85310d8885c7e39a7f435c09Jason Lemay libsecdb .WAIT \
f58c87ece2202b8f85310d8885c7e39a7f435c09Jason Lemay librpcsvc \
f58c87ece2202b8f85310d8885c7e39a7f435c09Jason Lemay libsocket .WAIT \
f58c87ece2202b8f85310d8885c7e39a7f435c09Jason Lemay libsctp \
f58c87ece2202b8f85310d8885c7e39a7f435c09Jason Lemay libsip \
f58c87ece2202b8f85310d8885c7e39a7f435c09Jason Lemay libcommputil \
f58c87ece2202b8f85310d8885c7e39a7f435c09Jason Lemay libresolv \
f58c87ece2202b8f85310d8885c7e39a7f435c09Jason Lemay libresolv2 .WAIT \
f58c87ece2202b8f85310d8885c7e39a7f435c09Jason Lemay libw .WAIT \
f58c87ece2202b8f85310d8885c7e39a7f435c09Jason Lemay libintl .WAIT \
f58c87ece2202b8f85310d8885c7e39a7f435c09Jason Lemay ../cmd/sgs/librtld_db \
f58c87ece2202b8f85310d8885c7e39a7f435c09Jason Lemay libaio \
f58c87ece2202b8f85310d8885c7e39a7f435c09Jason Lemay libast \
f58c87ece2202b8f85310d8885c7e39a7f435c09Jason Lemay libdll \
f58c87ece2202b8f85310d8885c7e39a7f435c09Jason Lemay libcmd \
f58c87ece2202b8f85310d8885c7e39a7f435c09Jason Lemay libshell \
f58c87ece2202b8f85310d8885c7e39a7f435c09Jason Lemay libsum \
f58c87ece2202b8f85310d8885c7e39a7f435c09Jason Lemay librt \
f58c87ece2202b8f85310d8885c7e39a7f435c09Jason Lemay libadm \
f58c87ece2202b8f85310d8885c7e39a7f435c09Jason Lemay libctf \
f58c87ece2202b8f85310d8885c7e39a7f435c09Jason Lemay libdtrace \
f58c87ece2202b8f85310d8885c7e39a7f435c09Jason Lemay libdtrace_jni \
f58c87ece2202b8f85310d8885c7e39a7f435c09Jason Lemay libcurses \
f58c87ece2202b8f85310d8885c7e39a7f435c09Jason Lemay libgen \
f58c87ece2202b8f85310d8885c7e39a7f435c09Jason Lemay libgss \
f58c87ece2202b8f85310d8885c7e39a7f435c09Jason Lemay libpam \
f58c87ece2202b8f85310d8885c7e39a7f435c09Jason Lemay libuuid \
f58c87ece2202b8f85310d8885c7e39a7f435c09Jason Lemay libthread \
f58c87ece2202b8f85310d8885c7e39a7f435c09Jason Lemay libpthread .WAIT \
f58c87ece2202b8f85310d8885c7e39a7f435c09Jason Lemay libslp \
f58c87ece2202b8f85310d8885c7e39a7f435c09Jason Lemay libbsdmalloc \
f58c87ece2202b8f85310d8885c7e39a7f435c09Jason Lemay libdoor \
f58c87ece2202b8f85310d8885c7e39a7f435c09Jason Lemay libdevinfo \
f58c87ece2202b8f85310d8885c7e39a7f435c09Jason Lemay libdladm \
f58c87ece2202b8f85310d8885c7e39a7f435c09Jason Lemay libdlpi \
f58c87ece2202b8f85310d8885c7e39a7f435c09Jason Lemay libeti \
f58c87ece2202b8f85310d8885c7e39a7f435c09Jason Lemay libcrypt \
f58c87ece2202b8f85310d8885c7e39a7f435c09Jason Lemay libdns_sd \
f58c87ece2202b8f85310d8885c7e39a7f435c09Jason Lemay libefi \
f58c87ece2202b8f85310d8885c7e39a7f435c09Jason Lemay libfstyp \
f58c87ece2202b8f85310d8885c7e39a7f435c09Jason Lemay libwanboot \
f58c87ece2202b8f85310d8885c7e39a7f435c09Jason Lemay libwanbootutil \
f58c87ece2202b8f85310d8885c7e39a7f435c09Jason Lemay libcryptoutil \
f58c87ece2202b8f85310d8885c7e39a7f435c09Jason Lemay libinetcfg \
f58c87ece2202b8f85310d8885c7e39a7f435c09Jason Lemay libinetutil \
f58c87ece2202b8f85310d8885c7e39a7f435c09Jason Lemay libipmp \
f58c87ece2202b8f85310d8885c7e39a7f435c09Jason Lemay libiscsit \
f58c87ece2202b8f85310d8885c7e39a7f435c09Jason Lemay libiscsitgt \
f58c87ece2202b8f85310d8885c7e39a7f435c09Jason Lemay libkmf \
f58c87ece2202b8f85310d8885c7e39a7f435c09Jason Lemay libkstat \
f58c87ece2202b8f85310d8885c7e39a7f435c09Jason Lemay libkvm \
f58c87ece2202b8f85310d8885c7e39a7f435c09Jason Lemay liblm \
f58c87ece2202b8f85310d8885c7e39a7f435c09Jason Lemay libmalloc \
f58c87ece2202b8f85310d8885c7e39a7f435c09Jason Lemay libmapmalloc \
f58c87ece2202b8f85310d8885c7e39a7f435c09Jason Lemay libmtmalloc \
f58c87ece2202b8f85310d8885c7e39a7f435c09Jason Lemay libnls \
f58c87ece2202b8f85310d8885c7e39a7f435c09Jason Lemay libnwam \
f58c87ece2202b8f85310d8885c7e39a7f435c09Jason Lemay libsmbios \
f58c87ece2202b8f85310d8885c7e39a7f435c09Jason Lemay libtecla \
f58c87ece2202b8f85310d8885c7e39a7f435c09Jason Lemay libumem \
f58c87ece2202b8f85310d8885c7e39a7f435c09Jason Lemay libnvpair .WAIT \
f58c87ece2202b8f85310d8885c7e39a7f435c09Jason Lemay libexacct \
f58c87ece2202b8f85310d8885c7e39a7f435c09Jason Lemay libplot \
f58c87ece2202b8f85310d8885c7e39a7f435c09Jason Lemay libldap4 \
f58c87ece2202b8f85310d8885c7e39a7f435c09Jason Lemay libsasl \
f58c87ece2202b8f85310d8885c7e39a7f435c09Jason Lemay libldap5 \
f58c87ece2202b8f85310d8885c7e39a7f435c09Jason Lemay libsldap .WAIT \
f58c87ece2202b8f85310d8885c7e39a7f435c09Jason Lemay libbsm \
f58c87ece2202b8f85310d8885c7e39a7f435c09Jason Lemay libsys \
f58c87ece2202b8f85310d8885c7e39a7f435c09Jason Lemay libsysevent \
f58c87ece2202b8f85310d8885c7e39a7f435c09Jason Lemay libnisdb \
f58c87ece2202b8f85310d8885c7e39a7f435c09Jason Lemay libpool \
f58c87ece2202b8f85310d8885c7e39a7f435c09Jason Lemay libpp \
f58c87ece2202b8f85310d8885c7e39a7f435c09Jason Lemay libproc \
f58c87ece2202b8f85310d8885c7e39a7f435c09Jason Lemay libproject \
f58c87ece2202b8f85310d8885c7e39a7f435c09Jason Lemay libsendfile \
f58c87ece2202b8f85310d8885c7e39a7f435c09Jason Lemay nametoaddr \
f58c87ece2202b8f85310d8885c7e39a7f435c09Jason Lemay ncad_addr \
f58c87ece2202b8f85310d8885c7e39a7f435c09Jason Lemay hbaapi \
f58c87ece2202b8f85310d8885c7e39a7f435c09Jason Lemay smhba \
f58c87ece2202b8f85310d8885c7e39a7f435c09Jason Lemay sun_fc \
f58c87ece2202b8f85310d8885c7e39a7f435c09Jason Lemay sun_sas \
f58c87ece2202b8f85310d8885c7e39a7f435c09Jason Lemay gss_mechs/mech_krb5 .WAIT \
f58c87ece2202b8f85310d8885c7e39a7f435c09Jason Lemay libkrb5 .WAIT \
f58c87ece2202b8f85310d8885c7e39a7f435c09Jason Lemay krb5 .WAIT \
f58c87ece2202b8f85310d8885c7e39a7f435c09Jason Lemay libsmbfs \
f58c87ece2202b8f85310d8885c7e39a7f435c09Jason Lemay libfcoe \
f58c87ece2202b8f85310d8885c7e39a7f435c09Jason Lemay libstmf \
f58c87ece2202b8f85310d8885c7e39a7f435c09Jason Lemay libstmfproxy \
f58c87ece2202b8f85310d8885c7e39a7f435c09Jason Lemay libnsctl \
f58c87ece2202b8f85310d8885c7e39a7f435c09Jason Lemay libunistat \
f58c87ece2202b8f85310d8885c7e39a7f435c09Jason Lemay libdscfg \
f58c87ece2202b8f85310d8885c7e39a7f435c09Jason Lemay librdc \
f58c87ece2202b8f85310d8885c7e39a7f435c09Jason Lemay libinstzones \
f58c87ece2202b8f85310d8885c7e39a7f435c09Jason Lemay libpkg
f58c87ece2202b8f85310d8885c7e39a7f435c09Jason Lemay
f58c87ece2202b8f85310d8885c7e39a7f435c09Jason LemaySUBDIRS += \
f58c87ece2202b8f85310d8885c7e39a7f435c09Jason Lemay passwdutil \
f58c87ece2202b8f85310d8885c7e39a7f435c09Jason Lemay pam_modules \
f58c87ece2202b8f85310d8885c7e39a7f435c09Jason Lemay crypt_modules \
f58c87ece2202b8f85310d8885c7e39a7f435c09Jason Lemay libadt_jni \
f58c87ece2202b8f85310d8885c7e39a7f435c09Jason Lemay abi \
f58c87ece2202b8f85310d8885c7e39a7f435c09Jason Lemay auditd_plugins \
f58c87ece2202b8f85310d8885c7e39a7f435c09Jason Lemay libvolmgt \
f58c87ece2202b8f85310d8885c7e39a7f435c09Jason Lemay libdevice \
f58c87ece2202b8f85310d8885c7e39a7f435c09Jason Lemay libdevid \
f58c87ece2202b8f85310d8885c7e39a7f435c09Jason Lemay libdhcpsvc \
f58c87ece2202b8f85310d8885c7e39a7f435c09Jason Lemay libc_db \
f58c87ece2202b8f85310d8885c7e39a7f435c09Jason Lemay libndmp \
f58c87ece2202b8f85310d8885c7e39a7f435c09Jason Lemay libsec \
f58c87ece2202b8f85310d8885c7e39a7f435c09Jason Lemay libtnfprobe \
f58c87ece2202b8f85310d8885c7e39a7f435c09Jason Lemay libtnf \
f58c87ece2202b8f85310d8885c7e39a7f435c09Jason Lemay libtnfctl \
f58c87ece2202b8f85310d8885c7e39a7f435c09Jason Lemay libdhcpagent \
f58c87ece2202b8f85310d8885c7e39a7f435c09Jason Lemay libdhcpdu \
f58c87ece2202b8f85310d8885c7e39a7f435c09Jason Lemay libdhcputil \
f58c87ece2202b8f85310d8885c7e39a7f435c09Jason Lemay libipsecutil
f58c87ece2202b8f85310d8885c7e39a7f435c09Jason Lemay$(CLOSED_BUILD)SUBDIRS += \
f58c87ece2202b8f85310d8885c7e39a7f435c09Jason Lemay $(CLOSED)/lib/libike
f58c87ece2202b8f85310d8885c7e39a7f435c09Jason LemaySUBDIRS += \
f58c87ece2202b8f85310d8885c7e39a7f435c09Jason Lemay nsswitch \
f58c87ece2202b8f85310d8885c7e39a7f435c09Jason Lemay print \
f58c87ece2202b8f85310d8885c7e39a7f435c09Jason Lemay libuutil \
f58c87ece2202b8f85310d8885c7e39a7f435c09Jason Lemay libscf \
f58c87ece2202b8f85310d8885c7e39a7f435c09Jason Lemay libinetsvc \
f58c87ece2202b8f85310d8885c7e39a7f435c09Jason Lemay librestart \
f58c87ece2202b8f85310d8885c7e39a7f435c09Jason Lemay libsched \
f58c87ece2202b8f85310d8885c7e39a7f435c09Jason Lemay libelfsign \
f58c87ece2202b8f85310d8885c7e39a7f435c09Jason Lemay pkcs11 .WAIT \
f58c87ece2202b8f85310d8885c7e39a7f435c09Jason Lemay libpctx .WAIT \
f58c87ece2202b8f85310d8885c7e39a7f435c09Jason Lemay libcpc \
f58c87ece2202b8f85310d8885c7e39a7f435c09Jason Lemay watchmalloc \
f58c87ece2202b8f85310d8885c7e39a7f435c09Jason Lemay extendedFILE \
f58c87ece2202b8f85310d8885c7e39a7f435c09Jason Lemay madv \
f58c87ece2202b8f85310d8885c7e39a7f435c09Jason Lemay mpss \
f58c87ece2202b8f85310d8885c7e39a7f435c09Jason Lemay libdisasm \
f58c87ece2202b8f85310d8885c7e39a7f435c09Jason Lemay libwrap \
f58c87ece2202b8f85310d8885c7e39a7f435c09Jason Lemay libxcurses \
f58c87ece2202b8f85310d8885c7e39a7f435c09Jason Lemay libxcurses2 \
f58c87ece2202b8f85310d8885c7e39a7f435c09Jason Lemay libxnet \
f58c87ece2202b8f85310d8885c7e39a7f435c09Jason Lemay libbrand .WAIT \
f58c87ece2202b8f85310d8885c7e39a7f435c09Jason Lemay libzonecfg \
f58c87ece2202b8f85310d8885c7e39a7f435c09Jason Lemay libzoneinfo \
f58c87ece2202b8f85310d8885c7e39a7f435c09Jason Lemay libtsnet \
f58c87ece2202b8f85310d8885c7e39a7f435c09Jason Lemay libtsol \
f58c87ece2202b8f85310d8885c7e39a7f435c09Jason Lemay gss_mechs/mech_spnego \
f58c87ece2202b8f85310d8885c7e39a7f435c09Jason Lemay gss_mechs/mech_dummy \
f58c87ece2202b8f85310d8885c7e39a7f435c09Jason Lemay gss_mechs/mech_dh \
f58c87ece2202b8f85310d8885c7e39a7f435c09Jason Lemay rpcsec_gss \
f58c87ece2202b8f85310d8885c7e39a7f435c09Jason Lemay libraidcfg .WAIT \
f58c87ece2202b8f85310d8885c7e39a7f435c09Jason Lemay librcm .WAIT \
f58c87ece2202b8f85310d8885c7e39a7f435c09Jason Lemay libcfgadm .WAIT \
f58c87ece2202b8f85310d8885c7e39a7f435c09Jason Lemay libpicl .WAIT \
f58c87ece2202b8f85310d8885c7e39a7f435c09Jason Lemay libpicltree .WAIT \
f58c87ece2202b8f85310d8885c7e39a7f435c09Jason Lemay raidcfg_plugins \
f58c87ece2202b8f85310d8885c7e39a7f435c09Jason Lemay cfgadm_plugins \
f58c87ece2202b8f85310d8885c7e39a7f435c09Jason Lemay libmail \
f58c87ece2202b8f85310d8885c7e39a7f435c09Jason Lemay lvm \
f58c87ece2202b8f85310d8885c7e39a7f435c09Jason Lemay libsmedia \
f58c87ece2202b8f85310d8885c7e39a7f435c09Jason Lemay libipp \
f58c87ece2202b8f85310d8885c7e39a7f435c09Jason Lemay libdiskmgt \
f58c87ece2202b8f85310d8885c7e39a7f435c09Jason Lemay liblgrp \
f58c87ece2202b8f85310d8885c7e39a7f435c09Jason Lemay libfsmgt \
f58c87ece2202b8f85310d8885c7e39a7f435c09Jason Lemay fm \
f58c87ece2202b8f85310d8885c7e39a7f435c09Jason Lemay libavl \
f58c87ece2202b8f85310d8885c7e39a7f435c09Jason Lemay libcmdutils \
f58c87ece2202b8f85310d8885c7e39a7f435c09Jason Lemay libcontract \
f58c87ece2202b8f85310d8885c7e39a7f435c09Jason Lemay ../cmd/sendmail/libmilter \
f58c87ece2202b8f85310d8885c7e39a7f435c09Jason Lemay sasl_plugins \
f58c87ece2202b8f85310d8885c7e39a7f435c09Jason Lemay udapl \
f58c87ece2202b8f85310d8885c7e39a7f435c09Jason Lemay libzpool \
f58c87ece2202b8f85310d8885c7e39a7f435c09Jason Lemay libzfs \
f58c87ece2202b8f85310d8885c7e39a7f435c09Jason Lemay libzfs_jni \
f58c87ece2202b8f85310d8885c7e39a7f435c09Jason Lemay pyzfs \
f58c87ece2202b8f85310d8885c7e39a7f435c09Jason Lemay libmapid \
f58c87ece2202b8f85310d8885c7e39a7f435c09Jason Lemay brand \
f58c87ece2202b8f85310d8885c7e39a7f435c09Jason Lemay policykit \
f58c87ece2202b8f85310d8885c7e39a7f435c09Jason Lemay hal \
f58c87ece2202b8f85310d8885c7e39a7f435c09Jason Lemay libshare \
f58c87ece2202b8f85310d8885c7e39a7f435c09Jason Lemay libsqlite \
f58c87ece2202b8f85310d8885c7e39a7f435c09Jason Lemay libidmap \
f58c87ece2202b8f85310d8885c7e39a7f435c09Jason Lemay libadutils \
f58c87ece2202b8f85310d8885c7e39a7f435c09Jason Lemay libipmi \
f58c87ece2202b8f85310d8885c7e39a7f435c09Jason Lemay libexacct/demo \
f58c87ece2202b8f85310d8885c7e39a7f435c09Jason Lemay libvscan \
f58c87ece2202b8f85310d8885c7e39a7f435c09Jason Lemay libgrubmgmt \
f58c87ece2202b8f85310d8885c7e39a7f435c09Jason Lemay smbsrv \
f58c87ece2202b8f85310d8885c7e39a7f435c09Jason Lemay scsi \
f58c87ece2202b8f85310d8885c7e39a7f435c09Jason Lemay mms \
f58c87ece2202b8f85310d8885c7e39a7f435c09Jason Lemay libima \
f58c87ece2202b8f85310d8885c7e39a7f435c09Jason Lemay libsun_ima \
f58c87ece2202b8f85310d8885c7e39a7f435c09Jason Lemay mpapi \
f58c87ece2202b8f85310d8885c7e39a7f435c09Jason Lemay librstp \
f58c87ece2202b8f85310d8885c7e39a7f435c09Jason Lemay $($(MACH)_SUBDIRS)
f58c87ece2202b8f85310d8885c7e39a7f435c09Jason Lemay
f58c87ece2202b8f85310d8885c7e39a7f435c09Jason Lemayi386_SUBDIRS= \
f58c87ece2202b8f85310d8885c7e39a7f435c09Jason Lemay libntfs \
f58c87ece2202b8f85310d8885c7e39a7f435c09Jason Lemay libparted \
f58c87ece2202b8f85310d8885c7e39a7f435c09Jason Lemay libfdisk
f58c87ece2202b8f85310d8885c7e39a7f435c09Jason Lemay
f58c87ece2202b8f85310d8885c7e39a7f435c09Jason Lemaysparc_SUBDIRS= .WAIT \
f58c87ece2202b8f85310d8885c7e39a7f435c09Jason Lemay efcode \
f58c87ece2202b8f85310d8885c7e39a7f435c09Jason Lemay libc_psr .WAIT \
f58c87ece2202b8f85310d8885c7e39a7f435c09Jason Lemay libds \
f58c87ece2202b8f85310d8885c7e39a7f435c09Jason Lemay libdscp \
f58c87ece2202b8f85310d8885c7e39a7f435c09Jason Lemay libprtdiag .WAIT \
f58c87ece2202b8f85310d8885c7e39a7f435c09Jason Lemay libprtdiag_psr \
f58c87ece2202b8f85310d8885c7e39a7f435c09Jason Lemay libpri \
f58c87ece2202b8f85310d8885c7e39a7f435c09Jason Lemay librsc \
f58c87ece2202b8f85310d8885c7e39a7f435c09Jason Lemay libfruutils .WAIT \
f58c87ece2202b8f85310d8885c7e39a7f435c09Jason Lemay libfru \
f58c87ece2202b8f85310d8885c7e39a7f435c09Jason Lemay storage \
f58c87ece2202b8f85310d8885c7e39a7f435c09Jason Lemay libpcp \
f58c87ece2202b8f85310d8885c7e39a7f435c09Jason Lemay libtsalarm
f58c87ece2202b8f85310d8885c7e39a7f435c09Jason Lemay
f58c87ece2202b8f85310d8885c7e39a7f435c09Jason LemayFM_sparc_DEPLIBS= libpri
f58c87ece2202b8f85310d8885c7e39a7f435c09Jason Lemay
f58c87ece2202b8f85310d8885c7e39a7f435c09Jason Lemayfm: \
f58c87ece2202b8f85310d8885c7e39a7f435c09Jason Lemay libexacct \
f58c87ece2202b8f85310d8885c7e39a7f435c09Jason Lemay libipmi \
f58c87ece2202b8f85310d8885c7e39a7f435c09Jason Lemay libzfs \
f58c87ece2202b8f85310d8885c7e39a7f435c09Jason Lemay scsi \
f58c87ece2202b8f85310d8885c7e39a7f435c09Jason Lemay $(FM_$(MACH)_DEPLIBS)
f58c87ece2202b8f85310d8885c7e39a7f435c09Jason Lemay
f58c87ece2202b8f85310d8885c7e39a7f435c09Jason Lemay#
f58c87ece2202b8f85310d8885c7e39a7f435c09Jason Lemay# Create a special version of $(SUBDIRS) with no .WAIT's, for use with the
f58c87ece2202b8f85310d8885c7e39a7f435c09Jason Lemay# clean and clobber targets (for more information, see those targets, below).
f58c87ece2202b8f85310d8885c7e39a7f435c09Jason Lemay#
f58c87ece2202b8f85310d8885c7e39a7f435c09Jason LemayNOWAIT_SUBDIRS= $(SUBDIRS:.WAIT=)
f58c87ece2202b8f85310d8885c7e39a7f435c09Jason Lemay
f58c87ece2202b8f85310d8885c7e39a7f435c09Jason LemayDCSUBDIRS = \
f58c87ece2202b8f85310d8885c7e39a7f435c09Jason Lemay lvm
f58c87ece2202b8f85310d8885c7e39a7f435c09Jason Lemay
f58c87ece2202b8f85310d8885c7e39a7f435c09Jason LemayMSGSUBDIRS= \
f58c87ece2202b8f85310d8885c7e39a7f435c09Jason Lemay abi \
f58c87ece2202b8f85310d8885c7e39a7f435c09Jason Lemay auditd_plugins \
f58c87ece2202b8f85310d8885c7e39a7f435c09Jason Lemay brand \
f58c87ece2202b8f85310d8885c7e39a7f435c09Jason Lemay cfgadm_plugins \
f58c87ece2202b8f85310d8885c7e39a7f435c09Jason Lemay gss_mechs/mech_dh \
f58c87ece2202b8f85310d8885c7e39a7f435c09Jason Lemay gss_mechs/mech_krb5 \
f58c87ece2202b8f85310d8885c7e39a7f435c09Jason Lemay krb5 \
f58c87ece2202b8f85310d8885c7e39a7f435c09Jason Lemay libast \
f58c87ece2202b8f85310d8885c7e39a7f435c09Jason Lemay libbsm \
f58c87ece2202b8f85310d8885c7e39a7f435c09Jason Lemay libc \
f58c87ece2202b8f85310d8885c7e39a7f435c09Jason Lemay libcfgadm \
f58c87ece2202b8f85310d8885c7e39a7f435c09Jason Lemay libcmd \
f58c87ece2202b8f85310d8885c7e39a7f435c09Jason Lemay libcontract \
f58c87ece2202b8f85310d8885c7e39a7f435c09Jason Lemay libcurses \
f58c87ece2202b8f85310d8885c7e39a7f435c09Jason Lemay libdhcpsvc \
f58c87ece2202b8f85310d8885c7e39a7f435c09Jason Lemay libdhcputil \
f58c87ece2202b8f85310d8885c7e39a7f435c09Jason Lemay libipsecutil \
f58c87ece2202b8f85310d8885c7e39a7f435c09Jason Lemay libdiskmgt \
f58c87ece2202b8f85310d8885c7e39a7f435c09Jason Lemay libdladm \
f58c87ece2202b8f85310d8885c7e39a7f435c09Jason Lemay libdll \
f58c87ece2202b8f85310d8885c7e39a7f435c09Jason Lemay libgrubmgmt \
f58c87ece2202b8f85310d8885c7e39a7f435c09Jason Lemay libgss \
f58c87ece2202b8f85310d8885c7e39a7f435c09Jason Lemay libidmap \
f58c87ece2202b8f85310d8885c7e39a7f435c09Jason Lemay libinetcfg \
f58c87ece2202b8f85310d8885c7e39a7f435c09Jason Lemay libipmp \
f58c87ece2202b8f85310d8885c7e39a7f435c09Jason Lemay libinetutil \
f58c87ece2202b8f85310d8885c7e39a7f435c09Jason Lemay libinstzones \
f58c87ece2202b8f85310d8885c7e39a7f435c09Jason Lemay libnsl \
f58c87ece2202b8f85310d8885c7e39a7f435c09Jason Lemay libpam \
f58c87ece2202b8f85310d8885c7e39a7f435c09Jason Lemay libpicl \
f58c87ece2202b8f85310d8885c7e39a7f435c09Jason Lemay libpool \
f58c87ece2202b8f85310d8885c7e39a7f435c09Jason Lemay libpkg \
f58c87ece2202b8f85310d8885c7e39a7f435c09Jason Lemay libpp \
f58c87ece2202b8f85310d8885c7e39a7f435c09Jason Lemay libscf \
f58c87ece2202b8f85310d8885c7e39a7f435c09Jason Lemay libsasl \
f58c87ece2202b8f85310d8885c7e39a7f435c09Jason Lemay libldap5 \
f58c87ece2202b8f85310d8885c7e39a7f435c09Jason Lemay libsecdb \
f58c87ece2202b8f85310d8885c7e39a7f435c09Jason Lemay libshare \
f58c87ece2202b8f85310d8885c7e39a7f435c09Jason Lemay libshell \
f58c87ece2202b8f85310d8885c7e39a7f435c09Jason Lemay libsldap \
f58c87ece2202b8f85310d8885c7e39a7f435c09Jason Lemay libslp \
f58c87ece2202b8f85310d8885c7e39a7f435c09Jason Lemay libsmbfs \
f58c87ece2202b8f85310d8885c7e39a7f435c09Jason Lemay libsmedia \
f58c87ece2202b8f85310d8885c7e39a7f435c09Jason Lemay libsum \
f58c87ece2202b8f85310d8885c7e39a7f435c09Jason Lemay libtsol \
f58c87ece2202b8f85310d8885c7e39a7f435c09Jason Lemay libuutil \
f58c87ece2202b8f85310d8885c7e39a7f435c09Jason Lemay libvscan \
f58c87ece2202b8f85310d8885c7e39a7f435c09Jason Lemay libwanboot \
f58c87ece2202b8f85310d8885c7e39a7f435c09Jason Lemay libwanbootutil \
f58c87ece2202b8f85310d8885c7e39a7f435c09Jason Lemay libzfs \
f58c87ece2202b8f85310d8885c7e39a7f435c09Jason Lemay libzonecfg \
f58c87ece2202b8f85310d8885c7e39a7f435c09Jason Lemay lvm \
f58c87ece2202b8f85310d8885c7e39a7f435c09Jason Lemay madv \
f58c87ece2202b8f85310d8885c7e39a7f435c09Jason Lemay mms \
f58c87ece2202b8f85310d8885c7e39a7f435c09Jason Lemay mpss \
f58c87ece2202b8f85310d8885c7e39a7f435c09Jason Lemay pam_modules \
f58c87ece2202b8f85310d8885c7e39a7f435c09Jason Lemay pyzfs \
f58c87ece2202b8f85310d8885c7e39a7f435c09Jason Lemay rpcsec_gss
f58c87ece2202b8f85310d8885c7e39a7f435c09Jason LemayMSGSUBDIRS += \
f58c87ece2202b8f85310d8885c7e39a7f435c09Jason Lemay $($(MACH)_MSGSUBDIRS)
f58c87ece2202b8f85310d8885c7e39a7f435c09Jason Lemay
f58c87ece2202b8f85310d8885c7e39a7f435c09Jason Lemaysparc_MSGSUBDIRS= \
f58c87ece2202b8f85310d8885c7e39a7f435c09Jason Lemay libprtdiag \
f58c87ece2202b8f85310d8885c7e39a7f435c09Jason Lemay libprtdiag_psr
f58c87ece2202b8f85310d8885c7e39a7f435c09Jason Lemay
f58c87ece2202b8f85310d8885c7e39a7f435c09Jason Lemayi386_MSGSUBDIRS= libfdisk
f58c87ece2202b8f85310d8885c7e39a7f435c09Jason Lemay
f58c87ece2202b8f85310d8885c7e39a7f435c09Jason LemayHDRSUBDIRS= \
f58c87ece2202b8f85310d8885c7e39a7f435c09Jason Lemay auditd_plugins \
f58c87ece2202b8f85310d8885c7e39a7f435c09Jason Lemay libast \
f58c87ece2202b8f85310d8885c7e39a7f435c09Jason Lemay libbrand \
f58c87ece2202b8f85310d8885c7e39a7f435c09Jason Lemay libbsm \
f58c87ece2202b8f85310d8885c7e39a7f435c09Jason Lemay libc \
f58c87ece2202b8f85310d8885c7e39a7f435c09Jason Lemay libcmd \
f58c87ece2202b8f85310d8885c7e39a7f435c09Jason Lemay libcmdutils \
f58c87ece2202b8f85310d8885c7e39a7f435c09Jason Lemay libcontract \
f58c87ece2202b8f85310d8885c7e39a7f435c09Jason Lemay libcpc \
f58c87ece2202b8f85310d8885c7e39a7f435c09Jason Lemay libctf \
f58c87ece2202b8f85310d8885c7e39a7f435c09Jason Lemay libcurses \
f58c87ece2202b8f85310d8885c7e39a7f435c09Jason Lemay libcryptoutil \
f58c87ece2202b8f85310d8885c7e39a7f435c09Jason Lemay libdevice \
f58c87ece2202b8f85310d8885c7e39a7f435c09Jason Lemay libdevid \
f58c87ece2202b8f85310d8885c7e39a7f435c09Jason Lemay libdevinfo \
f58c87ece2202b8f85310d8885c7e39a7f435c09Jason Lemay libdiskmgt \
f58c87ece2202b8f85310d8885c7e39a7f435c09Jason Lemay libdladm \
f58c87ece2202b8f85310d8885c7e39a7f435c09Jason Lemay libdll \
f58c87ece2202b8f85310d8885c7e39a7f435c09Jason Lemay libdlpi \
f58c87ece2202b8f85310d8885c7e39a7f435c09Jason Lemay libdhcpagent \
f58c87ece2202b8f85310d8885c7e39a7f435c09Jason Lemay libdhcpsvc \
libdhcputil \
libdisasm \
libdns_sd \
libdscfg \
libdtrace \
libdtrace_jni \
libelfsign \
libeti \
libfstyp \
libgen \
libwanboot \
libwanbootutil \
libipsecutil \
libinetcfg \
libinetsvc \
libinetutil \
libinstzones \
libipmi \
libipmp \
libipp \
libiscsit \
libiscsitgt \
libkstat \
libkvm \
libmail \
libmd \
libmtmalloc \
libndmp \
libnvpair \
libnsctl \
libnsl \
libnwam \
libpam \
libpctx \
libpicl \
libpicltree \
libplot \
libpool \
libpp \
libproc \
libraidcfg \
librcm \
librdc \
libscf \
libsip \
libcommputil \
libsmbios \
librestart \
librpcsvc \
librsm \
librstp \
libsasl \
libsec \
libshell \
libslp \
libsmedia \
libsqlite \
libfcoe \
libstmf \
libstmfproxy \
libsum \
libsysevent \
libtecla \
libtnf \
libtnfctl \
libtnfprobe \
libtsnet \
libtsol \
libvolmgt \
libumem \
libunistat \
libuutil \
libwrap \
libxcurses2 \
libzfs \
libzfs_jni \
libzoneinfo \
hal \
policykit \
lvm \
pkcs11 \
passwdutil \
../cmd/sendmail/libmilter \
fm \
udapl \
libmapid \
libkrb5 \
libsmbfs \
libshare \
libidmap \
libvscan \
libgrubmgmt \
smbsrv \
scsi \
hbaapi \
smhba \
libima \
libsun_ima \
mpapi \
mms \
$($(MACH)_HDRSUBDIRS)
$(CLOSED_BUILD)HDRSUBDIRS += \
$(CLOSED)/lib/libc_i18n \
$(CLOSED)/lib/libike
i386_HDRSUBDIRS= \
libparted \
libfdisk
sparc_HDRSUBDIRS= \
libds \
libdscp \
libpri \
storage
all := TARGET= all
check := TARGET= check
clean := TARGET= clean
clobber := TARGET= clobber
install := TARGET= install
install_h := TARGET= install_h
lint := TARGET= lint
_dc := TARGET= _dc
_msg := TARGET= _msg
.KEEP_STATE:
#
# 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'.
#
all: $(SUBDIRS)
install: $(SUBDIRS) .WAIT install_extra
# extra libraries kept in other source areas
install_extra:
@cd ../cmd/sgs; pwd; $(MAKE) install_lib
@pwd
clean clobber lint: $(NOWAIT_SUBDIRS:%=%-nodepend)
install_h check: $(HDRSUBDIRS:%=%-nodepend)
_msg: $(MSGSUBDIRS:%=%-nodepend) .WAIT _dc
_dc: $(DCSUBDIRS:%=%-nodepend)
#
# Library interdependencies are called out explicitly here
#
auditd_plugins: libbsm libnsl libsecdb
gss_mechs/mech_krb5: libgss libnsl libsocket libresolv pkcs11
libadt_jni: libbsm
$(CLOSED_BUILD)libc: $(CLOSED)/lib/libc_i18n
libast: libsocket
libadutils: libldap5 libresolv libsocket libnsl
nsswitch: libadutils libidmap
libbsm: libtsol
libcmd: libsum libast libsocket libnsl
libcmdutils: libavl
libcontract: libnvpair
libdevid: libdevinfo
libdevinfo: libnvpair libsec
libdhcpagent: libsocket libdhcputil libuuid libdlpi libcontract
libdhcpsvc: libinetutil
libdhcputil: libnsl libgen libinetutil libdlpi
libdladm: libdevinfo libinetutil libsocket libscf librcm libnvpair \
libexacct libnsl libkstat libcurses
libdll: libast
libdlpi: libinetutil libdladm
libdscfg: libnsctl libunistat libsocket libnsl
libdtrace: libproc libgen libctf
libdtrace_jni: libuutil libdtrace
libefi: libuuid
libfstyp: libnvpair
libelfsign: libcryptoutil libkmf
libidmap: libadutils libldap5 libavl libsldap
libinetcfg: libnsl libsocket libdlpi
libiscsit: libc libnvpair libstmf libuuid libnsl
libkmf: libcryptoutil pkcs11
libnsl: libmd5 libscf
libmapid: libresolv
libnwam: libdoor
librdc: libsocket libnsl libnsctl libunistat libdscfg
libuuid: libdlpi
libinetutil: libsocket
libinstzones: libzonecfg libcontract
libpkg: libwanboot libscf libadm
libsecdb: libnsl
libsasl: libgss libsocket pkcs11 libmd
sasl_plugins: pkcs11 libgss libsocket libsasl
libsctp: libsocket
libshell: libast libcmd libdll libsocket libsecdb
libsip: libmd5
libsmbfs: libsocket libnsl libkrb5
libsocket: libnsl
libstmfproxy: libstmf libsocket libnsl libpthread
libsum: libast
libldap5: libsasl libsocket libnsl libmd
libsldap: libldap5 libtsol libnsl libc libscf libresolv
libpool: libnvpair libexacct
libpp: libast
libzonecfg: libc libsocket libnsl libuuid libnvpair libsysevent libsec \
libbrand libpool libscf
libproc: ../cmd/sgs/librtld_db ../cmd/sgs/libelf libctf
libproject: libpool libproc libsecdb
libtsnet: libnsl libtsol libsecdb
libwrap: libnsl libsocket
libwanboot: libnvpair libresolv libnsl libsocket libdevinfo libinetutil \
libdhcputil
libwanbootutil: libnsl
pam_modules: libproject passwdutil smbsrv
libscf: libuutil libmd libgen libsmbios
libinetsvc: libscf
librestart: libuutil libscf
../cmd/sgs/libdl: ../cmd/sgs/libconv
../cmd/sgs/libelf: ../cmd/sgs/libconv
pkcs11: libcryptoutil
print: libldap5
udapl/udapl_tavor: udapl/libdat
libzfs: libdevinfo libdevid libgen libnvpair libuutil libiscsitgt \
libavl libefi libidmap
libzfs_jni: libdiskmgt libnvpair libzfs
libzpool: libavl libumem libnvpair
libsec: libavl libidmap
brand: libc libsocket
libshare: libscf libzfs libuuid libfsmgt libsecdb libumem libsmbfs
libexacct/demo: libexacct libproject libsocket libnsl
libtsalarm: libpcp
smbsrv: libsocket libnsl libmd libxnet libpthread librt \
libshare libidmap pkcs11 libsqlite
libvscan: libscf
scsi: libnvpair
mpapi: libpthread libdevinfo libsysevent libnvpair
libgrubmgmt: libdevinfo libzfs libfstyp
pyzfs: libnvpair libsec libidmap libzfs
#
# 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).
#
$(SUBDIRS): FRC
@if [ -f $@/Makefile ]; then \
cd $@; pwd; $(MAKE) $(TARGET); \
else \
true; \
fi
$(SUBDIRS:%=%-nodepend):
@if [ -f $(@:%-nodepend=%)/Makefile ]; then \
cd $(@:%-nodepend=%); pwd; $(MAKE) $(TARGET); \
else \
true; \
fi
FRC: