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