1 #
   2 # CDDL HEADER START
   3 #
   4 # The contents of this file are subject to the terms of the
   5 # Common Development and Distribution License (the "License").
   6 # You may not use this file except in compliance with the License.
   7 #
   8 # You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
   9 # or http://www.opensolaris.org/os/licensing.
  10 # See the License for the specific language governing permissions
  11 # and limitations under the License.
  12 #
  13 # When distributing Covered Code, include this CDDL HEADER in each
  14 # file and include the License file at usr/src/OPENSOLARIS.LICENSE.
  15 # If applicable, add the following below this CDDL HEADER, with the
  16 # fields enclosed by brackets "[]" replaced with your own identifying
  17 # information: Portions Copyright [yyyy] [name of copyright owner]
  18 #
  19 # CDDL HEADER END
  20 #
  21 
  22 #
  23 # Copyright (c) 2003, 2010, Oracle and/or its affiliates. All rights reserved.
  24 # Copyright (c) 2012 by Delphix. All rights reserved.
  25 # Copyright 2015 Garrett D'Amore <garrett@damore.org>
  26 # Copyright 2016 Nexenta Systems, Inc.
  27 #
  28 
  29 # include global definitions
  30 include Makefile.master
  31 
  32 #
  33 # As pieces are made lint-clean, add them here so the nightly build
  34 # can be used to keep them that way.
  35 #
  36 COMMON_SUBDIRS = \
  37         cmd/acctadm \
  38         cmd/asa \
  39         cmd/amt \
  40         cmd/audio/audioctl \
  41         cmd/audio/audiotest \
  42         cmd/audit \
  43         cmd/auditconfig \
  44         cmd/auditd \
  45         cmd/auditreduce \
  46         cmd/auditstat \
  47         cmd/auths \
  48         cmd/autopush \
  49         cmd/availdevs \
  50         cmd/avs \
  51         cmd/awk \
  52         cmd/banner \
  53         cmd/bart \
  54         cmd/basename \
  55         cmd/bdiff \
  56         cmd/busstat \
  57         cmd/boot \
  58         cmd/cal \
  59         cmd/captoinfo \
  60         cmd/cat \
  61         cmd/cdrw \
  62         cmd/cfgadm \
  63         cmd/checkeq \
  64         cmd/checknr \
  65         cmd/chgrp \
  66         cmd/chmod \
  67         cmd/chown \
  68         cmd/chroot \
  69         cmd/clinfo \
  70         cmd/cmd-crypto \
  71         cmd/cmd-inet/lib \
  72         cmd/cmd-inet/lib/netcfgd \
  73         cmd/cmd-inet/lib/nwamd \
  74         cmd/cmd-inet/sbin \
  75         cmd/cmd-inet/usr.bin \
  76         cmd/cmd-inet/usr.lib/bridged \
  77         cmd/cmd-inet/usr.lib/ilbd \
  78         cmd/cmd-inet/usr.lib/in.mpathd \
  79         cmd/cmd-inet/usr.lib/in.ndpd \
  80         cmd/cmd-inet/usr.lib/inetd \
  81         cmd/cmd-inet/usr.lib/pppoe \
  82         cmd/cmd-inet/usr.lib/slpd \
  83         cmd/cmd-inet/usr.lib/vrrpd \
  84         cmd/cmd-inet/usr.lib/wpad \
  85         cmd/cmd-inet/usr.lib/wanboot \
  86         cmd/cmd-inet/usr.sadm \
  87         cmd/cmd-inet/usr.sbin \
  88         cmd/cmd-inet/usr.sbin/ilbadm \
  89         cmd/cmd-inet/usr.sbin/nwamadm \
  90         cmd/cmd-inet/usr.sbin/nwamcfg \
  91         cmd/col \
  92         cmd/compress \
  93         cmd/consadm \
  94         cmd/coreadm \
  95         cmd/cpc \
  96         cmd/cpio \
  97         cmd/crypt \
  98         cmd/csplit \
  99         cmd/ctrun \
 100         cmd/ctstat \
 101         cmd/ctwatch \
 102         cmd/date \
 103         cmd/dd \
 104         cmd/deroff \
 105         cmd/devctl \
 106         cmd/devfsadm \
 107         cmd/devinfo \
 108         cmd/devmgmt \
 109         cmd/devprop \
 110         cmd/dfs.cmds \
 111         cmd/diff3 \
 112         cmd/dis \
 113         cmd/dirname \
 114         cmd/diskscan \
 115         cmd/dispadmin \
 116         cmd/dladm \
 117         cmd/dlmgmtd \
 118         cmd/dtrace \
 119         cmd/du \
 120         cmd/dumpadm \
 121         cmd/dumpcs \
 122         cmd/echo \
 123         cmd/eject \
 124         cmd/emul64ioctl \
 125         cmd/env \
 126         cmd/expand \
 127         cmd/fcinfo \
 128         cmd/fdetach \
 129         cmd/fdformat \
 130         cmd/fdisk \
 131         cmd/file \
 132         cmd/find \
 133         cmd/fmthard \
 134         cmd/fmtmsg \
 135         cmd/fold \
 136         cmd/fm \
 137         cmd/format \
 138         cmd/fs.d/fd \
 139         cmd/fs.d/lofs/mount \
 140         cmd/fs.d/mntfs \
 141         cmd/fs.d/pcfs/mount \
 142         cmd/fs.d/proc \
 143         cmd/fs.d/tmpfs \
 144         cmd/fs.d/udfs/mount \
 145         cmd/fs.d/ufs/mount \
 146         cmd/fs.d/ufs/fsirand\
 147         cmd/fs.d/zfs/fstyp \
 148         cmd/fwflash \
 149         cmd/fuser \
 150         cmd/gcore \
 151         cmd/genmsg \
 152         cmd/getconf \
 153         cmd/getdevpolicy \
 154         cmd/getfacl \
 155         cmd/getopt \
 156         cmd/gettext \
 157         cmd/grep \
 158         cmd/groups \
 159         cmd/halt \
 160         cmd/head \
 161         cmd/hostid \
 162         cmd/hostname \
 163         cmd/hotplug \
 164         cmd/hotplugd \
 165         cmd/idmap \
 166         cmd/init \
 167         cmd/intrstat \
 168         cmd/ipcrm \
 169         cmd/ipcs \
 170         cmd/isaexec \
 171         cmd/isalist \
 172         cmd/iscsiadm \
 173         cmd/iscsid \
 174         cmd/iscsitsvc \
 175         cmd/isns \
 176         cmd/itadm \
 177         cmd/kbd \
 178         cmd/killall \
 179         cmd/ldap \
 180         cmd/last \
 181         cmd/lastcomm \
 182         cmd/ldapcachemgr \
 183         cmd/line \
 184         cmd/link \
 185         cmd/locator \
 186         cmd/localedef \
 187         cmd/lockstat \
 188         cmd/lofiadm \
 189         cmd/logadm \
 190         cmd/logger \
 191         cmd/login \
 192         cmd/logins \
 193         cmd/ls \
 194         cmd/luxadm \
 195         cmd/mailwrapper \
 196         cmd/makekey \
 197         cmd/mdb \
 198         cmd/mesg \
 199         cmd/mkdir \
 200         cmd/mkfifo \
 201         cmd/mkfile \
 202         cmd/mkmsgs \
 203         cmd/mknod \
 204         cmd/mpathadm \
 205         cmd/modload \
 206         cmd/msgfmt \
 207         cmd/msgid \
 208         cmd/mt \
 209         cmd/mv \
 210         cmd/ndmpadm \
 211         cmd/ndmpd \
 212         cmd/ndmpstat \
 213         cmd/newform \
 214         cmd/newgrp \
 215         cmd/newtask \
 216         cmd/nice \
 217         cmd/nl \
 218         cmd/nohup \
 219         cmd/nscd \
 220         cmd/od \
 221         cmd/pagesize \
 222         cmd/passwd \
 223         cmd/pathchk \
 224         cmd/pbind \
 225         cmd/pcidr \
 226         cmd/pcitool \
 227         cmd/pfexec \
 228         cmd/pgrep \
 229         cmd/picl/picld \
 230         cmd/picl/prtpicl \
 231         cmd/plockstat \
 232         cmd/pools \
 233         cmd/power \
 234         cmd/powertop \
 235         cmd/printf \
 236         cmd/latencytop \
 237         cmd/ppgsz \
 238         cmd/praudit \
 239         cmd/prctl \
 240         cmd/priocntl \
 241         cmd/profiles \
 242         cmd/prstat \
 243         cmd/prtconf \
 244         cmd/prtdiag \
 245         cmd/prtvtoc \
 246         cmd/ps \
 247         cmd/psradm \
 248         cmd/psrinfo \
 249         cmd/psrset \
 250         cmd/ptools \
 251         cmd/pwck \
 252         cmd/pwconv \
 253         cmd/ramdiskadm \
 254         cmd/raidctl \
 255         cmd/rcap \
 256         cmd/rcm_daemon \
 257         cmd/rctladm \
 258         cmd/renice \
 259         cmd/rm \
 260         cmd/rmdir \
 261         cmd/rmformat \
 262         cmd/rmt \
 263         cmd/roles \
 264         cmd/rpcgen \
 265         cmd/rpcsvc/rpc.bootparamd \
 266         cmd/runat \
 267         cmd/savecore \
 268         cmd/sbdadm \
 269         cmd/sdpadm \
 270         cmd/sed \
 271         cmd/setpgrp \
 272         cmd/smbios \
 273         cmd/sgs \
 274         cmd/smbsrv \
 275         cmd/smserverd \
 276         cmd/sort \
 277         cmd/split \
 278         cmd/srptadm \
 279         cmd/srptsvc \
 280         cmd/stat \
 281         cmd/stmfadm \
 282         cmd/stmfsvc \
 283         cmd/stmsboot \
 284         cmd/streams/strcmd \
 285         cmd/strings \
 286         cmd/su \
 287         cmd/sulogin \
 288         cmd/svc \
 289         cmd/swap \
 290         cmd/sync \
 291         cmd/syseventadm \
 292         cmd/syseventd \
 293         cmd/syslogd \
 294         cmd/tabs \
 295         cmd/tail \
 296         cmd/th_tools \
 297         cmd/tip \
 298         cmd/touch \
 299         cmd/tr \
 300         cmd/truss \
 301         cmd/tty \
 302         cmd/tzreload \
 303         cmd/uadmin \
 304         cmd/ul \
 305         cmd/userattr \
 306         cmd/users \
 307         cmd/utmp_update \
 308         cmd/utmpd \
 309         cmd/valtools \
 310         cmd/vrrpadm \
 311         cmd/vt \
 312         cmd/wall \
 313         cmd/who \
 314         cmd/whodo \
 315         cmd/wracct \
 316         cmd/xargs \
 317         cmd/xstr \
 318         cmd/yes \
 319         cmd/yppasswd \
 320         cmd/zdb \
 321         cmd/zdump \
 322         cmd/zfs \
 323         cmd/zhack \
 324         cmd/zinject \
 325         cmd/zlogin \
 326         cmd/zoneadm \
 327         cmd/zoneadmd \
 328         cmd/zonecfg \
 329         cmd/zonename \
 330         cmd/zpool \
 331         cmd/zlook \
 332         cmd/ztest \
 333         lib/abi \
 334         lib/auditd_plugins \
 335         lib/libbe \
 336         lib/pylibbe \
 337         lib/brand/sn1 \
 338         lib/brand/solaris10 \
 339         lib/crypt_modules \
 340         lib/extendedFILE \
 341         lib/libadm \
 342         lib/libadutils \
 343         lib/libadt_jni \
 344         lib/libaio \
 345         lib/libavl \
 346         lib/libbrand \
 347         lib/libbsdmalloc \
 348         lib/libbsm \
 349         lib/libc \
 350         lib/libc_db \
 351         lib/libcfgadm \
 352         lib/libcmdutils \
 353         lib/libcommputil \
 354         lib/libcontract \
 355         lib/libcryptoutil \
 356         lib/libctf \
 357         lib/libdevice \
 358         lib/libdevid \
 359         lib/libdevinfo \
 360         lib/libdhcpagent \
 361         lib/libdhcputil \
 362         lib/libdisasm \
 363         lib/libdiskmgt \
 364         lib/libdladm \
 365         lib/libdlpi \
 366         lib/libdoor \
 367         lib/libdscfg \
 368         lib/libdtrace \
 369         lib/libefi \
 370         lib/libelfsign \
 371         lib/libexacct \
 372         lib/libfcoe \
 373         lib/libgen \
 374         lib/libgrubmgmt \
 375         lib/libgss \
 376         lib/libhotplug \
 377         lib/libidmap \
 378         lib/libilb \
 379         lib/libinetsvc \
 380         lib/libinetutil \
 381         lib/libinstzones \
 382         lib/libipadm \
 383         lib/libipmi \
 384         lib/libipmp \
 385         lib/libipp \
 386         lib/libipsecutil \
 387         lib/libiscsit \
 388         lib/libkmf \
 389         lib/libkstat \
 390         lib/liblgrp \
 391         lib/liblm \
 392         lib/libm \
 393         lib/libm1 \
 394         lib/libmvec \
 395         lib/libmalloc \
 396         lib/libmapmalloc \
 397         lib/libmapid \
 398         lib/libmd \
 399         lib/libmp \
 400         lib/libmtmalloc \
 401         lib/libndmp \
 402         lib/libnsctl \
 403         lib/libnsl \
 404         lib/libnvpair \
 405         lib/libnwam \
 406         lib/libpam \
 407         lib/libpctx \
 408         lib/libpicl \
 409         lib/libpicltree \
 410         lib/libpkg \
 411         lib/libpool \
 412         lib/libproc \
 413         lib/libpthread \
 414         lib/libraidcfg \
 415         lib/librcm \
 416         lib/librdc \
 417         lib/libreparse \
 418         lib/librestart \
 419         lib/librstp \
 420         lib/librt \
 421         lib/libscf \
 422         lib/libsec \
 423         lib/libsecdb \
 424         lib/libsendfile \
 425         lib/libsip \
 426         lib/libshare \
 427         lib/libsldap \
 428         lib/libslp \
 429         lib/libsmbfs \
 430         lib/libsmbios \
 431         lib/libsmedia \
 432         lib/libsrpt \
 433         lib/libstmf \
 434         lib/libsun_ima \
 435         lib/libsysevent \
 436         lib/libthread \
 437         lib/libtsnet \
 438         lib/libtsol \
 439         lib/libumem \
 440         lib/libunistat \
 441         lib/libuuid \
 442         lib/libuutil \
 443         lib/libvrrpadm \
 444         lib/libwanboot \
 445         lib/libwanbootutil \
 446         lib/libxnet \
 447         lib/libzfs \
 448         lib/libzfs_jni \
 449         lib/libzonecfg \
 450         lib/libzoneinfo \
 451         lib/madv \
 452         lib/mpss \
 453         lib/nametoaddr \
 454         lib/ncad_addr \
 455         lib/nsswitch \
 456         lib/pam_modules \
 457         lib/passwdutil \
 458         lib/pkcs11 \
 459         lib/print \
 460         lib/raidcfg_plugins \
 461         lib/scsi \
 462         lib/smbsrv \
 463         lib/fm \
 464         lib/udapl \
 465         lib/watchmalloc \
 466         psm \
 467         test \
 468         ucbcmd/basename \
 469         ucbcmd/biff \
 470         ucbcmd/echo \
 471         ucbcmd/groups \
 472         ucbcmd/mkstr \
 473         ucbcmd/printenv \
 474         ucbcmd/sum \
 475         ucbcmd/test \
 476         ucbcmd/users \
 477         ucbcmd/whoami
 478 
 479 i386_SUBDIRS= \
 480         cmd/acpihpd \
 481         cmd/biosdev \
 482         cmd/rtc \
 483         cmd/ucodeadm \
 484         lib/cfgadm_plugins/sata \
 485         lib/cfgadm_plugins/sbd \
 486         lib/libfdisk
 487 
 488 sparc_SUBDIRS= \
 489         cmd/datadm \
 490         cmd/dcs \
 491         cmd/drd \
 492         cmd/fruadm \
 493         cmd/ldmad \
 494         cmd/prtdscp \
 495         cmd/prtfru \
 496         cmd/sckmd \
 497         cmd/virtinfo \
 498         cmd/vntsd \
 499         lib/libds \
 500         lib/libdscp \
 501         lib/libpri \
 502         lib/libpcp \
 503         lib/libtsalarm \
 504         lib/libv12n \
 505         lib/storage \
 506         stand
 507 
 508 LINTSUBDIRS= $(COMMON_SUBDIRS) $($(MACH)_SUBDIRS)
 509 
 510 .PARALLEL:      $(LINTSUBDIRS)
 511 
 512 lint:           uts .WAIT subdirs
 513 
 514 subdirs:        $(LINTSUBDIRS)
 515 
 516 uts $(LINTSUBDIRS):     FRC
 517         @cd $@; pwd; $(MAKE) lint
 518 
 519 FRC: