Makefile revision fb9f9b975cb9214fec5dab37d461199adab9b964
5a4557e8de2951a2796676b5ec4b6a90caa5be14Mark Andrews#
b0e8629055a766d4555a005a283c2889a5974945Mark Andrews# CDDL HEADER START
5a4557e8de2951a2796676b5ec4b6a90caa5be14Mark Andrews#
5a4557e8de2951a2796676b5ec4b6a90caa5be14Mark Andrews# The contents of this file are subject to the terms of the
5a4557e8de2951a2796676b5ec4b6a90caa5be14Mark Andrews# Common Development and Distribution License, Version 1.0 only
5a4557e8de2951a2796676b5ec4b6a90caa5be14Mark Andrews# (the "License"). You may not use this file except in compliance
5a4557e8de2951a2796676b5ec4b6a90caa5be14Mark Andrews# with the License.
5a4557e8de2951a2796676b5ec4b6a90caa5be14Mark Andrews#
5a4557e8de2951a2796676b5ec4b6a90caa5be14Mark Andrews# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
5a4557e8de2951a2796676b5ec4b6a90caa5be14Mark Andrews# or http://www.opensolaris.org/os/licensing.
5a4557e8de2951a2796676b5ec4b6a90caa5be14Mark Andrews# See the License for the specific language governing permissions
5a4557e8de2951a2796676b5ec4b6a90caa5be14Mark Andrews# and limitations under the License.
5a4557e8de2951a2796676b5ec4b6a90caa5be14Mark Andrews#
5a4557e8de2951a2796676b5ec4b6a90caa5be14Mark Andrews# When distributing Covered Code, include this CDDL HEADER in each
5a4557e8de2951a2796676b5ec4b6a90caa5be14Mark Andrews# file and include the License file at usr/src/OPENSOLARIS.LICENSE.
5a4557e8de2951a2796676b5ec4b6a90caa5be14Mark Andrews# If applicable, add the following below this CDDL HEADER, with the
b0e8629055a766d4555a005a283c2889a5974945Mark Andrews# fields enclosed by brackets "[]" replaced with your own identifying
5a4557e8de2951a2796676b5ec4b6a90caa5be14Mark Andrews# information: Portions Copyright [yyyy] [name of copyright owner]
5a4557e8de2951a2796676b5ec4b6a90caa5be14Mark Andrews#
5a4557e8de2951a2796676b5ec4b6a90caa5be14Mark Andrews# CDDL HEADER END
5a4557e8de2951a2796676b5ec4b6a90caa5be14Mark Andrews#
e21a2904f02a03fa06b6db04d348f65fe9c67b2bMark Andrews#
5a4557e8de2951a2796676b5ec4b6a90caa5be14Mark Andrews# Copyright 2005 Sun Microsystems, Inc. All rights reserved.
5a4557e8de2951a2796676b5ec4b6a90caa5be14Mark Andrews# Use is subject to license terms.
5a4557e8de2951a2796676b5ec4b6a90caa5be14Mark Andrews#
5a4557e8de2951a2796676b5ec4b6a90caa5be14Mark Andrews# ident "%Z%%M% %I% %E% SMI"
5a4557e8de2951a2796676b5ec4b6a90caa5be14Mark Andrews
5a4557e8de2951a2796676b5ec4b6a90caa5be14Mark Andrewsinclude ../Makefile.master
5a4557e8de2951a2796676b5ec4b6a90caa5be14Mark Andrews
5a4557e8de2951a2796676b5ec4b6a90caa5be14Mark Andrews# Note that libcurses installs commands along with its library.
5a4557e8de2951a2796676b5ec4b6a90caa5be14Mark Andrews# This is a minor bug which probably should be fixed.
5a4557e8de2951a2796676b5ec4b6a90caa5be14Mark Andrews# Note also that a few extra libraries are kept in cmd source.
5a4557e8de2951a2796676b5ec4b6a90caa5be14Mark Andrews#
5a4557e8de2951a2796676b5ec4b6a90caa5be14Mark Andrews# Certain libraries are linked with, hence depend on, other libraries.
5a4557e8de2951a2796676b5ec4b6a90caa5be14Mark Andrews#
5a4557e8de2951a2796676b5ec4b6a90caa5be14Mark Andrews# Although we have historically used .WAIT to express dependencies, it
5a4557e8de2951a2796676b5ec4b6a90caa5be14Mark Andrews# reduces the amount of parallelism and thus lengthens the time it
5a4557e8de2951a2796676b5ec4b6a90caa5be14Mark Andrews# takes to build the libraries. Thus, we now require that any new
5a4557e8de2951a2796676b5ec4b6a90caa5be14Mark Andrews# libraries explicitly call out their dependencies. Eventually, all
5a4557e8de2951a2796676b5ec4b6a90caa5be14Mark Andrews# the library dependencies will be called out explicitly. See
5a4557e8de2951a2796676b5ec4b6a90caa5be14Mark Andrews# "Library interdependencies" near the end of this file.
5a4557e8de2951a2796676b5ec4b6a90caa5be14Mark Andrews#
5a4557e8de2951a2796676b5ec4b6a90caa5be14Mark Andrews# Aside from explicit dependencies (and legacy .WAITs), all libraries
5a4557e8de2951a2796676b5ec4b6a90caa5be14Mark Andrews# are built in parallel.
5a4557e8de2951a2796676b5ec4b6a90caa5be14Mark Andrews#
5a4557e8de2951a2796676b5ec4b6a90caa5be14Mark Andrews.PARALLEL:
5a4557e8de2951a2796676b5ec4b6a90caa5be14Mark Andrews
5a4557e8de2951a2796676b5ec4b6a90caa5be14Mark Andrews#
5a4557e8de2951a2796676b5ec4b6a90caa5be14Mark Andrews# The $(CLOSED_BUILD) additions to SUBDIRS & MSGSUBDIRS are unfortunate,
a057e8e33baa5fa369be28a9680585200ce3ff73Mark Andrews# but required due to the "dependencies" of using .WAIT to barrier the
5a4557e8de2951a2796676b5ec4b6a90caa5be14Mark Andrews# parallel dmake builds. once 4631488 has been fixed, they can be
5a4557e8de2951a2796676b5ec4b6a90caa5be14Mark Andrews# consolidated into one $(CLOSED_BUILD)SUBDIRS += (all closed libs) as
b0e8629055a766d4555a005a283c2889a5974945Mark Andrews# shown in HDRSUBDIRS
5a4557e8de2951a2796676b5ec4b6a90caa5be14Mark Andrews#
5a4557e8de2951a2796676b5ec4b6a90caa5be14Mark AndrewsSUBDIRS= \
5a4557e8de2951a2796676b5ec4b6a90caa5be14Mark Andrews common .WAIT \
5a4557e8de2951a2796676b5ec4b6a90caa5be14Mark Andrews abi/apptrace .WAIT \
5a4557e8de2951a2796676b5ec4b6a90caa5be14Mark Andrews ../cmd/abi/spectrans .WAIT \
5a4557e8de2951a2796676b5ec4b6a90caa5be14Mark Andrews ../cmd/sgs/libconv \
5a4557e8de2951a2796676b5ec4b6a90caa5be14Mark Andrews ../cmd/sgs/libdl .WAIT
5a4557e8de2951a2796676b5ec4b6a90caa5be14Mark Andrews
5a4557e8de2951a2796676b5ec4b6a90caa5be14Mark Andrews$(CLOSED_BUILD)SUBDIRS += \
5a4557e8de2951a2796676b5ec4b6a90caa5be14Mark Andrews $(CLOSED)/lib/libc_i18n
5a4557e8de2951a2796676b5ec4b6a90caa5be14Mark Andrews
5a4557e8de2951a2796676b5ec4b6a90caa5be14Mark AndrewsSUBDIRS += \
5a4557e8de2951a2796676b5ec4b6a90caa5be14Mark Andrews libc .WAIT \
5a4557e8de2951a2796676b5ec4b6a90caa5be14Mark Andrews libmapmalloc .WAIT \
5a4557e8de2951a2796676b5ec4b6a90caa5be14Mark Andrews ../cmd/sgs/libelf .WAIT \
5a4557e8de2951a2796676b5ec4b6a90caa5be14Mark Andrews libmd5 \
5a4557e8de2951a2796676b5ec4b6a90caa5be14Mark Andrews librsm \
5a4557e8de2951a2796676b5ec4b6a90caa5be14Mark Andrews libmp .WAIT \
5a4557e8de2951a2796676b5ec4b6a90caa5be14Mark Andrews libcmd \
5a4557e8de2951a2796676b5ec4b6a90caa5be14Mark Andrews libnsl \
5a4557e8de2951a2796676b5ec4b6a90caa5be14Mark Andrews libsecdb .WAIT \
5a4557e8de2951a2796676b5ec4b6a90caa5be14Mark Andrews librpcsvc \
5a4557e8de2951a2796676b5ec4b6a90caa5be14Mark Andrews libsocket .WAIT \
5a4557e8de2951a2796676b5ec4b6a90caa5be14Mark Andrews libsctp \
5a4557e8de2951a2796676b5ec4b6a90caa5be14Mark Andrews libresolv \
5a4557e8de2951a2796676b5ec4b6a90caa5be14Mark Andrews libresolv2 .WAIT \
5a4557e8de2951a2796676b5ec4b6a90caa5be14Mark Andrews libw .WAIT \
5a4557e8de2951a2796676b5ec4b6a90caa5be14Mark Andrews libintl .WAIT \
5a4557e8de2951a2796676b5ec4b6a90caa5be14Mark Andrews ../cmd/sgs/librtld_db \
5a4557e8de2951a2796676b5ec4b6a90caa5be14Mark Andrews libaio \
5a4557e8de2951a2796676b5ec4b6a90caa5be14Mark Andrews librt \
5a4557e8de2951a2796676b5ec4b6a90caa5be14Mark Andrews libadm \
5a4557e8de2951a2796676b5ec4b6a90caa5be14Mark Andrews libctf \
5a4557e8de2951a2796676b5ec4b6a90caa5be14Mark Andrews libdtrace \
5a4557e8de2951a2796676b5ec4b6a90caa5be14Mark Andrews libcurses \
5a4557e8de2951a2796676b5ec4b6a90caa5be14Mark Andrews libgen \
5a4557e8de2951a2796676b5ec4b6a90caa5be14Mark Andrews libgss \
5a4557e8de2951a2796676b5ec4b6a90caa5be14Mark Andrews libpam \
5a4557e8de2951a2796676b5ec4b6a90caa5be14Mark Andrews libuuid \
5a4557e8de2951a2796676b5ec4b6a90caa5be14Mark Andrews libthread \
5a4557e8de2951a2796676b5ec4b6a90caa5be14Mark Andrews libpthread .WAIT \
5a4557e8de2951a2796676b5ec4b6a90caa5be14Mark Andrews libslp \
5a4557e8de2951a2796676b5ec4b6a90caa5be14Mark Andrews libbsdmalloc \
5a4557e8de2951a2796676b5ec4b6a90caa5be14Mark Andrews libdoor \
5a4557e8de2951a2796676b5ec4b6a90caa5be14Mark Andrews libdevinfo \
5a4557e8de2951a2796676b5ec4b6a90caa5be14Mark Andrews libdladm \
5a4557e8de2951a2796676b5ec4b6a90caa5be14Mark Andrews libdlpi \
5a4557e8de2951a2796676b5ec4b6a90caa5be14Mark Andrews libeti \
5a4557e8de2951a2796676b5ec4b6a90caa5be14Mark Andrews libcrypt \
5a4557e8de2951a2796676b5ec4b6a90caa5be14Mark Andrews libefi \
5a4557e8de2951a2796676b5ec4b6a90caa5be14Mark Andrews libwanboot \
5a4557e8de2951a2796676b5ec4b6a90caa5be14Mark Andrews libwanbootutil \
5a4557e8de2951a2796676b5ec4b6a90caa5be14Mark Andrews libcryptoutil \
5a4557e8de2951a2796676b5ec4b6a90caa5be14Mark Andrews libinetcfg \
5a4557e8de2951a2796676b5ec4b6a90caa5be14Mark Andrews libinetutil \
5a4557e8de2951a2796676b5ec4b6a90caa5be14Mark Andrews libipmp \
5a4557e8de2951a2796676b5ec4b6a90caa5be14Mark Andrews libkstat \
5a4557e8de2951a2796676b5ec4b6a90caa5be14Mark Andrews libkvm \
5a4557e8de2951a2796676b5ec4b6a90caa5be14Mark Andrews liblaadm \
5a4557e8de2951a2796676b5ec4b6a90caa5be14Mark Andrews liblm \
5a4557e8de2951a2796676b5ec4b6a90caa5be14Mark Andrews libmacadm \
5a4557e8de2951a2796676b5ec4b6a90caa5be14Mark Andrews libmalloc \
5a4557e8de2951a2796676b5ec4b6a90caa5be14Mark Andrews libmtmalloc \
5a4557e8de2951a2796676b5ec4b6a90caa5be14Mark Andrews libnls \
5a4557e8de2951a2796676b5ec4b6a90caa5be14Mark Andrews libsmbios \
5a4557e8de2951a2796676b5ec4b6a90caa5be14Mark Andrews libtecla \
5a4557e8de2951a2796676b5ec4b6a90caa5be14Mark Andrews libumem \
5a4557e8de2951a2796676b5ec4b6a90caa5be14Mark Andrews libnvpair .WAIT \
5a4557e8de2951a2796676b5ec4b6a90caa5be14Mark Andrews libexacct \
5a4557e8de2951a2796676b5ec4b6a90caa5be14Mark Andrews libplot \
5a4557e8de2951a2796676b5ec4b6a90caa5be14Mark Andrews libldap4 \
5a4557e8de2951a2796676b5ec4b6a90caa5be14Mark Andrews libsasl \
5a4557e8de2951a2796676b5ec4b6a90caa5be14Mark Andrews libldap5 \
5a4557e8de2951a2796676b5ec4b6a90caa5be14Mark Andrews libsldap .WAIT \
5a4557e8de2951a2796676b5ec4b6a90caa5be14Mark Andrews libbsm \
5a4557e8de2951a2796676b5ec4b6a90caa5be14Mark Andrews libsys \
5a4557e8de2951a2796676b5ec4b6a90caa5be14Mark Andrews libsysevent \
5a4557e8de2951a2796676b5ec4b6a90caa5be14Mark Andrews libnisdb \
5a4557e8de2951a2796676b5ec4b6a90caa5be14Mark Andrews libpool \
5a4557e8de2951a2796676b5ec4b6a90caa5be14Mark Andrews libproc \
5a4557e8de2951a2796676b5ec4b6a90caa5be14Mark Andrews libproject \
5a4557e8de2951a2796676b5ec4b6a90caa5be14Mark Andrews libsendfile \
5a4557e8de2951a2796676b5ec4b6a90caa5be14Mark Andrews nametoaddr \
5a4557e8de2951a2796676b5ec4b6a90caa5be14Mark Andrews ncad_addr \
5a4557e8de2951a2796676b5ec4b6a90caa5be14Mark Andrews gss_mechs/mech_krb5 .WAIT \
5a4557e8de2951a2796676b5ec4b6a90caa5be14Mark Andrews krb5 .WAIT
5a4557e8de2951a2796676b5ec4b6a90caa5be14Mark Andrews$(CLOSED_BUILD)SUBDIRS += \
5a4557e8de2951a2796676b5ec4b6a90caa5be14Mark Andrews $(CLOSED)/lib/smartcard
5a4557e8de2951a2796676b5ec4b6a90caa5be14Mark AndrewsSUBDIRS += \
5a4557e8de2951a2796676b5ec4b6a90caa5be14Mark Andrews passwdutil \
5a4557e8de2951a2796676b5ec4b6a90caa5be14Mark Andrews pam_modules \
5a4557e8de2951a2796676b5ec4b6a90caa5be14Mark Andrews crypt_modules \
5a4557e8de2951a2796676b5ec4b6a90caa5be14Mark Andrews libadt_jni \
5a4557e8de2951a2796676b5ec4b6a90caa5be14Mark Andrews auditd_plugins \
5a4557e8de2951a2796676b5ec4b6a90caa5be14Mark Andrews libvolmgt \
5a4557e8de2951a2796676b5ec4b6a90caa5be14Mark Andrews libdevice \
5a4557e8de2951a2796676b5ec4b6a90caa5be14Mark Andrews libdevid \
5a4557e8de2951a2796676b5ec4b6a90caa5be14Mark Andrews libdhcpsvc \
5a4557e8de2951a2796676b5ec4b6a90caa5be14Mark Andrews libc_db \
5a4557e8de2951a2796676b5ec4b6a90caa5be14Mark Andrews libsec \
5a4557e8de2951a2796676b5ec4b6a90caa5be14Mark Andrews libtnfprobe \
5a4557e8de2951a2796676b5ec4b6a90caa5be14Mark Andrews libtnf \
5a4557e8de2951a2796676b5ec4b6a90caa5be14Mark Andrews libtnfctl \
5a4557e8de2951a2796676b5ec4b6a90caa5be14Mark Andrews libdhcpagent \
5a4557e8de2951a2796676b5ec4b6a90caa5be14Mark Andrews libdhcpdu \
5a4557e8de2951a2796676b5ec4b6a90caa5be14Mark Andrews libdhcputil \
5a4557e8de2951a2796676b5ec4b6a90caa5be14Mark Andrews libipsecutil
5a4557e8de2951a2796676b5ec4b6a90caa5be14Mark Andrews$(CLOSED_BUILD)SUBDIRS += \
5a4557e8de2951a2796676b5ec4b6a90caa5be14Mark Andrews $(CLOSED)/lib/libike
5a4557e8de2951a2796676b5ec4b6a90caa5be14Mark AndrewsSUBDIRS += \
5a4557e8de2951a2796676b5ec4b6a90caa5be14Mark Andrews nsswitch \
5a4557e8de2951a2796676b5ec4b6a90caa5be14Mark Andrews print \
5a4557e8de2951a2796676b5ec4b6a90caa5be14Mark Andrews libuutil \
5a4557e8de2951a2796676b5ec4b6a90caa5be14Mark Andrews libscf \
5a4557e8de2951a2796676b5ec4b6a90caa5be14Mark Andrews libinetsvc \
5a4557e8de2951a2796676b5ec4b6a90caa5be14Mark Andrews librestart \
5a4557e8de2951a2796676b5ec4b6a90caa5be14Mark Andrews libsched
5a4557e8de2951a2796676b5ec4b6a90caa5be14Mark Andrews$(CLOSED_BUILD)SUBDIRS += \
5a4557e8de2951a2796676b5ec4b6a90caa5be14Mark Andrews $(CLOSED)/lib/libelfsign
5a4557e8de2951a2796676b5ec4b6a90caa5be14Mark AndrewsSUBDIRS += \
5a4557e8de2951a2796676b5ec4b6a90caa5be14Mark Andrews pkcs11 .WAIT \
5a4557e8de2951a2796676b5ec4b6a90caa5be14Mark Andrews libpctx .WAIT \
5a4557e8de2951a2796676b5ec4b6a90caa5be14Mark Andrews libcpc \
5a4557e8de2951a2796676b5ec4b6a90caa5be14Mark Andrews watchmalloc \
5a4557e8de2951a2796676b5ec4b6a90caa5be14Mark Andrews madv \
5a4557e8de2951a2796676b5ec4b6a90caa5be14Mark Andrews mpss \
5a4557e8de2951a2796676b5ec4b6a90caa5be14Mark Andrews libwrap \
5a4557e8de2951a2796676b5ec4b6a90caa5be14Mark Andrews libxcurses \
5a4557e8de2951a2796676b5ec4b6a90caa5be14Mark Andrews libxcurses2 \
5a4557e8de2951a2796676b5ec4b6a90caa5be14Mark Andrews libxnet \
5a4557e8de2951a2796676b5ec4b6a90caa5be14Mark Andrews libzonecfg \
5a4557e8de2951a2796676b5ec4b6a90caa5be14Mark Andrews libzoneinfo \
5a4557e8de2951a2796676b5ec4b6a90caa5be14Mark Andrews gss_mechs/mech_spnego \
5a4557e8de2951a2796676b5ec4b6a90caa5be14Mark Andrews gss_mechs/mech_dummy \
5a4557e8de2951a2796676b5ec4b6a90caa5be14Mark Andrews gss_mechs/mech_dh \
5a4557e8de2951a2796676b5ec4b6a90caa5be14Mark Andrews rpcsec_gss \
5a4557e8de2951a2796676b5ec4b6a90caa5be14Mark Andrews librcm .WAIT \
a057e8e33baa5fa369be28a9680585200ce3ff73Mark Andrews libcfgadm .WAIT \
a057e8e33baa5fa369be28a9680585200ce3ff73Mark Andrews libpicl .WAIT \
a057e8e33baa5fa369be28a9680585200ce3ff73Mark Andrews libpicltree .WAIT \
a057e8e33baa5fa369be28a9680585200ce3ff73Mark Andrews cfgadm_plugins \
a057e8e33baa5fa369be28a9680585200ce3ff73Mark Andrews libmail \
a057e8e33baa5fa369be28a9680585200ce3ff73Mark Andrews lvm \
5a4557e8de2951a2796676b5ec4b6a90caa5be14Mark Andrews libsmedia \
5a4557e8de2951a2796676b5ec4b6a90caa5be14Mark Andrews libipp \
5a4557e8de2951a2796676b5ec4b6a90caa5be14Mark Andrews openssl \
5a4557e8de2951a2796676b5ec4b6a90caa5be14Mark Andrews libdiskmgt \
5a4557e8de2951a2796676b5ec4b6a90caa5be14Mark Andrews liblgrp \
5a4557e8de2951a2796676b5ec4b6a90caa5be14Mark Andrews libfsmgt \
5a4557e8de2951a2796676b5ec4b6a90caa5be14Mark Andrews fm \
5a4557e8de2951a2796676b5ec4b6a90caa5be14Mark Andrews libavl \
b0e8629055a766d4555a005a283c2889a5974945Mark Andrews libcmdutils \
057cafaa3df7be7a6dcca71fbaf8fb498fd83518Mark Andrews libcontract \
057cafaa3df7be7a6dcca71fbaf8fb498fd83518Mark Andrews ../cmd/sendmail/libmilter \
057cafaa3df7be7a6dcca71fbaf8fb498fd83518Mark Andrews sasl_plugins \
057cafaa3df7be7a6dcca71fbaf8fb498fd83518Mark Andrews udapl \
057cafaa3df7be7a6dcca71fbaf8fb498fd83518Mark Andrews libzpool \
057cafaa3df7be7a6dcca71fbaf8fb498fd83518Mark Andrews libzfs \
057cafaa3df7be7a6dcca71fbaf8fb498fd83518Mark Andrews libzfs_jni \
057cafaa3df7be7a6dcca71fbaf8fb498fd83518Mark Andrews $($(MACH)_SUBDIRS)
057cafaa3df7be7a6dcca71fbaf8fb498fd83518Mark Andrews
057cafaa3df7be7a6dcca71fbaf8fb498fd83518Mark Andrewssparc_SUBDIRS= .WAIT \
057cafaa3df7be7a6dcca71fbaf8fb498fd83518Mark Andrews efcode \
057cafaa3df7be7a6dcca71fbaf8fb498fd83518Mark Andrews libc_psr .WAIT \
057cafaa3df7be7a6dcca71fbaf8fb498fd83518Mark Andrews libmd5_psr .WAIT
b0e8629055a766d4555a005a283c2889a5974945Mark Andrews$(CLOSED_BUILD)sparc_SUBDIRS += \
5a4557e8de2951a2796676b5ec4b6a90caa5be14Mark Andrews $(CLOSED)/lib/libprtdiag .WAIT \
5a4557e8de2951a2796676b5ec4b6a90caa5be14Mark Andrews $(CLOSED)/lib/libprtdiag_psr \
5a4557e8de2951a2796676b5ec4b6a90caa5be14Mark Andrews $(CLOSED)/lib/librsc
5a4557e8de2951a2796676b5ec4b6a90caa5be14Mark Andrewssparc_SUBDIRS += \
b0e8629055a766d4555a005a283c2889a5974945Mark Andrews libfruutils .WAIT \
5a4557e8de2951a2796676b5ec4b6a90caa5be14Mark Andrews libfru \
5a4557e8de2951a2796676b5ec4b6a90caa5be14Mark Andrews libwrsmconf \
5a4557e8de2951a2796676b5ec4b6a90caa5be14Mark Andrews storage \
5a4557e8de2951a2796676b5ec4b6a90caa5be14Mark Andrews wrsm \
5a4557e8de2951a2796676b5ec4b6a90caa5be14Mark Andrews libpcp
5a4557e8de2951a2796676b5ec4b6a90caa5be14Mark Andrews
5a4557e8de2951a2796676b5ec4b6a90caa5be14Mark Andrewsfm: libexacct
5a4557e8de2951a2796676b5ec4b6a90caa5be14Mark Andrews
5a4557e8de2951a2796676b5ec4b6a90caa5be14Mark Andrews#
5a4557e8de2951a2796676b5ec4b6a90caa5be14Mark Andrews# Create a special version of $(SUBDIRS) with no .WAIT's, for use with the
5a4557e8de2951a2796676b5ec4b6a90caa5be14Mark Andrews# clean and clobber targets (for more information, see those targets, below).
5a4557e8de2951a2796676b5ec4b6a90caa5be14Mark Andrews#
5a4557e8de2951a2796676b5ec4b6a90caa5be14Mark AndrewsNOWAIT_SUBDIRS= $(SUBDIRS:.WAIT=)
5a4557e8de2951a2796676b5ec4b6a90caa5be14Mark Andrews
5a4557e8de2951a2796676b5ec4b6a90caa5be14Mark AndrewsDCSUBDIRS = \
5a4557e8de2951a2796676b5ec4b6a90caa5be14Mark Andrews lvm
5a4557e8de2951a2796676b5ec4b6a90caa5be14Mark Andrews
5a4557e8de2951a2796676b5ec4b6a90caa5be14Mark AndrewsMSGSUBDIRS= \
4abdfc917e6635a7c81d1f931a0c79227e72d025Mark Andrews abi \
4abdfc917e6635a7c81d1f931a0c79227e72d025Mark Andrews auditd_plugins \
5a4557e8de2951a2796676b5ec4b6a90caa5be14Mark Andrews cfgadm_plugins \
5a4557e8de2951a2796676b5ec4b6a90caa5be14Mark Andrews gss_mechs/mech_dh \
5a4557e8de2951a2796676b5ec4b6a90caa5be14Mark Andrews gss_mechs/mech_krb5 \
5a4557e8de2951a2796676b5ec4b6a90caa5be14Mark Andrews krb5 \
5a4557e8de2951a2796676b5ec4b6a90caa5be14Mark Andrews libbsm \
libc \
libcfgadm \
libcontract \
libcurses \
libdhcpsvc \
libdhcputil \
libgss \
libinetcfg \
libipmp \
libnsl \
libpam \
libpicl \
libpool \
libscf \
libsasl \
libldap5 \
libsecdb \
libsldap \
libslp \
libsmedia \
libuutil \
libwanboot \
libwanbootutil \
libzonecfg \
lvm \
madv \
mpss \
pam_modules \
rpcsec_gss
$(CLOSED_BUILD)MSGSUBDIRS += \
$(CLOSED)/lib/smartcard
MSGSUBDIRS += \
$($(MACH)_MSGSUBDIRS)
sparc_MSGSUBDIRS=
$(CLOSED_BUILD)sparc_MSGSUBDIRS += \
$(CLOSED)/lib/libprtdiag \
$(CLOSED)/lib/libprtdiag_psr
HDRSUBDIRS= libaio \
auditd_plugins \
libbsm \
libc \
libcmdutils \
libcontract \
libcpc \
libctf \
libcurses \
libcryptoutil \
libdevice \
libdevid \
libdevinfo \
libdiskmgt \
libdladm \
libdlpi \
libdhcpagent \
libdhcpsvc \
libdhcputil \
libdtrace \
libeti \
libgen \
libwanboot \
libwanbootutil \
libipsecutil \
libinetcfg \
libinetsvc \
libinetutil \
libipmp \
libipp \
libkstat \
libkvm \
liblaadm \
libmacadm \
libmail \
libmtmalloc \
libnvpair \
libpam \
libpctx \
libpicl \
libpicltree \
libplot \
libpool \
libproc \
librcm \
libscf \
libsmbios \
librestart \
librpcsvc \
librsm \
libsasl \
libsec \
libslp \
libsmedia \
libsysevent \
libtecla \
libtnf \
libtnfctl \
libtnfprobe \
libvolmgt \
libumem \
libuutil \
libwrap \
libxcurses2 \
libzfs \
libzfs_jni \
libzoneinfo \
lvm \
openssl \
pkcs11 \
passwdutil \
../cmd/sendmail/libmilter \
fm \
udapl \
$($(MACH)_HDRSUBDIRS)
$(CLOSED_BUILD)HDRSUBDIRS += \
$(CLOSED)/lib/libc_i18n \
$(CLOSED)/lib/libike \
$(CLOSED)/lib/smartcard
sparc_HDRSUBDIRS= \
libwrsmconf
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)
# dependencies for pam_modules (see below)
$(CLOSED_BUILD)SMARTCARD= $(CLOSED)/lib/smartcard
#
# 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
libcmdutils: libavl
libcontract: libnvpair
libdevid: libdevinfo
libdevinfo: libnvpair libsec
libdhcpagent: libdhcputil libnsl libsocket
libdhcpsvc: libinetutil
libdhcputil: libinetutil
libdladm: libdlpi libdevinfo
libdtrace: libproc libgen libctf
libefi: libuuid
$(CLOSED_BUILD)$(CLOSED)/lib/libelfsign: \
$(CLOSED)/lib/libike libcryptoutil pkcs11
libinetcfg: libnsl libsocket libdevinfo
libnsl: libmd5 libscf
libmacadm: libdevinfo
libuuid: libsocket
libinetutil: libsocket
libsecdb: libcmd libnsl
librt: libaio libmd5
libsasl: libgss libsocket pkcs11 libmd5
sasl_plugins: pkcs11 libgss libsocket libsasl
libsctp: libsocket
libsocket: libnsl
libldap5: libsasl libsocket libnsl libmd5
libsldap: libldap5
libpool: libnvpair libexacct
libproject: libpool libproc libsecdb
libwrap: libnsl libsocket
libwanboot: libnvpair libresolv libnsl libsocket libdevinfo libinetutil \
libdhcputil openssl
libwanbootutil: libnsl
pam_modules: libproject passwdutil $(SMARTCARD)
libscf: libuutil
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
libzfs_jni: libdiskmgt libnvpair libzfs
libzpool: libavl libumem libnvpair
#
# 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) abi: FRC
@if [ -f $@/Makefile ]; then \
cd $@; pwd; $(MAKE) $(TARGET); \
else \
true; \
fi
$(SUBDIRS:%=%-nodepend) abi-nodepend:
@if [ -f $(@:%-nodepend=%)/Makefile ]; then \
cd $(@:%-nodepend=%); pwd; $(MAKE) $(TARGET); \
else \
true; \
fi
FRC: