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/fgrep \
 132         cmd/file \
 133         cmd/find \
 134         cmd/fmthard \
 135         cmd/fmtmsg \
 136         cmd/fold \
 137         cmd/fm \
 138         cmd/format \
 139         cmd/fs.d/fd \
 140         cmd/fs.d/lofs/mount \
 141         cmd/fs.d/mntfs \
 142         cmd/fs.d/pcfs/mount \
 143         cmd/fs.d/proc \
 144         cmd/fs.d/tmpfs \
 145         cmd/fs.d/udfs/mount \
 146         cmd/fs.d/ufs/mount \
 147         cmd/fs.d/ufs/fsirand\
 148         cmd/fs.d/zfs/fstyp \
 149         cmd/fwflash \
 150         cmd/fuser \
 151         cmd/gcore \
 152         cmd/genmsg \
 153         cmd/getconf \
 154         cmd/getdevpolicy \
 155         cmd/getfacl \
 156         cmd/getopt \
 157         cmd/gettext \
 158         cmd/grep \
 159         cmd/grep_xpg4 \
 160         cmd/groups \
 161         cmd/halt \
 162         cmd/head \
 163         cmd/hostid \
 164         cmd/hostname \
 165         cmd/hotplug \
 166         cmd/hotplugd \
 167         cmd/idmap \
 168         cmd/init \
 169         cmd/intrstat \
 170         cmd/ipcrm \
 171         cmd/ipcs \
 172         cmd/isaexec \
 173         cmd/isalist \
 174         cmd/iscsiadm \
 175         cmd/iscsid \
 176         cmd/iscsitsvc \
 177         cmd/isns \
 178         cmd/itadm \
 179         cmd/kbd \
 180         cmd/killall \
 181         cmd/ldap \
 182         cmd/last \
 183         cmd/lastcomm \
 184         cmd/ldapcachemgr \
 185         cmd/line \
 186         cmd/link \
 187         cmd/locator \
 188         cmd/localedef \
 189         cmd/lockstat \
 190         cmd/lofiadm \
 191         cmd/logadm \
 192         cmd/logger \
 193         cmd/login \
 194         cmd/logins \
 195         cmd/ls \
 196         cmd/luxadm \
 197         cmd/mailwrapper \
 198         cmd/makekey \
 199         cmd/mdb \
 200         cmd/mesg \
 201         cmd/mkdir \
 202         cmd/mkfifo \
 203         cmd/mkfile \
 204         cmd/mkmsgs \
 205         cmd/mknod \
 206         cmd/mpathadm \
 207         cmd/modload \
 208         cmd/msgfmt \
 209         cmd/msgid \
 210         cmd/mt \
 211         cmd/mv \
 212         cmd/ndmpadm \
 213         cmd/ndmpd \
 214         cmd/ndmpstat \
 215         cmd/newform \
 216         cmd/newgrp \
 217         cmd/newtask \
 218         cmd/nice \
 219         cmd/nl \
 220         cmd/nohup \
 221         cmd/nscd \
 222         cmd/od \
 223         cmd/pagesize \
 224         cmd/passwd \
 225         cmd/pathchk \
 226         cmd/pbind \
 227         cmd/pcidr \
 228         cmd/pcitool \
 229         cmd/pfexec \
 230         cmd/pgrep \
 231         cmd/picl/picld \
 232         cmd/picl/prtpicl \
 233         cmd/plockstat \
 234         cmd/pools \
 235         cmd/power \
 236         cmd/powertop \
 237         cmd/printf \
 238         cmd/latencytop \
 239         cmd/ppgsz \
 240         cmd/praudit \
 241         cmd/prctl \
 242         cmd/priocntl \
 243         cmd/profiles \
 244         cmd/prstat \
 245         cmd/prtconf \
 246         cmd/prtdiag \
 247         cmd/prtvtoc \
 248         cmd/ps \
 249         cmd/psradm \
 250         cmd/psrinfo \
 251         cmd/psrset \
 252         cmd/ptools \
 253         cmd/pwck \
 254         cmd/pwconv \
 255         cmd/ramdiskadm \
 256         cmd/raidctl \
 257         cmd/rcap \
 258         cmd/rcm_daemon \
 259         cmd/rctladm \
 260         cmd/renice \
 261         cmd/rm \
 262         cmd/rmdir \
 263         cmd/rmformat \
 264         cmd/rmt \
 265         cmd/roles \
 266         cmd/rpcgen \
 267         cmd/rpcsvc/rpc.bootparamd \
 268         cmd/runat \
 269         cmd/savecore \
 270         cmd/sbdadm \
 271         cmd/sdpadm \
 272         cmd/sed \
 273         cmd/setpgrp \
 274         cmd/smbios \
 275         cmd/sgs \
 276         cmd/smbsrv \
 277         cmd/smserverd \
 278         cmd/sort \
 279         cmd/split \
 280         cmd/srptadm \
 281         cmd/srptsvc \
 282         cmd/stat \
 283         cmd/stmfadm \
 284         cmd/stmfsvc \
 285         cmd/stmsboot \
 286         cmd/streams/strcmd \
 287         cmd/strings \
 288         cmd/su \
 289         cmd/sulogin \
 290         cmd/svc \
 291         cmd/swap \
 292         cmd/sync \
 293         cmd/syseventadm \
 294         cmd/syseventd \
 295         cmd/syslogd \
 296         cmd/tabs \
 297         cmd/tail \
 298         cmd/th_tools \
 299         cmd/tip \
 300         cmd/touch \
 301         cmd/tr \
 302         cmd/truss \
 303         cmd/tty \
 304         cmd/tzreload \
 305         cmd/uadmin \
 306         cmd/ul \
 307         cmd/userattr \
 308         cmd/users \
 309         cmd/utmp_update \
 310         cmd/utmpd \
 311         cmd/valtools \
 312         cmd/vrrpadm \
 313         cmd/vt \
 314         cmd/wall \
 315         cmd/who \
 316         cmd/whodo \
 317         cmd/wracct \
 318         cmd/xargs \
 319         cmd/xstr \
 320         cmd/yes \
 321         cmd/yppasswd \
 322         cmd/zdb \
 323         cmd/zdump \
 324         cmd/zfs \
 325         cmd/zhack \
 326         cmd/zinject \
 327         cmd/zlogin \
 328         cmd/zoneadm \
 329         cmd/zoneadmd \
 330         cmd/zonecfg \
 331         cmd/zonename \
 332         cmd/zpool \
 333         cmd/zlook \
 334         cmd/ztest \
 335         lib/abi \
 336         lib/auditd_plugins \
 337         lib/libbe \
 338         lib/pylibbe \
 339         lib/brand/sn1 \
 340         lib/brand/solaris10 \
 341         lib/crypt_modules \
 342         lib/extendedFILE \
 343         lib/libadm \
 344         lib/libadutils \
 345         lib/libadt_jni \
 346         lib/libaio \
 347         lib/libavl \
 348         lib/libbrand \
 349         lib/libbsdmalloc \
 350         lib/libbsm \
 351         lib/libc \
 352         lib/libc_db \
 353         lib/libcfgadm \
 354         lib/libcmdutils \
 355         lib/libcommputil \
 356         lib/libcontract \
 357         lib/libcryptoutil \
 358         lib/libctf \
 359         lib/libdevice \
 360         lib/libdevid \
 361         lib/libdevinfo \
 362         lib/libdhcpagent \
 363         lib/libdhcputil \
 364         lib/libdisasm \
 365         lib/libdiskmgt \
 366         lib/libdladm \
 367         lib/libdlpi \
 368         lib/libdoor \
 369         lib/libdscfg \
 370         lib/libdtrace \
 371         lib/libefi \
 372         lib/libelfsign \
 373         lib/libexacct \
 374         lib/libfcoe \
 375         lib/libgen \
 376         lib/libgrubmgmt \
 377         lib/libgss \
 378         lib/libhotplug \
 379         lib/libidmap \
 380         lib/libilb \
 381         lib/libinetsvc \
 382         lib/libinetutil \
 383         lib/libinstzones \
 384         lib/libipadm \
 385         lib/libipmi \
 386         lib/libipmp \
 387         lib/libipp \
 388         lib/libipsecutil \
 389         lib/libiscsit \
 390         lib/libkmf \
 391         lib/libkstat \
 392         lib/liblgrp \
 393         lib/liblm \
 394         lib/libm \
 395         lib/libm1 \
 396         lib/libmvec \
 397         lib/libmalloc \
 398         lib/libmapmalloc \
 399         lib/libmapid \
 400         lib/libmd \
 401         lib/libmp \
 402         lib/libmtmalloc \
 403         lib/libndmp \
 404         lib/libnsctl \
 405         lib/libnsl \
 406         lib/libnvpair \
 407         lib/libnwam \
 408         lib/libpam \
 409         lib/libpctx \
 410         lib/libpicl \
 411         lib/libpicltree \
 412         lib/libpkg \
 413         lib/libpool \
 414         lib/libproc \
 415         lib/libpthread \
 416         lib/libraidcfg \
 417         lib/librcm \
 418         lib/librdc \
 419         lib/libreparse \
 420         lib/librestart \
 421         lib/librstp \
 422         lib/librt \
 423         lib/libscf \
 424         lib/libsec \
 425         lib/libsecdb \
 426         lib/libsendfile \
 427         lib/libsip \
 428         lib/libshare \
 429         lib/libsldap \
 430         lib/libslp \
 431         lib/libsmbfs \
 432         lib/libsmbios \
 433         lib/libsmedia \
 434         lib/libsrpt \
 435         lib/libstmf \
 436         lib/libsun_ima \
 437         lib/libsysevent \
 438         lib/libthread \
 439         lib/libtsnet \
 440         lib/libtsol \
 441         lib/libumem \
 442         lib/libunistat \
 443         lib/libuuid \
 444         lib/libuutil \
 445         lib/libvrrpadm \
 446         lib/libwanboot \
 447         lib/libwanbootutil \
 448         lib/libxnet \
 449         lib/libzfs \
 450         lib/libzfs_jni \
 451         lib/libzonecfg \
 452         lib/libzoneinfo \
 453         lib/madv \
 454         lib/mpss \
 455         lib/nametoaddr \
 456         lib/ncad_addr \
 457         lib/nsswitch \
 458         lib/pam_modules \
 459         lib/passwdutil \
 460         lib/pkcs11 \
 461         lib/print \
 462         lib/raidcfg_plugins \
 463         lib/scsi \
 464         lib/smbsrv \
 465         lib/fm \
 466         lib/udapl \
 467         lib/watchmalloc \
 468         psm \
 469         test \
 470         ucbcmd/basename \
 471         ucbcmd/biff \
 472         ucbcmd/echo \
 473         ucbcmd/groups \
 474         ucbcmd/mkstr \
 475         ucbcmd/printenv \
 476         ucbcmd/sum \
 477         ucbcmd/test \
 478         ucbcmd/users \
 479         ucbcmd/whoami
 480 
 481 i386_SUBDIRS= \
 482         cmd/acpihpd \
 483         cmd/biosdev \
 484         cmd/rtc \
 485         cmd/ucodeadm \
 486         lib/cfgadm_plugins/sata \
 487         lib/cfgadm_plugins/sbd \
 488         lib/libfdisk
 489 
 490 sparc_SUBDIRS= \
 491         cmd/datadm \
 492         cmd/dcs \
 493         cmd/drd \
 494         cmd/fruadm \
 495         cmd/ldmad \
 496         cmd/prtdscp \
 497         cmd/prtfru \
 498         cmd/sckmd \
 499         cmd/virtinfo \
 500         cmd/vntsd \
 501         lib/libds \
 502         lib/libdscp \
 503         lib/libpri \
 504         lib/libpcp \
 505         lib/libtsalarm \
 506         lib/libv12n \
 507         lib/storage \
 508         stand
 509 
 510 LINTSUBDIRS= $(COMMON_SUBDIRS) $($(MACH)_SUBDIRS)
 511 
 512 .PARALLEL:      $(LINTSUBDIRS)
 513 
 514 lint:           uts .WAIT subdirs
 515 
 516 subdirs:        $(LINTSUBDIRS)
 517 
 518 uts $(LINTSUBDIRS):     FRC
 519         @cd $@; pwd; $(MAKE) lint
 520 
 521 FRC: