xref: /titanic_51/usr/src/Makefile.lint (revision a0aa776e20803c84edd153d9cb584fd67163aef3)
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 2009 Sun Microsystems, Inc.  All rights reserved.
24# Use is subject to license terms.
25#
26
27# include global definitions
28include Makefile.master
29
30#
31# As pieces are made lint-clean, add them here so the nightly build
32# can be used to keep them that way.
33#
34COMMON_SUBDIRS = \
35	cmd/acctadm \
36	cmd/asa \
37	cmd/amt \
38	cmd/audio/audiotest \
39	cmd/audio/mixerctl \
40	cmd/audit \
41	cmd/auditconfig \
42	cmd/auditd \
43	cmd/auditreduce \
44	cmd/auditstat \
45	cmd/auths \
46	cmd/autopush \
47	cmd/availdevs \
48	cmd/avs \
49	cmd/awk \
50	cmd/banner \
51	cmd/bart \
52	cmd/basename \
53	cmd/bdiff \
54	cmd/bfs \
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/cksum \
69	cmd/clinfo \
70	cmd/cmd-crypto \
71	cmd/cmd-inet/lib \
72	cmd/cmd-inet/sbin \
73	cmd/cmd-inet/usr.bin \
74	cmd/cmd-inet/usr.lib/bridged \
75	cmd/cmd-inet/usr.lib/dsvclockd \
76	cmd/cmd-inet/usr.lib/in.dhcpd \
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/wpad \
83	cmd/cmd-inet/usr.lib/wanboot \
84	cmd/cmd-inet/usr.sadm \
85	cmd/cmd-inet/usr.sbin \
86	cmd/cmp \
87	cmd/col \
88	cmd/comm \
89	cmd/compress \
90	cmd/consadm \
91	cmd/coreadm \
92	cmd/cpc \
93	cmd/cpio \
94	cmd/crypt \
95	cmd/csplit \
96	cmd/ctrun \
97	cmd/ctstat \
98	cmd/ctwatch \
99	cmd/cut \
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/fgrep \
129	cmd/file \
130	cmd/filebench \
131	cmd/find \
132	cmd/fmthard \
133	cmd/fmtmsg \
134	cmd/fold \
135	cmd/fm \
136	cmd/format \
137	cmd/fs.d/fd \
138	cmd/fs.d/lofs/mount \
139	cmd/fs.d/mntfs \
140	cmd/fs.d/pcfs/mount \
141	cmd/fs.d/proc \
142	cmd/fs.d/tmpfs \
143	cmd/fs.d/udfs/mount \
144	cmd/fs.d/ufs/mount \
145	cmd/fs.d/ufs/fsirand\
146	cmd/fs.d/zfs/fstyp \
147	cmd/fwflash \
148	cmd/fuser \
149	cmd/gcore \
150	cmd/genmsg \
151	cmd/getconf \
152	cmd/getdevpolicy \
153	cmd/getfacl \
154	cmd/getopt \
155	cmd/gettext \
156	cmd/grep \
157	cmd/grep_xpg4 \
158	cmd/groups \
159	cmd/halt \
160	cmd/head \
161	cmd/hostid \
162	cmd/hostname \
163	cmd/idmap \
164	cmd/init \
165	cmd/intrstat \
166	cmd/ipcrm \
167	cmd/ipcs \
168	cmd/isaexec \
169	cmd/isalist \
170	cmd/iscsi \
171	cmd/iscsiadm \
172	cmd/iscsid \
173	cmd/iscsitsvc \
174	cmd/isns \
175	cmd/itadm \
176	cmd/join \
177	cmd/kbd \
178	cmd/killall \
179	cmd/last \
180	cmd/lastcomm \
181	cmd/ldapcachemgr \
182	cmd/line \
183	cmd/link \
184	cmd/locator \
185	cmd/lockstat \
186	cmd/lofiadm \
187	cmd/logadm \
188	cmd/logger \
189	cmd/login \
190	cmd/logins \
191	cmd/logname \
192	cmd/ls \
193	cmd/luxadm \
194	cmd/lvm \
195	cmd/machid \
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/mms	\
205	cmd/mpathadm \
206	cmd/modload \
207	cmd/msgfmt \
208	cmd/msgid \
209	cmd/mt \
210	cmd/mv \
211	cmd/ndmpadm \
212	cmd/ndmpd \
213	cmd/ndmpstat \
214	cmd/newform \
215	cmd/newgrp \
216	cmd/newtask \
217	cmd/nice \
218	cmd/nispasswd \
219	cmd/nl \
220	cmd/nohup \
221	cmd/nscd \
222	cmd/pagesize \
223	cmd/passwd \
224	cmd/pathchk \
225	cmd/pbind \
226	cmd/pcidr \
227	cmd/pcitool \
228	cmd/pfexec \
229	cmd/pgrep \
230	cmd/picl/picld \
231	cmd/picl/prtpicl \
232	cmd/plockstat \
233	cmd/pools \
234	cmd/power \
235	cmd/powertop \
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/sbdadm \
268	cmd/sdpadm \
269	cmd/setpgrp \
270	cmd/smbios \
271	cmd/sgs \
272	cmd/smbsrv \
273	cmd/smserverd \
274	cmd/sort \
275	cmd/split \
276	cmd/ssh \
277	cmd/stat \
278	cmd/stmfadm \
279	cmd/stmfsvc \
280	cmd/stmsboot \
281	cmd/streams/strcmd \
282	cmd/strings \
283	cmd/su \
284	cmd/sulogin \
285	cmd/svc \
286	cmd/swap \
287	cmd/sync \
288	cmd/syseventadm \
289	cmd/syseventd \
290	cmd/syslogd \
291	cmd/tabs \
292	cmd/tee \
293	cmd/th_tools \
294	cmd/tip \
295	cmd/touch \
296	cmd/truss \
297	cmd/tty \
298	cmd/uadmin \
299	cmd/ul \
300	cmd/users \
301	cmd/utmp_update \
302	cmd/utmpd \
303	cmd/valtools \
304	cmd/vt \
305	cmd/wall \
306	cmd/wbem \
307	cmd/wc \
308	cmd/who \
309	cmd/whodo \
310	cmd/wracct \
311	cmd/wusbadm \
312	cmd/xargs \
313	cmd/xstr \
314	cmd/yes \
315	cmd/yppasswd \
316	cmd/zdb \
317	cmd/zdump \
318	cmd/zfs \
319	cmd/zinject \
320	cmd/zlogin \
321	cmd/zoneadm \
322	cmd/zoneadmd \
323	cmd/zonecfg \
324	cmd/zonename \
325	cmd/zpool \
326	cmd/zlook \
327	cmd/ztest \
328	lib/abi \
329	lib/auditd_plugins \
330	lib/brand/native \
331	lib/brand/sn1 \
332	lib/cfgadm_plugins/sdcard \
333	lib/crypt_modules \
334	lib/extendedFILE \
335	lib/libadutils \
336	lib/libadt_jni \
337	lib/libaio \
338	lib/libavl \
339	lib/libbrand \
340	lib/libbsdmalloc \
341	lib/libbsm \
342	lib/libc \
343	lib/libc_db \
344	lib/libcfgadm \
345	lib/libcmdutils \
346	lib/libcommputil \
347	lib/libcontract \
348	lib/libcryptoutil \
349	lib/libctf \
350	lib/libdevice \
351	lib/libdevid \
352	lib/libdevinfo \
353	lib/libdhcpagent \
354	lib/libdhcpdu \
355	lib/libdhcpsvc \
356	lib/libdhcputil \
357	lib/libdisasm \
358	lib/libdiskmgt \
359	lib/libdladm \
360	lib/libdlpi \
361	lib/libdoor \
362	lib/libdscfg \
363	lib/libdtrace \
364	lib/libefi \
365	lib/libelfsign \
366	lib/libexacct \
367	lib/libfcoe \
368	lib/libgen \
369	lib/libgrubmgmt \
370	lib/libgss \
371	lib/libidmap \
372	lib/libinetcfg \
373	lib/libinetsvc \
374	lib/libinetutil \
375	lib/libinstzones \
376	lib/libipmi \
377	lib/libipmp \
378	lib/libipp \
379	lib/libipsecutil \
380	lib/libiscsit \
381	lib/libiscsitgt \
382	lib/libkmf \
383	lib/libkstat \
384	lib/liblgrp \
385	lib/liblm \
386	lib/libmalloc \
387	lib/libmapmalloc \
388	lib/libmapid \
389	lib/libmd \
390	lib/libmp \
391	lib/libmtmalloc \
392	lib/libndmp \
393	lib/libnsctl \
394	lib/libnsl \
395	lib/libnvpair \
396	lib/libnwam \
397	lib/libpam \
398	lib/libpctx \
399	lib/libpicl \
400	lib/libpicltree \
401	lib/libplot \
402	lib/libpool \
403	lib/libproc \
404	lib/libpthread \
405	lib/libraidcfg \
406	lib/librcm \
407	lib/librdc \
408	lib/librestart \
409	lib/librstp \
410	lib/librt \
411	lib/libscf \
412	lib/libsec \
413	lib/libsecdb \
414	lib/libsendfile \
415	lib/libsip \
416	lib/libshare \
417	lib/libsldap \
418	lib/libslp \
419	lib/libsmbios \
420	lib/libsmedia \
421	lib/libstmf \
422	lib/libsun_ima \
423	lib/libthread \
424	lib/libtsnet \
425	lib/libtsol \
426	lib/libumem \
427	lib/libunistat \
428	lib/libuuid \
429	lib/libuutil \
430	lib/libwanboot \
431	lib/libwanbootutil \
432	lib/libxnet \
433	lib/libzfs \
434	lib/libzfs_jni \
435	lib/libzonecfg \
436	lib/libzoneinfo \
437	lib/lvm \
438	lib/madv \
439	lib/mms	\
440	lib/mpss \
441	lib/nametoaddr \
442	lib/ncad_addr \
443	lib/nsswitch \
444	lib/pam_modules \
445	lib/passwdutil \
446	lib/pkcs11 \
447	lib/print \
448	lib/raidcfg_plugins \
449	lib/scsi \
450	lib/smbsrv \
451	lib/fm \
452	lib/udapl \
453	lib/watchmalloc \
454	psm \
455	ucbcmd/basename \
456	ucbcmd/biff \
457	ucbcmd/echo \
458	ucbcmd/groups \
459	ucbcmd/mkstr \
460	ucbcmd/printenv \
461	ucbcmd/sum \
462	ucbcmd/test \
463	ucbcmd/users \
464	ucbcmd/whoami
465
466$(CLOSED_BUILD)COMMON_SUBDIRS += \
467	$(CLOSED)/cmd/cmd-inet/usr.lib/in.iked \
468	$(CLOSED)/cmd/pax \
469	$(CLOSED)/cmd/sed_xpg4 \
470	$(CLOSED)/cmd/tail \
471	$(CLOSED)/cmd/tr_xpg4 \
472	$(CLOSED)/lib/libc_i18n
473
474i386_SUBDIRS= \
475	cmd/biosdev \
476	cmd/rtc \
477	cmd/ucodeadm \
478	lib/brand/lx \
479	lib/cfgadm_plugins/sata \
480	lib/libfdisk
481
482sparc_SUBDIRS= \
483	cmd/datadm \
484	cmd/dcs \
485	cmd/drd \
486	cmd/fps \
487	cmd/fruadm \
488	cmd/ldmad \
489	cmd/prtdscp \
490	cmd/prtfru \
491	cmd/sckmd \
492	cmd/vntsd \
493	lib/libds \
494	lib/libdscp \
495	lib/libpri \
496	lib/libpcp \
497	lib/libtsalarm \
498	lib/storage \
499	stand
500
501$(CLOSED_BUILD)COMMON_SUBDIRS += $(CLOSED)/cmd/mtst
502
503LINTSUBDIRS= $(COMMON_SUBDIRS) $($(MACH)_SUBDIRS)
504
505.PARALLEL:	$(LINTSUBDIRS)
506
507lint:		uts .WAIT subdirs
508
509subdirs:	$(LINTSUBDIRS)
510
511uts $(LINTSUBDIRS):	FRC
512	@cd $@; pwd; $(MAKE) lint
513
514FRC:
515