Makefile revision 22fb2eeb50dd2ffd3aefea05536263203fae0600
306763c67bb99228487345b32ab8c5c6cd41f23cChristian Maeder#
e9458b1a7a19a63aa4c179f9ab20f4d50681c168Jens Elkner# CDDL HEADER START
819ef30d291cb3d17790271f901b0ca03f2b783fChristian Maeder#
306763c67bb99228487345b32ab8c5c6cd41f23cChristian Maeder# The contents of this file are subject to the terms of the
98890889ffb2e8f6f722b00e265a211f13b5a861Corneliu-Claudiu Prodescu# Common Development and Distribution License (the "License").
b7cdce4a1a87dad63b65b75b54619ba7d6ae407aChristian Maeder# You may not use this file except in compliance with the License.
3f69b6948966979163bdfe8331c38833d5d90ecdChristian Maeder#
306763c67bb99228487345b32ab8c5c6cd41f23cChristian Maeder# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
306763c67bb99228487345b32ab8c5c6cd41f23cChristian Maeder# or http://www.opensolaris.org/os/licensing.
306763c67bb99228487345b32ab8c5c6cd41f23cChristian Maeder# See the License for the specific language governing permissions
819ef30d291cb3d17790271f901b0ca03f2b783fChristian Maeder# and limitations under the License.
306763c67bb99228487345b32ab8c5c6cd41f23cChristian Maeder#
306763c67bb99228487345b32ab8c5c6cd41f23cChristian Maeder# When distributing Covered Code, include this CDDL HEADER in each
306763c67bb99228487345b32ab8c5c6cd41f23cChristian Maeder# file and include the License file at usr/src/OPENSOLARIS.LICENSE.
b7cdce4a1a87dad63b65b75b54619ba7d6ae407aChristian Maeder# If applicable, add the following below this CDDL HEADER, with the
6b4943e54de8933d51cfd4f23b82cd5953b8bfd0Christian Maeder# fields enclosed by brackets "[]" replaced with your own identifying
b7cdce4a1a87dad63b65b75b54619ba7d6ae407aChristian Maeder# information: Portions Copyright [yyyy] [name of copyright owner]
b7cdce4a1a87dad63b65b75b54619ba7d6ae407aChristian Maeder#
b7cdce4a1a87dad63b65b75b54619ba7d6ae407aChristian Maeder# CDDL HEADER END
b7cdce4a1a87dad63b65b75b54619ba7d6ae407aChristian Maeder#
b7cdce4a1a87dad63b65b75b54619ba7d6ae407aChristian Maeder#
b7cdce4a1a87dad63b65b75b54619ba7d6ae407aChristian Maeder# Copyright 2009 Sun Microsystems, Inc. All rights reserved.
b7cdce4a1a87dad63b65b75b54619ba7d6ae407aChristian Maeder# Use is subject to license terms.
36021d7e2901d90c717072a1152a306f27b1b689Christian Maeder#
4513e0c74371177e06e8360b4c4eea55293fbb9cChristian Maeder#
2eb84fc82d3ffa9116bc471fda3742bd9e5a24bbChristian Maeder
2eb84fc82d3ffa9116bc471fda3742bd9e5a24bbChristian Maederinclude ../Makefile.master
2eb84fc82d3ffa9116bc471fda3742bd9e5a24bbChristian Maeder
2eb84fc82d3ffa9116bc471fda3742bd9e5a24bbChristian Maeder# Note that libcurses installs commands along with its library.
2eb84fc82d3ffa9116bc471fda3742bd9e5a24bbChristian Maeder# This is a minor bug which probably should be fixed.
2eb84fc82d3ffa9116bc471fda3742bd9e5a24bbChristian Maeder# Note also that a few extra libraries are kept in cmd source.
35db0960aa2e2a13652381c756fae5fb2b27213bChristian Maeder#
2eb84fc82d3ffa9116bc471fda3742bd9e5a24bbChristian Maeder# Certain libraries are linked with, hence depend on, other libraries.
2eb84fc82d3ffa9116bc471fda3742bd9e5a24bbChristian Maeder#
4ac9fad8454f66963e8985a41e061653147d4d60Christian Maeder# Although we have historically used .WAIT to express dependencies, it
4513e0c74371177e06e8360b4c4eea55293fbb9cChristian Maeder# reduces the amount of parallelism and thus lengthens the time it
6b4943e54de8933d51cfd4f23b82cd5953b8bfd0Christian Maeder# takes to build the libraries. Thus, we now require that any new
414ffa281d82f05a2d742c702f8e06b0cb05b229Christian Maeder# libraries explicitly call out their dependencies. Eventually, all
819ef30d291cb3d17790271f901b0ca03f2b783fChristian Maeder# the library dependencies will be called out explicitly. See
891964ed616e02baab4edd0ae7699016ffc06f27Christian Maeder# "Library interdependencies" near the end of this file.
f6a16d60a0d5c672e5525ec04b82373e754b2facChristian Maeder#
891964ed616e02baab4edd0ae7699016ffc06f27Christian Maeder# Aside from explicit dependencies (and legacy .WAITs), all libraries
4ac9fad8454f66963e8985a41e061653147d4d60Christian Maeder# are built in parallel.
50dce6b011347f92377adb8bbabaeeb80975e86dChristian Maeder#
414ffa281d82f05a2d742c702f8e06b0cb05b229Christian Maeder.PARALLEL:
819ef30d291cb3d17790271f901b0ca03f2b783fChristian Maeder
50dce6b011347f92377adb8bbabaeeb80975e86dChristian Maeder#
51b1633dc0785a542da974fae21fa7d6622c934eChristian Maeder# The $(CLOSED_BUILD) additions to SUBDIRS & MSGSUBDIRS are unfortunate,
51b1633dc0785a542da974fae21fa7d6622c934eChristian Maeder# but required due to the "dependencies" of using .WAIT to barrier the
51b1633dc0785a542da974fae21fa7d6622c934eChristian Maeder# parallel dmake builds. once 4631488 has been fixed, they can be
51b1633dc0785a542da974fae21fa7d6622c934eChristian Maeder# consolidated into one $(CLOSED_BUILD)SUBDIRS += (all closed libs) as
42c01284bba8d7c8d995c8dfb96ace57d28ed1bcTill Mossakowski# shown in HDRSUBDIRS
51b1633dc0785a542da974fae21fa7d6622c934eChristian Maeder#
50dce6b011347f92377adb8bbabaeeb80975e86dChristian MaederSUBDIRS= \
4ac9fad8454f66963e8985a41e061653147d4d60Christian Maeder common .WAIT \
4ac9fad8454f66963e8985a41e061653147d4d60Christian Maeder ../cmd/sgs/libconv \
4ac9fad8454f66963e8985a41e061653147d4d60Christian Maeder ../cmd/sgs/libdl .WAIT
4ac9fad8454f66963e8985a41e061653147d4d60Christian Maeder
4ac9fad8454f66963e8985a41e061653147d4d60Christian Maeder$(CLOSED_BUILD)SUBDIRS += \
4ac9fad8454f66963e8985a41e061653147d4d60Christian Maeder $(CLOSED)/lib/libc_i18n
4ac9fad8454f66963e8985a41e061653147d4d60Christian Maeder
4ac9fad8454f66963e8985a41e061653147d4d60Christian MaederSUBDIRS += \
4513e0c74371177e06e8360b4c4eea55293fbb9cChristian Maeder libc .WAIT \
4ac9fad8454f66963e8985a41e061653147d4d60Christian Maeder ../cmd/sgs/libelf .WAIT \
36021d7e2901d90c717072a1152a306f27b1b689Christian Maeder c_synonyms \
36021d7e2901d90c717072a1152a306f27b1b689Christian Maeder libmd \
36021d7e2901d90c717072a1152a306f27b1b689Christian Maeder libmd5 \
36021d7e2901d90c717072a1152a306f27b1b689Christian Maeder librsm \
36021d7e2901d90c717072a1152a306f27b1b689Christian Maeder libmp .WAIT \
36021d7e2901d90c717072a1152a306f27b1b689Christian Maeder libnsl \
36021d7e2901d90c717072a1152a306f27b1b689Christian Maeder libsecdb .WAIT \
51b1633dc0785a542da974fae21fa7d6622c934eChristian Maeder librpcsvc \
36021d7e2901d90c717072a1152a306f27b1b689Christian Maeder libsocket .WAIT \
36021d7e2901d90c717072a1152a306f27b1b689Christian Maeder libsctp \
36021d7e2901d90c717072a1152a306f27b1b689Christian Maeder libsip \
51b1633dc0785a542da974fae21fa7d6622c934eChristian Maeder libcommputil \
36021d7e2901d90c717072a1152a306f27b1b689Christian Maeder libresolv \
36021d7e2901d90c717072a1152a306f27b1b689Christian Maeder libresolv2 .WAIT \
36021d7e2901d90c717072a1152a306f27b1b689Christian Maeder libw .WAIT \
36021d7e2901d90c717072a1152a306f27b1b689Christian Maeder libintl .WAIT \
50dce6b011347f92377adb8bbabaeeb80975e86dChristian Maeder ../cmd/sgs/librtld_db \
4ac9fad8454f66963e8985a41e061653147d4d60Christian Maeder libaio \
414ffa281d82f05a2d742c702f8e06b0cb05b229Christian Maeder libast \
819ef30d291cb3d17790271f901b0ca03f2b783fChristian Maeder libdll \
50dce6b011347f92377adb8bbabaeeb80975e86dChristian Maeder libcmd \
50dce6b011347f92377adb8bbabaeeb80975e86dChristian Maeder libshell \
50dce6b011347f92377adb8bbabaeeb80975e86dChristian Maeder libsum \
42c01284bba8d7c8d995c8dfb96ace57d28ed1bcTill Mossakowski librt \
819ef30d291cb3d17790271f901b0ca03f2b783fChristian Maeder libadm \
4ac9fad8454f66963e8985a41e061653147d4d60Christian Maeder libctf \
e953bea49e7f0e1a43bccf2a66c5e2a2b50848e0Christian Maeder libdtrace \
819ef30d291cb3d17790271f901b0ca03f2b783fChristian Maeder libdtrace_jni \
819ef30d291cb3d17790271f901b0ca03f2b783fChristian Maeder libcurses \
50dce6b011347f92377adb8bbabaeeb80975e86dChristian Maeder libgen \
4ac9fad8454f66963e8985a41e061653147d4d60Christian Maeder libgss \
50dce6b011347f92377adb8bbabaeeb80975e86dChristian Maeder libpam \
61e38a4f194d3adc66646326c938eb9263a2f39bChristian Maeder libuuid \
819ef30d291cb3d17790271f901b0ca03f2b783fChristian Maeder libthread \
4513e0c74371177e06e8360b4c4eea55293fbb9cChristian Maeder libpthread .WAIT \
4ac9fad8454f66963e8985a41e061653147d4d60Christian Maeder libslp \
6b4943e54de8933d51cfd4f23b82cd5953b8bfd0Christian Maeder libbsdmalloc \
4ac9fad8454f66963e8985a41e061653147d4d60Christian Maeder libdoor \
819ef30d291cb3d17790271f901b0ca03f2b783fChristian Maeder libdevinfo \
4ac9fad8454f66963e8985a41e061653147d4d60Christian Maeder libdladm \
50dce6b011347f92377adb8bbabaeeb80975e86dChristian Maeder libdlpi \
e953bea49e7f0e1a43bccf2a66c5e2a2b50848e0Christian Maeder libeti \
812ee1f62e0e0e7235f3c05b41a0b173497b54ffChristian Maeder libcrypt \
812ee1f62e0e0e7235f3c05b41a0b173497b54ffChristian Maeder libdns_sd \
812ee1f62e0e0e7235f3c05b41a0b173497b54ffChristian Maeder libefi \
819ef30d291cb3d17790271f901b0ca03f2b783fChristian Maeder libfstyp \
4ac9fad8454f66963e8985a41e061653147d4d60Christian Maeder libwanboot \
819ef30d291cb3d17790271f901b0ca03f2b783fChristian Maeder libwanbootutil \
819ef30d291cb3d17790271f901b0ca03f2b783fChristian Maeder libcryptoutil \
50dce6b011347f92377adb8bbabaeeb80975e86dChristian Maeder libinetcfg \
50dce6b011347f92377adb8bbabaeeb80975e86dChristian Maeder libinetutil \
50dce6b011347f92377adb8bbabaeeb80975e86dChristian Maeder libipmp \
42c01284bba8d7c8d995c8dfb96ace57d28ed1bcTill Mossakowski libiscsit \
50dce6b011347f92377adb8bbabaeeb80975e86dChristian Maeder libiscsitgt \
414ffa281d82f05a2d742c702f8e06b0cb05b229Christian Maeder libkmf \
819ef30d291cb3d17790271f901b0ca03f2b783fChristian Maeder libkstat \
50dce6b011347f92377adb8bbabaeeb80975e86dChristian Maeder libkvm \
50dce6b011347f92377adb8bbabaeeb80975e86dChristian Maeder liblm \
4ac9fad8454f66963e8985a41e061653147d4d60Christian Maeder libmalloc \
libmapmalloc \
libmtmalloc \
libnls \
libnwam \
libsmbios \
libtecla \
libumem \
libnvpair .WAIT \
libexacct \
libplot \
libldap4 \
libsasl \
libldap5 \
libsldap .WAIT \
libbsm \
libsys \
libsysevent \
libnisdb \
libpool \
libpp \
libproc \
libproject \
libsendfile \
nametoaddr \
ncad_addr \
hbaapi \
sun_fc \
gss_mechs/mech_krb5 .WAIT \
libkrb5 .WAIT \
krb5 .WAIT \
libsmbfs \
libfcoe \
libstmf \
libnsctl \
libunistat \
libdscfg \
librdc \
libinstzones \
libpkg
$(CLOSED_BUILD)SUBDIRS += \
$(CLOSED)/lib/smartcard
SUBDIRS += \
passwdutil \
pam_modules \
crypt_modules \
libadt_jni \
abi \
auditd_plugins \
libvolmgt \
libdevice \
libdevid \
libdhcpsvc \
libc_db \
libndmp \
libsec \
libtnfprobe \
libtnf \
libtnfctl \
libdhcpagent \
libdhcpdu \
libdhcputil \
libipsecutil
$(CLOSED_BUILD)SUBDIRS += \
$(CLOSED)/lib/libike
SUBDIRS += \
nsswitch \
print \
libuutil \
libscf \
libinetsvc \
librestart \
libsched \
libelfsign \
pkcs11 .WAIT \
libpctx .WAIT \
libcpc \
watchmalloc \
extendedFILE \
madv \
mpss \
libdisasm \
libwrap \
libxcurses \
libxcurses2 \
libxnet \
libbrand .WAIT \
libzonecfg \
libzoneinfo \
libtsnet \
libtsol \
gss_mechs/mech_spnego \
gss_mechs/mech_dummy \
gss_mechs/mech_dh \
rpcsec_gss \
libraidcfg .WAIT \
librcm .WAIT \
libcfgadm .WAIT \
libpicl .WAIT \
libpicltree .WAIT \
raidcfg_plugins \
cfgadm_plugins \
libmail \
lvm \
libsmedia \
libipp \
libdiskmgt \
liblgrp \
libfsmgt \
fm \
libavl \
libcmdutils \
libcontract \
../cmd/sendmail/libmilter \
sasl_plugins \
udapl \
libzpool \
libzfs \
libzfs_jni \
pyzfs \
libmapid \
brand \
policykit \
hal \
libshare \
libsqlite \
libidmap \
libadutils \
libipmi \
libexacct/demo \
libvscan \
libgrubmgmt \
smbsrv \
scsi \
mms \
libima \
libsun_ima \
mpapi \
$($(MACH)_SUBDIRS)
i386_SUBDIRS= \
libntfs \
libparted \
libfdisk
sparc_SUBDIRS= .WAIT \
efcode \
libc_psr .WAIT \
libds \
libdscp \
libprtdiag .WAIT \
libprtdiag_psr \
libpri \
librsc \
libfruutils .WAIT \
libfru \
storage \
libpcp \
libtsalarm
FM_sparc_DEPLIBS= libpri
fm: \
libexacct \
libipmi \
libzfs \
scsi \
$(FM_$(MACH)_DEPLIBS)
#
# 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 = \
lvm
MSGSUBDIRS= \
abi \
auditd_plugins \
brand \
cfgadm_plugins \
gss_mechs/mech_dh \
gss_mechs/mech_krb5 \
krb5 \
libast \
libbsm \
libc \
libcfgadm \
libcmd \
libcontract \
libcurses \
libdhcpsvc \
libdhcputil \
libipsecutil \
libdiskmgt \
libdladm \
libdll \
libgrubmgmt \
libgss \
libidmap \
libinetcfg \
libipmp \
libinetutil \
libinstzones \
libnsl \
libpam \
libpicl \
libpool \
libpkg \
libpp \
libscf \
libsasl \
libldap5 \
libsecdb \
libshare \
libshell \
libsldap \
libslp \
libsmbfs \
libsmedia \
libsum \
libtsol \
libuutil \
libvscan \
libwanboot \
libwanbootutil \
libzfs \
libzonecfg \
lvm \
madv \
mms \
mpss \
pam_modules \
pyzfs \
rpcsec_gss
$(CLOSED_BUILD)MSGSUBDIRS += \
$(CLOSED)/lib/smartcard
MSGSUBDIRS += \
$($(MACH)_MSGSUBDIRS)
sparc_MSGSUBDIRS= \
libprtdiag \
libprtdiag_psr
i386_MSGSUBDIRS= libfdisk
HDRSUBDIRS= \
auditd_plugins \
libast \
libbrand \
libbsm \
libc \
libcmd \
libcmdutils \
libcontract \
libcpc \
libctf \
libcurses \
libcryptoutil \
libdevice \
libdevid \
libdevinfo \
libdiskmgt \
libdladm \
libdll \
libdlpi \
libdhcpagent \
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 \
libsasl \
libsec \
libshell \
libslp \
libsmedia \
libsqlite \
libfcoe \
libstmf \
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 \
libima \
libsun_ima \
mpapi \
mms \
$($(MACH)_HDRSUBDIRS)
$(CLOSED_BUILD)HDRSUBDIRS += \
$(CLOSED)/lib/libc_i18n \
$(CLOSED)/lib/libike \
$(CLOSED)/lib/smartcard
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)
# 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
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
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 $(SMARTCARD) 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: