xref: /titanic_52/usr/src/Makefile.lint (revision 16dd44c265271a75647fb0bb41109bb7c585a526)
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/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/iscsitsvc \
170	cmd/isns \
171	cmd/itadm \
172	cmd/join \
173	cmd/kbd \
174	cmd/killall \
175	cmd/last \
176	cmd/lastcomm \
177	cmd/ldapcachemgr \
178	cmd/line \
179	cmd/link \
180	cmd/locator \
181	cmd/lockstat \
182	cmd/lofiadm \
183	cmd/logadm \
184	cmd/logger \
185	cmd/login \
186	cmd/logins \
187	cmd/logname \
188	cmd/ls \
189	cmd/luxadm \
190	cmd/lvm \
191	cmd/machid \
192	cmd/makekey \
193	cmd/mdb \
194	cmd/mesg \
195	cmd/mkdir \
196	cmd/mkfifo \
197	cmd/mkfile \
198	cmd/mkmsgs \
199	cmd/mknod \
200	cmd/mms	\
201	cmd/mpathadm \
202	cmd/msgfmt \
203	cmd/msgid \
204	cmd/mt \
205	cmd/mv \
206	cmd/ndmpadm \
207	cmd/ndmpd \
208	cmd/ndmpstat \
209	cmd/newform \
210	cmd/newgrp \
211	cmd/newtask \
212	cmd/nice \
213	cmd/nispasswd \
214	cmd/nl \
215	cmd/nohup \
216	cmd/nscd \
217	cmd/pagesize \
218	cmd/passwd \
219	cmd/pathchk \
220	cmd/pbind \
221	cmd/pcidr \
222	cmd/pfexec \
223	cmd/pgrep \
224	cmd/picl/picld \
225	cmd/picl/prtpicl \
226	cmd/plockstat \
227	cmd/pools \
228	cmd/power \
229	cmd/powertop \
230	cmd/ppgsz \
231	cmd/praudit \
232	cmd/prctl \
233	cmd/priocntl \
234	cmd/profiles \
235	cmd/prstat \
236	cmd/prtconf \
237	cmd/prtdiag \
238	cmd/prtvtoc \
239	cmd/ps \
240	cmd/psradm \
241	cmd/psrinfo \
242	cmd/psrset \
243	cmd/ptools \
244	cmd/pwck \
245	cmd/pwconv \
246	cmd/ramdiskadm \
247	cmd/raidctl \
248	cmd/rcap \
249	cmd/rcm_daemon \
250	cmd/rctladm \
251	cmd/renice \
252	cmd/rm \
253	cmd/rmdir \
254	cmd/rmformat \
255	cmd/rmt \
256	cmd/roles \
257	cmd/rpcgen \
258	cmd/rpcsvc/rpc.bootparamd \
259	cmd/runat \
260	cmd/sbdadm \
261	cmd/sdpadm \
262	cmd/setpgrp \
263	cmd/smbios \
264	cmd/sgs \
265	cmd/smbsrv \
266	cmd/smserverd \
267	cmd/sort \
268	cmd/split \
269	cmd/ssh \
270	cmd/stat \
271	cmd/stmfadm \
272	cmd/stmfsvc \
273	cmd/stmsboot \
274	cmd/streams/strcmd \
275	cmd/strings \
276	cmd/su \
277	cmd/sulogin \
278	cmd/svc \
279	cmd/swap \
280	cmd/sync \
281	cmd/syseventadm \
282	cmd/syseventd \
283	cmd/syslogd \
284	cmd/tabs \
285	cmd/tee \
286	cmd/th_tools \
287	cmd/tip \
288	cmd/touch \
289	cmd/truss \
290	cmd/tty \
291	cmd/uadmin \
292	cmd/ul \
293	cmd/users \
294	cmd/utmp_update \
295	cmd/utmpd \
296	cmd/valtools \
297	cmd/vna \
298	cmd/vt \
299	cmd/wall \
300	cmd/wbem \
301	cmd/wc \
302	cmd/who \
303	cmd/whodo \
304	cmd/wracct \
305	cmd/xargs \
306	cmd/xstr \
307	cmd/yes \
308	cmd/yppasswd \
309	cmd/zdb \
310	cmd/zdump \
311	cmd/zfs \
312	cmd/zinject \
313	cmd/zlogin \
314	cmd/zoneadm \
315	cmd/zoneadmd \
316	cmd/zonecfg \
317	cmd/zonename \
318	cmd/zpool \
319	cmd/ztest \
320	lib/abi \
321	lib/auditd_plugins \
322	lib/brand/native \
323	lib/brand/sn1 \
324	lib/cfgadm_plugins/sdcard \
325	lib/crypt_modules \
326	lib/extendedFILE \
327	lib/libadutils \
328	lib/libadt_jni \
329	lib/libaio \
330	lib/libavl \
331	lib/libbrand \
332	lib/libbsdmalloc \
333	lib/libbsm \
334	lib/libc \
335	lib/libc_db \
336	lib/libcfgadm \
337	lib/libcmdutils \
338	lib/libcommputil \
339	lib/libcontract \
340	lib/libcryptoutil \
341	lib/libctf \
342	lib/libdevice \
343	lib/libdevid \
344	lib/libdevinfo \
345	lib/libdhcpagent \
346	lib/libdhcpdu \
347	lib/libdhcpsvc \
348	lib/libdhcputil \
349	lib/libdisasm \
350	lib/libdiskmgt \
351	lib/libdladm \
352	lib/libdlpi \
353	lib/libdoor \
354	lib/libdscfg \
355	lib/libdtrace \
356	lib/libefi \
357	lib/libelfsign \
358	lib/libexacct \
359	lib/libfcoe \
360	lib/libgen \
361	lib/libgss \
362	lib/libidmap \
363	lib/libinetcfg \
364	lib/libinetsvc \
365	lib/libinetutil \
366	lib/libipmi \
367	lib/libipmp \
368	lib/libipp \
369	lib/libipsecutil \
370	lib/libiscsit \
371	lib/libiscsitgt \
372	lib/libkmf \
373	lib/libkstat \
374	lib/liblgrp \
375	lib/liblm \
376	lib/libmalloc \
377	lib/libmapmalloc \
378	lib/libmapid \
379	lib/libmd \
380	lib/libmp \
381	lib/libmtmalloc \
382	lib/libndmp \
383	lib/libnsctl \
384	lib/libnsl \
385	lib/libnvpair \
386	lib/libnwam \
387	lib/libpam \
388	lib/libpctx \
389	lib/libpicl \
390	lib/libpicltree \
391	lib/libplot \
392	lib/libpool \
393	lib/libproc \
394	lib/libpthread \
395	lib/libraidcfg \
396	lib/librcm \
397	lib/librdc \
398	lib/librestart \
399	lib/librt \
400	lib/libscf \
401	lib/libsec \
402	lib/libsecdb \
403	lib/libsendfile \
404	lib/libsip \
405	lib/libshare \
406	lib/libsldap \
407	lib/libslp \
408	lib/libsmbios \
409	lib/libsmedia \
410	lib/libstmf \
411	lib/libsun_ima \
412	lib/libthread \
413	lib/libtsnet \
414	lib/libtsol \
415	lib/libumem \
416	lib/libunistat \
417	lib/libuuid \
418	lib/libuutil \
419	lib/libwanboot \
420	lib/libwanbootutil \
421	lib/libxnet \
422	lib/libzfs \
423	lib/libzfs_jni \
424	lib/libzonecfg \
425	lib/libzoneinfo \
426	lib/lvm \
427	lib/madv \
428	lib/mms	\
429	lib/mpss \
430	lib/nametoaddr \
431	lib/ncad_addr \
432	lib/nsswitch \
433	lib/openssl/libcrypto \
434	lib/pam_modules \
435	lib/passwdutil \
436	lib/pkcs11 \
437	lib/print \
438	lib/raidcfg_plugins \
439	lib/scsi \
440	lib/smbsrv \
441	lib/fm \
442	lib/udapl \
443	lib/watchmalloc \
444	psm \
445	ucbcmd/basename \
446	ucbcmd/biff \
447	ucbcmd/echo \
448	ucbcmd/groups \
449	ucbcmd/mkstr \
450	ucbcmd/printenv \
451	ucbcmd/sum \
452	ucbcmd/test \
453	ucbcmd/users \
454	ucbcmd/whoami
455
456$(CLOSED_BUILD)COMMON_SUBDIRS += \
457	$(CLOSED)/cmd/cmd-inet/usr.lib/in.iked \
458	$(CLOSED)/cmd/pax \
459	$(CLOSED)/cmd/pcitool \
460	$(CLOSED)/cmd/sed_xpg4 \
461	$(CLOSED)/cmd/smartcard \
462	$(CLOSED)/cmd/tail \
463	$(CLOSED)/cmd/tr_xpg4 \
464	$(CLOSED)/lib/libc_i18n \
465	$(CLOSED)/lib/smartcard
466
467i386_SUBDIRS= \
468	cmd/biosdev \
469	cmd/rtc \
470	cmd/ucodeadm \
471	lib/brand/lx \
472	lib/cfgadm_plugins/sata
473
474sparc_SUBDIRS= \
475	cmd/datadm \
476	cmd/dcs \
477	cmd/drd \
478	cmd/fps \
479	cmd/fruadm \
480	cmd/prtdscp \
481	cmd/prtfru \
482	cmd/sckmd \
483	cmd/vntsd \
484	lib/libds \
485	lib/libdscp \
486	lib/libpri \
487	lib/libpcp \
488	lib/libtsalarm \
489	lib/storage \
490	stand
491
492$(CLOSED_BUILD)COMMON_SUBDIRS += $(CLOSED)/cmd/mtst
493
494LINTSUBDIRS= $(COMMON_SUBDIRS) $($(MACH)_SUBDIRS)
495
496.PARALLEL:	$(LINTSUBDIRS)
497
498lint:		uts .WAIT subdirs
499
500subdirs:	$(LINTSUBDIRS)
501
502uts $(LINTSUBDIRS):	FRC
503	@cd $@; pwd; $(MAKE) lint
504
505FRC:
506