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