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