xref: /titanic_51/usr/src/Makefile.lint (revision 65488c97aeb108aeffd7b61db3b2b3bcb4fc9d72)
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/dsvclockd \
75	cmd/cmd-inet/usr.lib/in.dhcpd \
76	cmd/cmd-inet/usr.lib/in.mpathd \
77	cmd/cmd-inet/usr.lib/in.ndpd \
78	cmd/cmd-inet/usr.lib/inetd \
79	cmd/cmd-inet/usr.lib/pppoe \
80	cmd/cmd-inet/usr.lib/slpd \
81	cmd/cmd-inet/usr.lib/wpad \
82	cmd/cmd-inet/usr.lib/wanboot \
83	cmd/cmd-inet/usr.sadm \
84	cmd/cmd-inet/usr.sbin \
85	cmd/cmp \
86	cmd/col \
87	cmd/comm \
88	cmd/compress \
89	cmd/consadm \
90	cmd/coreadm \
91	cmd/cpc \
92	cmd/cpio \
93	cmd/crypt \
94	cmd/csplit \
95	cmd/ctrun \
96	cmd/ctstat \
97	cmd/ctwatch \
98	cmd/cut \
99	cmd/date \
100	cmd/dd \
101	cmd/deroff \
102	cmd/devctl \
103	cmd/devfsadm \
104	cmd/devinfo \
105	cmd/devmgmt \
106	cmd/devprop \
107	cmd/dfs.cmds \
108	cmd/diff3 \
109	cmd/dis \
110	cmd/dirname \
111	cmd/diskscan \
112	cmd/dispadmin \
113	cmd/dladm \
114	cmd/dlmgmtd \
115	cmd/dtrace \
116	cmd/du \
117	cmd/dumpadm \
118	cmd/dumpcs \
119	cmd/echo \
120	cmd/eject \
121	cmd/emul64ioctl \
122	cmd/env \
123	cmd/expand \
124	cmd/fcinfo \
125	cmd/fdetach \
126	cmd/fdformat \
127	cmd/fgrep \
128	cmd/file \
129	cmd/filebench \
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/grep_xpg4 \
157	cmd/groups \
158	cmd/halt \
159	cmd/head \
160	cmd/hostid \
161	cmd/hostname \
162	cmd/idmap \
163	cmd/init \
164	cmd/intrstat \
165	cmd/ipcrm \
166	cmd/ipcs \
167	cmd/isaexec \
168	cmd/isalist \
169	cmd/iscsi \
170	cmd/iscsiadm \
171	cmd/iscsid \
172	cmd/iscsitsvc \
173	cmd/isns \
174	cmd/itadm \
175	cmd/join \
176	cmd/kbd \
177	cmd/killall \
178	cmd/last \
179	cmd/lastcomm \
180	cmd/ldapcachemgr \
181	cmd/line \
182	cmd/link \
183	cmd/locator \
184	cmd/lockstat \
185	cmd/lofiadm \
186	cmd/logadm \
187	cmd/logger \
188	cmd/login \
189	cmd/logins \
190	cmd/logname \
191	cmd/ls \
192	cmd/luxadm \
193	cmd/lvm \
194	cmd/machid \
195	cmd/makekey \
196	cmd/mdb \
197	cmd/mesg \
198	cmd/mkdir \
199	cmd/mkfifo \
200	cmd/mkfile \
201	cmd/mkmsgs \
202	cmd/mknod \
203	cmd/mms	\
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/nispasswd \
218	cmd/nl \
219	cmd/nohup \
220	cmd/nscd \
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/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/sbdadm \
266	cmd/sdpadm \
267	cmd/setpgrp \
268	cmd/smbios \
269	cmd/sgs \
270	cmd/smbsrv \
271	cmd/smserverd \
272	cmd/sort \
273	cmd/split \
274	cmd/ssh \
275	cmd/stat \
276	cmd/stmfadm \
277	cmd/stmfsvc \
278	cmd/stmsboot \
279	cmd/streams/strcmd \
280	cmd/strings \
281	cmd/su \
282	cmd/sulogin \
283	cmd/svc \
284	cmd/swap \
285	cmd/sync \
286	cmd/syseventadm \
287	cmd/syseventd \
288	cmd/syslogd \
289	cmd/tabs \
290	cmd/tee \
291	cmd/th_tools \
292	cmd/tip \
293	cmd/touch \
294	cmd/truss \
295	cmd/tty \
296	cmd/uadmin \
297	cmd/ul \
298	cmd/users \
299	cmd/utmp_update \
300	cmd/utmpd \
301	cmd/valtools \
302	cmd/vt \
303	cmd/wall \
304	cmd/wbem \
305	cmd/wc \
306	cmd/who \
307	cmd/whodo \
308	cmd/wracct \
309	cmd/wusbadm \
310	cmd/xargs \
311	cmd/xstr \
312	cmd/yes \
313	cmd/yppasswd \
314	cmd/zdb \
315	cmd/zdump \
316	cmd/zfs \
317	cmd/zinject \
318	cmd/zlogin \
319	cmd/zoneadm \
320	cmd/zoneadmd \
321	cmd/zonecfg \
322	cmd/zonename \
323	cmd/zpool \
324	cmd/zlook \
325	cmd/ztest \
326	lib/abi \
327	lib/auditd_plugins \
328	lib/brand/native \
329	lib/brand/sn1 \
330	lib/cfgadm_plugins/sdcard \
331	lib/crypt_modules \
332	lib/extendedFILE \
333	lib/libadutils \
334	lib/libadt_jni \
335	lib/libaio \
336	lib/libavl \
337	lib/libbrand \
338	lib/libbsdmalloc \
339	lib/libbsm \
340	lib/libc \
341	lib/libc_db \
342	lib/libcfgadm \
343	lib/libcmdutils \
344	lib/libcommputil \
345	lib/libcontract \
346	lib/libcryptoutil \
347	lib/libctf \
348	lib/libdevice \
349	lib/libdevid \
350	lib/libdevinfo \
351	lib/libdhcpagent \
352	lib/libdhcpdu \
353	lib/libdhcpsvc \
354	lib/libdhcputil \
355	lib/libdisasm \
356	lib/libdiskmgt \
357	lib/libdladm \
358	lib/libdlpi \
359	lib/libdoor \
360	lib/libdscfg \
361	lib/libdtrace \
362	lib/libefi \
363	lib/libelfsign \
364	lib/libexacct \
365	lib/libfcoe \
366	lib/libgen \
367	lib/libgrubmgmt \
368	lib/libgss \
369	lib/libidmap \
370	lib/libinetcfg \
371	lib/libinetsvc \
372	lib/libinetutil \
373	lib/libinstzones \
374	lib/libipmi \
375	lib/libipmp \
376	lib/libipp \
377	lib/libipsecutil \
378	lib/libiscsit \
379	lib/libiscsitgt \
380	lib/libkmf \
381	lib/libkstat \
382	lib/liblgrp \
383	lib/liblm \
384	lib/libmalloc \
385	lib/libmapmalloc \
386	lib/libmapid \
387	lib/libmd \
388	lib/libmp \
389	lib/libmtmalloc \
390	lib/libndmp \
391	lib/libnsctl \
392	lib/libnsl \
393	lib/libnvpair \
394	lib/libnwam \
395	lib/libpam \
396	lib/libpctx \
397	lib/libpicl \
398	lib/libpicltree \
399	lib/libplot \
400	lib/libpool \
401	lib/libproc \
402	lib/libpthread \
403	lib/libraidcfg \
404	lib/librcm \
405	lib/librdc \
406	lib/librestart \
407	lib/librt \
408	lib/libscf \
409	lib/libsec \
410	lib/libsecdb \
411	lib/libsendfile \
412	lib/libsip \
413	lib/libshare \
414	lib/libsldap \
415	lib/libslp \
416	lib/libsmbios \
417	lib/libsmedia \
418	lib/libstmf \
419	lib/libsun_ima \
420	lib/libthread \
421	lib/libtsnet \
422	lib/libtsol \
423	lib/libumem \
424	lib/libunistat \
425	lib/libuuid \
426	lib/libuutil \
427	lib/libwanboot \
428	lib/libwanbootutil \
429	lib/libxnet \
430	lib/libzfs \
431	lib/libzfs_jni \
432	lib/libzonecfg \
433	lib/libzoneinfo \
434	lib/lvm \
435	lib/madv \
436	lib/mms	\
437	lib/mpss \
438	lib/nametoaddr \
439	lib/ncad_addr \
440	lib/nsswitch \
441	lib/pam_modules \
442	lib/passwdutil \
443	lib/pkcs11 \
444	lib/print \
445	lib/raidcfg_plugins \
446	lib/scsi \
447	lib/smbsrv \
448	lib/fm \
449	lib/udapl \
450	lib/watchmalloc \
451	psm \
452	ucbcmd/basename \
453	ucbcmd/biff \
454	ucbcmd/echo \
455	ucbcmd/groups \
456	ucbcmd/mkstr \
457	ucbcmd/printenv \
458	ucbcmd/sum \
459	ucbcmd/test \
460	ucbcmd/users \
461	ucbcmd/whoami
462
463$(CLOSED_BUILD)COMMON_SUBDIRS += \
464	$(CLOSED)/cmd/cmd-inet/usr.lib/in.iked \
465	$(CLOSED)/cmd/pax \
466	$(CLOSED)/cmd/sed_xpg4 \
467	$(CLOSED)/cmd/smartcard \
468	$(CLOSED)/cmd/tail \
469	$(CLOSED)/cmd/tr_xpg4 \
470	$(CLOSED)/lib/libc_i18n \
471	$(CLOSED)/lib/smartcard
472
473i386_SUBDIRS= \
474	cmd/biosdev \
475	cmd/rtc \
476	cmd/ucodeadm \
477	lib/brand/lx \
478	lib/cfgadm_plugins/sata \
479	lib/libfdisk
480
481sparc_SUBDIRS= \
482	cmd/datadm \
483	cmd/dcs \
484	cmd/drd \
485	cmd/fps \
486	cmd/fruadm \
487	cmd/prtdscp \
488	cmd/prtfru \
489	cmd/sckmd \
490	cmd/vntsd \
491	lib/libds \
492	lib/libdscp \
493	lib/libpri \
494	lib/libpcp \
495	lib/libtsalarm \
496	lib/storage \
497	stand
498
499$(CLOSED_BUILD)COMMON_SUBDIRS += $(CLOSED)/cmd/mtst
500
501LINTSUBDIRS= $(COMMON_SUBDIRS) $($(MACH)_SUBDIRS)
502
503.PARALLEL:	$(LINTSUBDIRS)
504
505lint:		uts .WAIT subdirs
506
507subdirs:	$(LINTSUBDIRS)
508
509uts $(LINTSUBDIRS):	FRC
510	@cd $@; pwd; $(MAKE) lint
511
512FRC:
513