xref: /titanic_51/usr/src/Makefile.lint (revision f899e5733f35e45012ad40c8325b2622dcc2b673)
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/ppgsz \
237	cmd/praudit \
238	cmd/prctl \
239	cmd/priocntl \
240	cmd/profiles \
241	cmd/prstat \
242	cmd/prtconf \
243	cmd/prtdiag \
244	cmd/prtvtoc \
245	cmd/ps \
246	cmd/psradm \
247	cmd/psrinfo \
248	cmd/psrset \
249	cmd/ptools \
250	cmd/pwck \
251	cmd/pwconv \
252	cmd/ramdiskadm \
253	cmd/raidctl \
254	cmd/rcap \
255	cmd/rcm_daemon \
256	cmd/rctladm \
257	cmd/renice \
258	cmd/rm \
259	cmd/rmdir \
260	cmd/rmformat \
261	cmd/rmt \
262	cmd/roles \
263	cmd/rpcgen \
264	cmd/rpcsvc/rpc.bootparamd \
265	cmd/runat \
266	cmd/sbdadm \
267	cmd/sdpadm \
268	cmd/setpgrp \
269	cmd/smbios \
270	cmd/sgs \
271	cmd/smbsrv \
272	cmd/smserverd \
273	cmd/sort \
274	cmd/split \
275	cmd/ssh \
276	cmd/stat \
277	cmd/stmfadm \
278	cmd/stmfsvc \
279	cmd/stmsboot \
280	cmd/streams/strcmd \
281	cmd/strings \
282	cmd/su \
283	cmd/sulogin \
284	cmd/svc \
285	cmd/swap \
286	cmd/sync \
287	cmd/syseventadm \
288	cmd/syseventd \
289	cmd/syslogd \
290	cmd/tabs \
291	cmd/tee \
292	cmd/th_tools \
293	cmd/tip \
294	cmd/touch \
295	cmd/truss \
296	cmd/tty \
297	cmd/uadmin \
298	cmd/ul \
299	cmd/users \
300	cmd/utmp_update \
301	cmd/utmpd \
302	cmd/valtools \
303	cmd/vt \
304	cmd/wall \
305	cmd/wbem \
306	cmd/wc \
307	cmd/who \
308	cmd/whodo \
309	cmd/wracct \
310	cmd/wusbadm \
311	cmd/xargs \
312	cmd/xstr \
313	cmd/yes \
314	cmd/yppasswd \
315	cmd/zdb \
316	cmd/zdump \
317	cmd/zfs \
318	cmd/zinject \
319	cmd/zlogin \
320	cmd/zoneadm \
321	cmd/zoneadmd \
322	cmd/zonecfg \
323	cmd/zonename \
324	cmd/zpool \
325	cmd/zlook \
326	cmd/ztest \
327	lib/abi \
328	lib/auditd_plugins \
329	lib/brand/native \
330	lib/brand/sn1 \
331	lib/cfgadm_plugins/sdcard \
332	lib/crypt_modules \
333	lib/extendedFILE \
334	lib/libadutils \
335	lib/libadt_jni \
336	lib/libaio \
337	lib/libavl \
338	lib/libbrand \
339	lib/libbsdmalloc \
340	lib/libbsm \
341	lib/libc \
342	lib/libc_db \
343	lib/libcfgadm \
344	lib/libcmdutils \
345	lib/libcommputil \
346	lib/libcontract \
347	lib/libcryptoutil \
348	lib/libctf \
349	lib/libdevice \
350	lib/libdevid \
351	lib/libdevinfo \
352	lib/libdhcpagent \
353	lib/libdhcpdu \
354	lib/libdhcpsvc \
355	lib/libdhcputil \
356	lib/libdisasm \
357	lib/libdiskmgt \
358	lib/libdladm \
359	lib/libdlpi \
360	lib/libdoor \
361	lib/libdscfg \
362	lib/libdtrace \
363	lib/libefi \
364	lib/libelfsign \
365	lib/libexacct \
366	lib/libfcoe \
367	lib/libgen \
368	lib/libgrubmgmt \
369	lib/libgss \
370	lib/libidmap \
371	lib/libinetcfg \
372	lib/libinetsvc \
373	lib/libinetutil \
374	lib/libinstzones \
375	lib/libipmi \
376	lib/libipmp \
377	lib/libipp \
378	lib/libipsecutil \
379	lib/libiscsit \
380	lib/libiscsitgt \
381	lib/libkmf \
382	lib/libkstat \
383	lib/liblgrp \
384	lib/liblm \
385	lib/libmalloc \
386	lib/libmapmalloc \
387	lib/libmapid \
388	lib/libmd \
389	lib/libmp \
390	lib/libmtmalloc \
391	lib/libndmp \
392	lib/libnsctl \
393	lib/libnsl \
394	lib/libnvpair \
395	lib/libnwam \
396	lib/libpam \
397	lib/libpctx \
398	lib/libpicl \
399	lib/libpicltree \
400	lib/libplot \
401	lib/libpool \
402	lib/libproc \
403	lib/libpthread \
404	lib/libraidcfg \
405	lib/librcm \
406	lib/librdc \
407	lib/librestart \
408	lib/librstp \
409	lib/librt \
410	lib/libscf \
411	lib/libsec \
412	lib/libsecdb \
413	lib/libsendfile \
414	lib/libsip \
415	lib/libshare \
416	lib/libsldap \
417	lib/libslp \
418	lib/libsmbios \
419	lib/libsmedia \
420	lib/libstmf \
421	lib/libsun_ima \
422	lib/libthread \
423	lib/libtsnet \
424	lib/libtsol \
425	lib/libumem \
426	lib/libunistat \
427	lib/libuuid \
428	lib/libuutil \
429	lib/libwanboot \
430	lib/libwanbootutil \
431	lib/libxnet \
432	lib/libzfs \
433	lib/libzfs_jni \
434	lib/libzonecfg \
435	lib/libzoneinfo \
436	lib/lvm \
437	lib/madv \
438	lib/mms	\
439	lib/mpss \
440	lib/nametoaddr \
441	lib/ncad_addr \
442	lib/nsswitch \
443	lib/pam_modules \
444	lib/passwdutil \
445	lib/pkcs11 \
446	lib/print \
447	lib/raidcfg_plugins \
448	lib/scsi \
449	lib/smbsrv \
450	lib/fm \
451	lib/udapl \
452	lib/watchmalloc \
453	psm \
454	ucbcmd/basename \
455	ucbcmd/biff \
456	ucbcmd/echo \
457	ucbcmd/groups \
458	ucbcmd/mkstr \
459	ucbcmd/printenv \
460	ucbcmd/sum \
461	ucbcmd/test \
462	ucbcmd/users \
463	ucbcmd/whoami
464
465$(CLOSED_BUILD)COMMON_SUBDIRS += \
466	$(CLOSED)/cmd/cmd-inet/usr.lib/in.iked \
467	$(CLOSED)/cmd/pax \
468	$(CLOSED)/cmd/sed_xpg4 \
469	$(CLOSED)/cmd/smartcard \
470	$(CLOSED)/cmd/tail \
471	$(CLOSED)/cmd/tr_xpg4 \
472	$(CLOSED)/lib/libc_i18n \
473	$(CLOSED)/lib/smartcard
474
475i386_SUBDIRS= \
476	cmd/biosdev \
477	cmd/rtc \
478	cmd/ucodeadm \
479	lib/brand/lx \
480	lib/cfgadm_plugins/sata \
481	lib/libfdisk
482
483sparc_SUBDIRS= \
484	cmd/datadm \
485	cmd/dcs \
486	cmd/drd \
487	cmd/fps \
488	cmd/fruadm \
489	cmd/ldmad \
490	cmd/prtdscp \
491	cmd/prtfru \
492	cmd/sckmd \
493	cmd/vntsd \
494	lib/libds \
495	lib/libdscp \
496	lib/libpri \
497	lib/libpcp \
498	lib/libtsalarm \
499	lib/storage \
500	stand
501
502$(CLOSED_BUILD)COMMON_SUBDIRS += $(CLOSED)/cmd/mtst
503
504LINTSUBDIRS= $(COMMON_SUBDIRS) $($(MACH)_SUBDIRS)
505
506.PARALLEL:	$(LINTSUBDIRS)
507
508lint:		uts .WAIT subdirs
509
510subdirs:	$(LINTSUBDIRS)
511
512uts $(LINTSUBDIRS):	FRC
513	@cd $@; pwd; $(MAKE) lint
514
515FRC:
516