17c478bd9Sstevel@tonic-gate# 27c478bd9Sstevel@tonic-gate# CDDL HEADER START 37c478bd9Sstevel@tonic-gate# 47c478bd9Sstevel@tonic-gate# The contents of this file are subject to the terms of the 5fb3fb4f3Stomee# Common Development and Distribution License (the "License"). 6fb3fb4f3Stomee# You may not use this file except in compliance with the License. 77c478bd9Sstevel@tonic-gate# 87c478bd9Sstevel@tonic-gate# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE 97c478bd9Sstevel@tonic-gate# or http://www.opensolaris.org/os/licensing. 107c478bd9Sstevel@tonic-gate# See the License for the specific language governing permissions 117c478bd9Sstevel@tonic-gate# and limitations under the License. 127c478bd9Sstevel@tonic-gate# 137c478bd9Sstevel@tonic-gate# When distributing Covered Code, include this CDDL HEADER in each 147c478bd9Sstevel@tonic-gate# file and include the License file at usr/src/OPENSOLARIS.LICENSE. 157c478bd9Sstevel@tonic-gate# If applicable, add the following below this CDDL HEADER, with the 167c478bd9Sstevel@tonic-gate# fields enclosed by brackets "[]" replaced with your own identifying 177c478bd9Sstevel@tonic-gate# information: Portions Copyright [yyyy] [name of copyright owner] 187c478bd9Sstevel@tonic-gate# 197c478bd9Sstevel@tonic-gate# CDDL HEADER END 207c478bd9Sstevel@tonic-gate# 217c478bd9Sstevel@tonic-gate# 22dc20a302Sas200622# Copyright 2008 Sun Microsystems, Inc. All rights reserved. 237c478bd9Sstevel@tonic-gate# Use is subject to license terms. 247c478bd9Sstevel@tonic-gate# 25f808c858Sraf# 267c478bd9Sstevel@tonic-gate 277c478bd9Sstevel@tonic-gateinclude ../Makefile.master 287c478bd9Sstevel@tonic-gate 297c478bd9Sstevel@tonic-gate# Note that libcurses installs commands along with its library. 307c478bd9Sstevel@tonic-gate# This is a minor bug which probably should be fixed. 317c478bd9Sstevel@tonic-gate# Note also that a few extra libraries are kept in cmd source. 327c478bd9Sstevel@tonic-gate# 337c478bd9Sstevel@tonic-gate# Certain libraries are linked with, hence depend on, other libraries. 347c478bd9Sstevel@tonic-gate# 357c478bd9Sstevel@tonic-gate# Although we have historically used .WAIT to express dependencies, it 367c478bd9Sstevel@tonic-gate# reduces the amount of parallelism and thus lengthens the time it 377c478bd9Sstevel@tonic-gate# takes to build the libraries. Thus, we now require that any new 387c478bd9Sstevel@tonic-gate# libraries explicitly call out their dependencies. Eventually, all 397c478bd9Sstevel@tonic-gate# the library dependencies will be called out explicitly. See 407c478bd9Sstevel@tonic-gate# "Library interdependencies" near the end of this file. 417c478bd9Sstevel@tonic-gate# 427c478bd9Sstevel@tonic-gate# Aside from explicit dependencies (and legacy .WAITs), all libraries 437c478bd9Sstevel@tonic-gate# are built in parallel. 447c478bd9Sstevel@tonic-gate# 457c478bd9Sstevel@tonic-gate.PARALLEL: 467c478bd9Sstevel@tonic-gate 47fb9f9b97Skupfer# 48fb9f9b97Skupfer# The $(CLOSED_BUILD) additions to SUBDIRS & MSGSUBDIRS are unfortunate, 49fb9f9b97Skupfer# but required due to the "dependencies" of using .WAIT to barrier the 50fb9f9b97Skupfer# parallel dmake builds. once 4631488 has been fixed, they can be 51fb9f9b97Skupfer# consolidated into one $(CLOSED_BUILD)SUBDIRS += (all closed libs) as 52fb9f9b97Skupfer# shown in HDRSUBDIRS 53fb9f9b97Skupfer# 547c478bd9Sstevel@tonic-gateSUBDIRS= \ 557c478bd9Sstevel@tonic-gate common .WAIT \ 567c478bd9Sstevel@tonic-gate ../cmd/sgs/libconv \ 57fb9f9b97Skupfer ../cmd/sgs/libdl .WAIT 58fb9f9b97Skupfer 59fb9f9b97Skupfer$(CLOSED_BUILD)SUBDIRS += \ 60fb9f9b97Skupfer $(CLOSED)/lib/libc_i18n 61fb9f9b97Skupfer 62fb9f9b97SkupferSUBDIRS += \ 637c478bd9Sstevel@tonic-gate libc .WAIT \ 647c478bd9Sstevel@tonic-gate ../cmd/sgs/libelf .WAIT \ 657257d1b4Sraf c_synonyms \ 66734b6a94Sdarrenm libmd \ 677c478bd9Sstevel@tonic-gate libmd5 \ 687c478bd9Sstevel@tonic-gate librsm \ 697c478bd9Sstevel@tonic-gate libmp .WAIT \ 707c478bd9Sstevel@tonic-gate libnsl \ 717c478bd9Sstevel@tonic-gate libsecdb .WAIT \ 727c478bd9Sstevel@tonic-gate librpcsvc \ 737c478bd9Sstevel@tonic-gate libsocket .WAIT \ 747c478bd9Sstevel@tonic-gate libsctp \ 7540cb5e5dSvi117747 libsip \ 76a93a1f58Sgm209912 libcommputil \ 777c478bd9Sstevel@tonic-gate libresolv \ 787c478bd9Sstevel@tonic-gate libresolv2 .WAIT \ 797c478bd9Sstevel@tonic-gate libw .WAIT \ 807c478bd9Sstevel@tonic-gate libintl .WAIT \ 817c478bd9Sstevel@tonic-gate ../cmd/sgs/librtld_db \ 827c478bd9Sstevel@tonic-gate libaio \ 83da2e3ebdSchin libast \ 84da2e3ebdSchin libdll \ 85da2e3ebdSchin libcmd \ 86da2e3ebdSchin libshell \ 877c478bd9Sstevel@tonic-gate librt \ 887c478bd9Sstevel@tonic-gate libadm \ 897c478bd9Sstevel@tonic-gate libctf \ 907c478bd9Sstevel@tonic-gate libdtrace \ 91fb3fb4f3Stomee libdtrace_jni \ 927c478bd9Sstevel@tonic-gate libcurses \ 937c478bd9Sstevel@tonic-gate libgen \ 947c478bd9Sstevel@tonic-gate libgss \ 957c478bd9Sstevel@tonic-gate libpam \ 967c478bd9Sstevel@tonic-gate libuuid \ 977c478bd9Sstevel@tonic-gate libthread \ 987c478bd9Sstevel@tonic-gate libpthread .WAIT \ 997c478bd9Sstevel@tonic-gate libslp \ 1007c478bd9Sstevel@tonic-gate libbsdmalloc \ 1017c478bd9Sstevel@tonic-gate libdoor \ 1027c478bd9Sstevel@tonic-gate libdevinfo \ 1037c478bd9Sstevel@tonic-gate libdladm \ 1047c478bd9Sstevel@tonic-gate libdlpi \ 1057c478bd9Sstevel@tonic-gate libeti \ 1067c478bd9Sstevel@tonic-gate libcrypt \ 1074b22b933Srs200217 libdns_sd \ 1087c478bd9Sstevel@tonic-gate libefi \ 1090e42dee6Sartem libfstyp \ 1107c478bd9Sstevel@tonic-gate libwanboot \ 1117c478bd9Sstevel@tonic-gate libwanbootutil \ 1127c478bd9Sstevel@tonic-gate libcryptoutil \ 1137c478bd9Sstevel@tonic-gate libinetcfg \ 1147c478bd9Sstevel@tonic-gate libinetutil \ 1157c478bd9Sstevel@tonic-gate libipmp \ 116f3861e1aSahl libiscsitgt \ 11799ebb4caSwyllys libkmf \ 1187c478bd9Sstevel@tonic-gate libkstat \ 1197c478bd9Sstevel@tonic-gate libkvm \ 1207c478bd9Sstevel@tonic-gate liblm \ 1217c478bd9Sstevel@tonic-gate libmalloc \ 122f808c858Sraf libmapmalloc \ 1237c478bd9Sstevel@tonic-gate libmtmalloc \ 1247c478bd9Sstevel@tonic-gate libnls \ 125b00044a2SJames Carlson libnwam \ 12684ab085aSmws libsmbios \ 1277c478bd9Sstevel@tonic-gate libtecla \ 1287c478bd9Sstevel@tonic-gate libumem \ 1297c478bd9Sstevel@tonic-gate libnvpair .WAIT \ 1307c478bd9Sstevel@tonic-gate libexacct \ 1317c478bd9Sstevel@tonic-gate libplot \ 1327c478bd9Sstevel@tonic-gate libldap4 \ 1337c478bd9Sstevel@tonic-gate libsasl \ 1347c478bd9Sstevel@tonic-gate libldap5 \ 1357c478bd9Sstevel@tonic-gate libsldap .WAIT \ 1367c478bd9Sstevel@tonic-gate libbsm \ 1377c478bd9Sstevel@tonic-gate libsys \ 1387c478bd9Sstevel@tonic-gate libsysevent \ 1397c478bd9Sstevel@tonic-gate libnisdb \ 1407c478bd9Sstevel@tonic-gate libpool \ 141da2e3ebdSchin libpp \ 1427c478bd9Sstevel@tonic-gate libproc \ 1437c478bd9Sstevel@tonic-gate libproject \ 1447c478bd9Sstevel@tonic-gate libsendfile \ 1457c478bd9Sstevel@tonic-gate nametoaddr \ 1467c478bd9Sstevel@tonic-gate ncad_addr \ 1477c478bd9Sstevel@tonic-gate gss_mechs/mech_krb5 .WAIT \ 14810db1377Sgtb libkrb5 .WAIT \ 1494bff34e3Sthurlow krb5 .WAIT \ 1504bff34e3Sthurlow libsmbfs 151fb9f9b97Skupfer$(CLOSED_BUILD)SUBDIRS += \ 152fb9f9b97Skupfer $(CLOSED)/lib/smartcard 153fb9f9b97SkupferSUBDIRS += \ 1547c478bd9Sstevel@tonic-gate passwdutil \ 1557c478bd9Sstevel@tonic-gate pam_modules \ 1567c478bd9Sstevel@tonic-gate crypt_modules \ 1577c478bd9Sstevel@tonic-gate libadt_jni \ 158f808c858Sraf abi \ 1597c478bd9Sstevel@tonic-gate auditd_plugins \ 1607c478bd9Sstevel@tonic-gate libvolmgt \ 1617c478bd9Sstevel@tonic-gate libdevice \ 1627c478bd9Sstevel@tonic-gate libdevid \ 1637c478bd9Sstevel@tonic-gate libdhcpsvc \ 1647c478bd9Sstevel@tonic-gate libc_db \ 1657c478bd9Sstevel@tonic-gate libsec \ 1667c478bd9Sstevel@tonic-gate libtnfprobe \ 1677c478bd9Sstevel@tonic-gate libtnf \ 1687c478bd9Sstevel@tonic-gate libtnfctl \ 1697c478bd9Sstevel@tonic-gate libdhcpagent \ 1707c478bd9Sstevel@tonic-gate libdhcpdu \ 1717c478bd9Sstevel@tonic-gate libdhcputil \ 172fb9f9b97Skupfer libipsecutil 173fb9f9b97Skupfer$(CLOSED_BUILD)SUBDIRS += \ 17469987563Ssabdar $(CLOSED)/lib/libike \ 17569987563Ssabdar $(CLOSED)/lib/libndmp 176fb9f9b97SkupferSUBDIRS += \ 1777c478bd9Sstevel@tonic-gate nsswitch \ 1787c478bd9Sstevel@tonic-gate print \ 1797c478bd9Sstevel@tonic-gate libuutil \ 1807c478bd9Sstevel@tonic-gate libscf \ 1817c478bd9Sstevel@tonic-gate libinetsvc \ 1827c478bd9Sstevel@tonic-gate librestart \ 183df8bdeb3Sjohnz libsched \ 184df8bdeb3Sjohnz libelfsign \ 1857c478bd9Sstevel@tonic-gate pkcs11 .WAIT \ 1867c478bd9Sstevel@tonic-gate libpctx .WAIT \ 1877c478bd9Sstevel@tonic-gate libcpc \ 1887c478bd9Sstevel@tonic-gate watchmalloc \ 189a5f69788Scraigm extendedFILE \ 1907c478bd9Sstevel@tonic-gate madv \ 1917c478bd9Sstevel@tonic-gate mpss \ 192dc0093f4Seschrock libdisasm \ 1937c478bd9Sstevel@tonic-gate libwrap \ 1947c478bd9Sstevel@tonic-gate libxcurses \ 1957c478bd9Sstevel@tonic-gate libxcurses2 \ 1967c478bd9Sstevel@tonic-gate libxnet \ 1979acbbeafSnn35248 libbrand .WAIT \ 1987c478bd9Sstevel@tonic-gate libzonecfg \ 1997c478bd9Sstevel@tonic-gate libzoneinfo \ 20045916cd2Sjpk libtsnet \ 20145916cd2Sjpk libtsol \ 2027c478bd9Sstevel@tonic-gate gss_mechs/mech_spnego \ 2037c478bd9Sstevel@tonic-gate gss_mechs/mech_dummy \ 2047c478bd9Sstevel@tonic-gate gss_mechs/mech_dh \ 2057c478bd9Sstevel@tonic-gate rpcsec_gss \ 206711890bcSjc156560 libraidcfg .WAIT \ 2077c478bd9Sstevel@tonic-gate librcm .WAIT \ 2087c478bd9Sstevel@tonic-gate libcfgadm .WAIT \ 2097c478bd9Sstevel@tonic-gate libpicl .WAIT \ 2107c478bd9Sstevel@tonic-gate libpicltree .WAIT \ 211711890bcSjc156560 raidcfg_plugins \ 2127c478bd9Sstevel@tonic-gate cfgadm_plugins \ 2137c478bd9Sstevel@tonic-gate libmail \ 2147c478bd9Sstevel@tonic-gate lvm \ 2157c478bd9Sstevel@tonic-gate libsmedia \ 2167c478bd9Sstevel@tonic-gate libipp \ 2177c478bd9Sstevel@tonic-gate openssl \ 2187c478bd9Sstevel@tonic-gate libdiskmgt \ 2197c478bd9Sstevel@tonic-gate liblgrp \ 2207c478bd9Sstevel@tonic-gate libfsmgt \ 2217c478bd9Sstevel@tonic-gate fm \ 2227c478bd9Sstevel@tonic-gate libavl \ 2237c478bd9Sstevel@tonic-gate libcmdutils \ 2247c478bd9Sstevel@tonic-gate libcontract \ 2257c478bd9Sstevel@tonic-gate ../cmd/sendmail/libmilter \ 2267c478bd9Sstevel@tonic-gate sasl_plugins \ 2277c478bd9Sstevel@tonic-gate udapl \ 228fa9e4066Sahrens libzpool \ 229fa9e4066Sahrens libzfs \ 230fa9e4066Sahrens libzfs_jni \ 2318200fe25Srmesta libmapid \ 2329acbbeafSnn35248 brand \ 23318c2aff7Sartem policykit \ 23418c2aff7Sartem hal \ 2356185db85Sdougm libshare \ 236c5c4113dSnw141292 libsqlite \ 237c5c4113dSnw141292 libidmap \ 2389113a79cSeschrock libipmi \ 239853de45fSdh155122 libexacct/demo \ 240911106dfSjm199354 libvscan \ 241da6c28aaSamw smbsrv \ 242275c9da8Seschrock scsi \ 243cee0fb94SAllan Matthews mms \ 2447c478bd9Sstevel@tonic-gate $($(MACH)_SUBDIRS) 2457c478bd9Sstevel@tonic-gate 2467c478bd9Sstevel@tonic-gatesparc_SUBDIRS= .WAIT \ 2477c478bd9Sstevel@tonic-gate efcode \ 24803831d35Sstevel libc_psr .WAIT \ 249*30588217SMike Christensen libds \ 25025cf1a30Sjl139090 libdscp \ 25103831d35Sstevel libprtdiag .WAIT \ 25203831d35Sstevel libprtdiag_psr \ 253ef884685Srb144127 libpri \ 25403831d35Sstevel librsc \ 2557c478bd9Sstevel@tonic-gate libfruutils .WAIT \ 2567c478bd9Sstevel@tonic-gate libfru \ 2577c478bd9Sstevel@tonic-gate storage \ 2584a6822d0Swillard libpcp \ 2594a6822d0Swillard libtsalarm 2607c478bd9Sstevel@tonic-gate 261ef884685Srb144127FM_sparc_DEPLIBS= libpri 262ef884685Srb144127 2632eeaed14Srobjfm: \ 2642eeaed14Srobj libexacct \ 2652eeaed14Srobj libipmi \ 266940d71d2Seschrock scsi \ 2672eeaed14Srobj $(FM_$(MACH)_DEPLIBS) 2687c478bd9Sstevel@tonic-gate 2697c478bd9Sstevel@tonic-gate# 2707c478bd9Sstevel@tonic-gate# Create a special version of $(SUBDIRS) with no .WAIT's, for use with the 2717c478bd9Sstevel@tonic-gate# clean and clobber targets (for more information, see those targets, below). 2727c478bd9Sstevel@tonic-gate# 2737c478bd9Sstevel@tonic-gateNOWAIT_SUBDIRS= $(SUBDIRS:.WAIT=) 2747c478bd9Sstevel@tonic-gate 2757c478bd9Sstevel@tonic-gateDCSUBDIRS = \ 2767c478bd9Sstevel@tonic-gate lvm 2777c478bd9Sstevel@tonic-gate 2787c478bd9Sstevel@tonic-gateMSGSUBDIRS= \ 2797c478bd9Sstevel@tonic-gate abi \ 2807c478bd9Sstevel@tonic-gate auditd_plugins \ 2819acbbeafSnn35248 brand \ 2827c478bd9Sstevel@tonic-gate cfgadm_plugins \ 2837c478bd9Sstevel@tonic-gate gss_mechs/mech_dh \ 2847c478bd9Sstevel@tonic-gate gss_mechs/mech_krb5 \ 2857c478bd9Sstevel@tonic-gate krb5 \ 286da2e3ebdSchin libast \ 2877c478bd9Sstevel@tonic-gate libbsm \ 2887c478bd9Sstevel@tonic-gate libc \ 2897c478bd9Sstevel@tonic-gate libcfgadm \ 290da2e3ebdSchin libcmd \ 2917c478bd9Sstevel@tonic-gate libcontract \ 2927c478bd9Sstevel@tonic-gate libcurses \ 2937c478bd9Sstevel@tonic-gate libdhcpsvc \ 2947c478bd9Sstevel@tonic-gate libdhcputil \ 295a7485808Smarkfen libipsecutil \ 296181c2f42Smmusante libdiskmgt \ 29733343a97Smeem libdladm \ 298da2e3ebdSchin libdll \ 2997c478bd9Sstevel@tonic-gate libgss \ 300c5c4113dSnw141292 libidmap \ 3017c478bd9Sstevel@tonic-gate libinetcfg \ 3027c478bd9Sstevel@tonic-gate libipmp \ 3037c478bd9Sstevel@tonic-gate libnsl \ 3047c478bd9Sstevel@tonic-gate libpam \ 3057c478bd9Sstevel@tonic-gate libpicl \ 3067c478bd9Sstevel@tonic-gate libpool \ 307da2e3ebdSchin libpp \ 3087c478bd9Sstevel@tonic-gate libscf \ 3097c478bd9Sstevel@tonic-gate libsasl \ 3107c478bd9Sstevel@tonic-gate libldap5 \ 3117c478bd9Sstevel@tonic-gate libsecdb \ 3126185db85Sdougm libshare \ 313da2e3ebdSchin libshell \ 3147c478bd9Sstevel@tonic-gate libsldap \ 3157c478bd9Sstevel@tonic-gate libslp \ 3164bff34e3Sthurlow libsmbfs \ 3177c478bd9Sstevel@tonic-gate libsmedia \ 31845916cd2Sjpk libtsol \ 3197c478bd9Sstevel@tonic-gate libuutil \ 320911106dfSjm199354 libvscan \ 3217c478bd9Sstevel@tonic-gate libwanboot \ 3227c478bd9Sstevel@tonic-gate libwanbootutil \ 323c3aa2a37Sck153898 libzfs \ 3247c478bd9Sstevel@tonic-gate libzonecfg \ 3257c478bd9Sstevel@tonic-gate lvm \ 3267c478bd9Sstevel@tonic-gate madv \ 327d1d2228cSDavid Major mms \ 3287c478bd9Sstevel@tonic-gate mpss \ 3297c478bd9Sstevel@tonic-gate pam_modules \ 330fb9f9b97Skupfer rpcsec_gss 331fb9f9b97Skupfer$(CLOSED_BUILD)MSGSUBDIRS += \ 332fb9f9b97Skupfer $(CLOSED)/lib/smartcard 333fb9f9b97SkupferMSGSUBDIRS += \ 3347c478bd9Sstevel@tonic-gate $($(MACH)_MSGSUBDIRS) 3357c478bd9Sstevel@tonic-gate 33603831d35Sstevelsparc_MSGSUBDIRS= \ 33703831d35Sstevel libprtdiag \ 33803831d35Sstevel libprtdiag_psr 3397c478bd9Sstevel@tonic-gate 340f841f6adSrafHDRSUBDIRS= \ 3417c478bd9Sstevel@tonic-gate auditd_plugins \ 342da2e3ebdSchin libast \ 3439acbbeafSnn35248 libbrand \ 3447c478bd9Sstevel@tonic-gate libbsm \ 3457c478bd9Sstevel@tonic-gate libc \ 346da2e3ebdSchin libcmd \ 3477c478bd9Sstevel@tonic-gate libcmdutils \ 3487c478bd9Sstevel@tonic-gate libcontract \ 3497c478bd9Sstevel@tonic-gate libcpc \ 3507c478bd9Sstevel@tonic-gate libctf \ 3517c478bd9Sstevel@tonic-gate libcurses \ 3527c478bd9Sstevel@tonic-gate libcryptoutil \ 3537c478bd9Sstevel@tonic-gate libdevice \ 3547c478bd9Sstevel@tonic-gate libdevid \ 3557c478bd9Sstevel@tonic-gate libdevinfo \ 3563e1bd7a2Ssjelinek libdiskmgt \ 3577c478bd9Sstevel@tonic-gate libdladm \ 358da2e3ebdSchin libdll \ 3597c478bd9Sstevel@tonic-gate libdlpi \ 3607c478bd9Sstevel@tonic-gate libdhcpagent \ 3617c478bd9Sstevel@tonic-gate libdhcpsvc \ 3627c478bd9Sstevel@tonic-gate libdhcputil \ 363dc0093f4Seschrock libdisasm \ 3644b22b933Srs200217 libdns_sd \ 3657c478bd9Sstevel@tonic-gate libdtrace \ 366fb3fb4f3Stomee libdtrace_jni \ 367df8bdeb3Sjohnz libelfsign \ 3687c478bd9Sstevel@tonic-gate libeti \ 3690e42dee6Sartem libfstyp \ 3707c478bd9Sstevel@tonic-gate libgen \ 3717c478bd9Sstevel@tonic-gate libwanboot \ 3727c478bd9Sstevel@tonic-gate libwanbootutil \ 3737c478bd9Sstevel@tonic-gate libipsecutil \ 3747c478bd9Sstevel@tonic-gate libinetcfg \ 3757c478bd9Sstevel@tonic-gate libinetsvc \ 3767c478bd9Sstevel@tonic-gate libinetutil \ 3779113a79cSeschrock libipmi \ 3787c478bd9Sstevel@tonic-gate libipmp \ 3797c478bd9Sstevel@tonic-gate libipp \ 380f3861e1aSahl libiscsitgt \ 3817c478bd9Sstevel@tonic-gate libkstat \ 3827c478bd9Sstevel@tonic-gate libkvm \ 3837c478bd9Sstevel@tonic-gate libmail \ 384734b6a94Sdarrenm libmd \ 3857c478bd9Sstevel@tonic-gate libmtmalloc \ 3867c478bd9Sstevel@tonic-gate libnvpair \ 38745916cd2Sjpk libnsl \ 388b00044a2SJames Carlson libnwam \ 3897c478bd9Sstevel@tonic-gate libpam \ 3907c478bd9Sstevel@tonic-gate libpctx \ 3917c478bd9Sstevel@tonic-gate libpicl \ 3927c478bd9Sstevel@tonic-gate libpicltree \ 3937c478bd9Sstevel@tonic-gate libplot \ 3947c478bd9Sstevel@tonic-gate libpool \ 395da2e3ebdSchin libpp \ 3967c478bd9Sstevel@tonic-gate libproc \ 3973e4f2897Sjc156560 libraidcfg \ 3987c478bd9Sstevel@tonic-gate librcm \ 3997c478bd9Sstevel@tonic-gate libscf \ 40040cb5e5dSvi117747 libsip \ 401a93a1f58Sgm209912 libcommputil \ 40284ab085aSmws libsmbios \ 4037c478bd9Sstevel@tonic-gate librestart \ 4047c478bd9Sstevel@tonic-gate librpcsvc \ 4057c478bd9Sstevel@tonic-gate librsm \ 4067c478bd9Sstevel@tonic-gate libsasl \ 407fa9e4066Sahrens libsec \ 408da2e3ebdSchin libshell \ 4097c478bd9Sstevel@tonic-gate libslp \ 4107c478bd9Sstevel@tonic-gate libsmedia \ 411c5c4113dSnw141292 libsqlite \ 4127c478bd9Sstevel@tonic-gate libsysevent \ 4137c478bd9Sstevel@tonic-gate libtecla \ 4147c478bd9Sstevel@tonic-gate libtnf \ 4157c478bd9Sstevel@tonic-gate libtnfctl \ 4167c478bd9Sstevel@tonic-gate libtnfprobe \ 41745916cd2Sjpk libtsnet \ 41845916cd2Sjpk libtsol \ 4197c478bd9Sstevel@tonic-gate libvolmgt \ 4207c478bd9Sstevel@tonic-gate libumem \ 4217c478bd9Sstevel@tonic-gate libuutil \ 4227c478bd9Sstevel@tonic-gate libwrap \ 4237c478bd9Sstevel@tonic-gate libxcurses2 \ 424fa9e4066Sahrens libzfs \ 425088e9d47Seschrock libzfs_jni \ 4267c478bd9Sstevel@tonic-gate libzoneinfo \ 42718c2aff7Sartem hal \ 42818c2aff7Sartem policykit \ 4297c478bd9Sstevel@tonic-gate lvm \ 4307c478bd9Sstevel@tonic-gate openssl \ 4317c478bd9Sstevel@tonic-gate pkcs11 \ 4327c478bd9Sstevel@tonic-gate passwdutil \ 4337c478bd9Sstevel@tonic-gate ../cmd/sendmail/libmilter \ 4347c478bd9Sstevel@tonic-gate fm \ 4357c478bd9Sstevel@tonic-gate udapl \ 4368200fe25Srmesta libmapid \ 43710db1377Sgtb libkrb5 \ 4386185db85Sdougm libshare \ 439c5c4113dSnw141292 libidmap \ 440911106dfSjm199354 libvscan \ 441da6c28aaSamw smbsrv \ 442275c9da8Seschrock scsi \ 4437c478bd9Sstevel@tonic-gate $($(MACH)_HDRSUBDIRS) 4447c478bd9Sstevel@tonic-gate 445fb9f9b97Skupfer$(CLOSED_BUILD)HDRSUBDIRS += \ 446fb9f9b97Skupfer $(CLOSED)/lib/libc_i18n \ 447fb9f9b97Skupfer $(CLOSED)/lib/libike \ 44869987563Ssabdar $(CLOSED)/lib/libndmp \ 449fb9f9b97Skupfer $(CLOSED)/lib/smartcard 450fb9f9b97Skupfer 4517c478bd9Sstevel@tonic-gatesparc_HDRSUBDIRS= \ 452*30588217SMike Christensen libds \ 45325cf1a30Sjl139090 libdscp \ 454a83cadceSkm84432 libpri 4557c478bd9Sstevel@tonic-gate 4567c478bd9Sstevel@tonic-gateall := TARGET= all 4577c478bd9Sstevel@tonic-gatecheck := TARGET= check 4587c478bd9Sstevel@tonic-gateclean := TARGET= clean 4597c478bd9Sstevel@tonic-gateclobber := TARGET= clobber 4607c478bd9Sstevel@tonic-gateinstall := TARGET= install 4617c478bd9Sstevel@tonic-gateinstall_h := TARGET= install_h 4627c478bd9Sstevel@tonic-gatelint := TARGET= lint 4637c478bd9Sstevel@tonic-gate_dc := TARGET= _dc 4647c478bd9Sstevel@tonic-gate_msg := TARGET= _msg 4657c478bd9Sstevel@tonic-gate 4667c478bd9Sstevel@tonic-gate.KEEP_STATE: 4677c478bd9Sstevel@tonic-gate 4687c478bd9Sstevel@tonic-gate# 4697c478bd9Sstevel@tonic-gate# For the all and install targets, we clearly must respect library 4707c478bd9Sstevel@tonic-gate# dependencies so that the libraries link correctly. However, for 4717c478bd9Sstevel@tonic-gate# the remaining targets (check, clean, clobber, install_h, lint, _dc 4727c478bd9Sstevel@tonic-gate# and _msg), libraries do not have any dependencies on one another 4737c478bd9Sstevel@tonic-gate# and thus respecting dependencies just slows down the build. 4747c478bd9Sstevel@tonic-gate# As such, for these rules, we use pattern replacement to explicitly 4757c478bd9Sstevel@tonic-gate# avoid triggering the dependency information. Note that for clean, 4767c478bd9Sstevel@tonic-gate# clobber and lint, we must use $(NOWAIT_SUBDIRS) rather than 4777c478bd9Sstevel@tonic-gate# $(SUBDIRS), to prevent `.WAIT' from expanding to `.WAIT-nodepend'. 4787c478bd9Sstevel@tonic-gate# 4797c478bd9Sstevel@tonic-gate 4807c478bd9Sstevel@tonic-gateall: $(SUBDIRS) 4817c478bd9Sstevel@tonic-gate 4827c478bd9Sstevel@tonic-gateinstall: $(SUBDIRS) .WAIT install_extra 4837c478bd9Sstevel@tonic-gate 4847c478bd9Sstevel@tonic-gate# extra libraries kept in other source areas 4857c478bd9Sstevel@tonic-gateinstall_extra: 4867c478bd9Sstevel@tonic-gate @cd ../cmd/sgs; pwd; $(MAKE) install_lib 4877c478bd9Sstevel@tonic-gate @pwd 4887c478bd9Sstevel@tonic-gate 4897c478bd9Sstevel@tonic-gateclean clobber lint: $(NOWAIT_SUBDIRS:%=%-nodepend) 4907c478bd9Sstevel@tonic-gate 4917c478bd9Sstevel@tonic-gateinstall_h check: $(HDRSUBDIRS:%=%-nodepend) 4927c478bd9Sstevel@tonic-gate 4937c478bd9Sstevel@tonic-gate_msg: $(MSGSUBDIRS:%=%-nodepend) .WAIT _dc 4947c478bd9Sstevel@tonic-gate 4957c478bd9Sstevel@tonic-gate_dc: $(DCSUBDIRS:%=%-nodepend) 4967c478bd9Sstevel@tonic-gate 497fb9f9b97Skupfer# dependencies for pam_modules (see below) 498fb9f9b97Skupfer$(CLOSED_BUILD)SMARTCARD= $(CLOSED)/lib/smartcard 499fb9f9b97Skupfer 5007c478bd9Sstevel@tonic-gate# 5017c478bd9Sstevel@tonic-gate# Library interdependencies are called out explicitly here 5027c478bd9Sstevel@tonic-gate# 5037c478bd9Sstevel@tonic-gateauditd_plugins: libbsm libnsl libsecdb 5047c478bd9Sstevel@tonic-gategss_mechs/mech_krb5: libgss libnsl libsocket libresolv pkcs11 5057c478bd9Sstevel@tonic-gatelibadt_jni: libbsm 506fb9f9b97Skupfer$(CLOSED_BUILD)libc: $(CLOSED)/lib/libc_i18n 507da2e3ebdSchinlibast: libsocket 50845916cd2Sjpklibbsm: libtsol 509da2e3ebdSchinlibcmd: libast libsocket libnsl 5107c478bd9Sstevel@tonic-gatelibcmdutils: libavl 5117c478bd9Sstevel@tonic-gatelibcontract: libnvpair 5127c478bd9Sstevel@tonic-gatelibdevid: libdevinfo 513fa9e4066Sahrenslibdevinfo: libnvpair libsec 5144ee71a50Scarlsonjlibdhcpagent: libsocket libdhcputil libuuid libdlpi 5157c478bd9Sstevel@tonic-gatelibdhcpsvc: libinetutil 5164ee71a50Scarlsonjlibdhcputil: libnsl libgen libinetutil libdlpi 517d62bc4baSyz147064libdladm: libdevinfo libinetutil libsocket 518da2e3ebdSchinlibdll: libast 519d62bc4baSyz147064libdlpi: libinetutil libdladm 5207c478bd9Sstevel@tonic-gatelibdtrace: libproc libgen libctf 521fb3fb4f3Stomeelibdtrace_jni: libuutil libdtrace 5227c478bd9Sstevel@tonic-gatelibefi: libuuid 5230e42dee6Sartemlibfstyp: libnvpair 524df8bdeb3Sjohnzlibelfsign: libcryptoutil libkmf 525c5c4113dSnw141292libidmap: libnsl 526d62bc4baSyz147064libinetcfg: libnsl libsocket libdlpi 52799ebb4caSwyllyslibkmf: libcryptoutil pkcs11 openssl 5287c478bd9Sstevel@tonic-gatelibnsl: libmd5 libscf 52906e1a714Sraflibmapid: libresolv 530b00044a2SJames Carlsonlibnwam: libdoor 531d62bc4baSyz147064libuuid: libdlpi 5327c478bd9Sstevel@tonic-gatelibinetutil: libsocket 53306e1a714Sraflibsecdb: libnsl 534734b6a94Sdarrenmlibsasl: libgss libsocket pkcs11 libmd 5357c478bd9Sstevel@tonic-gatesasl_plugins: pkcs11 libgss libsocket libsasl 5367c478bd9Sstevel@tonic-gatelibsctp: libsocket 537da2e3ebdSchinlibshell: libast libcmd libdll libsocket libsecdb 53840cb5e5dSvi117747libsip: libmd5 5394bff34e3Sthurlowlibsmbfs: libsocket libnsl libkrb5 5407c478bd9Sstevel@tonic-gatelibsocket: libnsl 541734b6a94Sdarrenmlibldap5: libsasl libsocket libnsl libmd 542e1dd0a2fSth160488libsldap: libldap5 libtsol libnsl libc libscf libresolv 5437c478bd9Sstevel@tonic-gatelibpool: libnvpair libexacct 544da2e3ebdSchinlibpp: libast 5459acbbeafSnn35248libzonecfg: libc libsocket libnsl libuuid libnvpair libsysevent libsec \ 5460209230bSgjelinek libbrand libpool libscf 547c6e80875Srablibproc: ../cmd/sgs/librtld_db ../cmd/sgs/libelf libctf 5487c478bd9Sstevel@tonic-gatelibproject: libpool libproc libsecdb 54945916cd2Sjpklibtsnet: libnsl libtsol libsecdb 5507c478bd9Sstevel@tonic-gatelibwrap: libnsl libsocket 5517c478bd9Sstevel@tonic-gatelibwanboot: libnvpair libresolv libnsl libsocket libdevinfo libinetutil \ 5527c478bd9Sstevel@tonic-gate libdhcputil openssl 5537c478bd9Sstevel@tonic-gatelibwanbootutil: libnsl 554da6c28aaSamwpam_modules: libproject passwdutil $(SMARTCARD) smbsrv 555853de45fSdh155122libscf: libuutil libmd libgen 5567c478bd9Sstevel@tonic-gatelibinetsvc: libscf 5577c478bd9Sstevel@tonic-gatelibrestart: libuutil libscf 5587c478bd9Sstevel@tonic-gate../cmd/sgs/libdl: ../cmd/sgs/libconv 5597c478bd9Sstevel@tonic-gate../cmd/sgs/libelf: ../cmd/sgs/libconv 5607c478bd9Sstevel@tonic-gatepkcs11: libcryptoutil 5617c478bd9Sstevel@tonic-gateprint: libldap5 5627c478bd9Sstevel@tonic-gateudapl/udapl_tavor: udapl/libdat 563f3861e1aSahllibzfs: libdevinfo libdevid libgen libnvpair libuutil libiscsitgt 564fa9e4066Sahrenslibzfs_jni: libdiskmgt libnvpair libzfs 565fa9e4066Sahrenslibzpool: libavl libumem libnvpair 5663eb3c573Smarkslibsec: libavl 5679acbbeafSnn35248brand: libc libsocket 5684bff34e3Sthurlowlibshare: libscf libzfs libuuid libfsmgt libsecdb libumem libsmbfs 569853de45fSdh155122libexacct/demo: libexacct libproject libsocket libnsl 5704a6822d0Swillardlibtsalarm: libpcp 571da6c28aaSamwsmbsrv: libsocket libnsl libmd libxnet libpthread librt \ 572dc20a302Sas200622 libshare libidmap pkcs11 libsqlite 573911106dfSjm199354libvscan: libscf 574275c9da8Seschrockscsi: libnvpair 5757c478bd9Sstevel@tonic-gate 5767c478bd9Sstevel@tonic-gate# 5777c478bd9Sstevel@tonic-gate# The reason this rule checks for the existence of the 5787c478bd9Sstevel@tonic-gate# Makefile is that some of the directories do not exist 579fb9f9b97Skupfer# in certain situations (e.g., exportable source builds, 580fb9f9b97Skupfer# OpenSolaris). 5817c478bd9Sstevel@tonic-gate# 582f808c858Sraf$(SUBDIRS): FRC 5837c478bd9Sstevel@tonic-gate @if [ -f $@/Makefile ]; then \ 5847c478bd9Sstevel@tonic-gate cd $@; pwd; $(MAKE) $(TARGET); \ 5857c478bd9Sstevel@tonic-gate else \ 5867c478bd9Sstevel@tonic-gate true; \ 5877c478bd9Sstevel@tonic-gate fi 5887c478bd9Sstevel@tonic-gate 589f808c858Sraf$(SUBDIRS:%=%-nodepend): 5907c478bd9Sstevel@tonic-gate @if [ -f $(@:%-nodepend=%)/Makefile ]; then \ 5917c478bd9Sstevel@tonic-gate cd $(@:%-nodepend=%); pwd; $(MAKE) $(TARGET); \ 5927c478bd9Sstevel@tonic-gate else \ 5937c478bd9Sstevel@tonic-gate true; \ 5947c478bd9Sstevel@tonic-gate fi 5957c478bd9Sstevel@tonic-gate 5967c478bd9Sstevel@tonic-gateFRC: 597