xref: /titanic_50/usr/src/Makefile.lint (revision cb511613a15cb3949eadffd67b37d3c665b4ef22)
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/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/sum \
279	cmd/svc \
280	cmd/swap \
281	cmd/sync \
282	cmd/syseventadm \
283	cmd/syseventd \
284	cmd/syslogd \
285	cmd/tabs \
286	cmd/tee \
287	cmd/th_tools \
288	cmd/tip \
289	cmd/touch \
290	cmd/truss \
291	cmd/tty \
292	cmd/uadmin \
293	cmd/ul \
294	cmd/users \
295	cmd/utmp_update \
296	cmd/utmpd \
297	cmd/valtools \
298	cmd/vna \
299	cmd/vt \
300	cmd/wall \
301	cmd/wbem \
302	cmd/wc \
303	cmd/who \
304	cmd/whodo \
305	cmd/wracct \
306	cmd/xargs \
307	cmd/xstr \
308	cmd/yes \
309	cmd/yppasswd \
310	cmd/zdb \
311	cmd/zdump \
312	cmd/zfs \
313	cmd/zinject \
314	cmd/zlogin \
315	cmd/zoneadm \
316	cmd/zoneadmd \
317	cmd/zonecfg \
318	cmd/zonename \
319	cmd/zpool \
320	cmd/ztest \
321	lib/abi \
322	lib/auditd_plugins \
323	lib/brand/native \
324	lib/brand/sn1 \
325	lib/cfgadm_plugins/sdcard \
326	lib/crypt_modules \
327	lib/extendedFILE \
328	lib/libadutils \
329	lib/libadt_jni \
330	lib/libaio \
331	lib/libavl \
332	lib/libbrand \
333	lib/libbsdmalloc \
334	lib/libbsm \
335	lib/libc \
336	lib/libc_db \
337	lib/libcfgadm \
338	lib/libcmdutils \
339	lib/libcommputil \
340	lib/libcontract \
341	lib/libcryptoutil \
342	lib/libctf \
343	lib/libdevice \
344	lib/libdevid \
345	lib/libdevinfo \
346	lib/libdhcpagent \
347	lib/libdhcpdu \
348	lib/libdhcpsvc \
349	lib/libdhcputil \
350	lib/libdisasm \
351	lib/libdiskmgt \
352	lib/libdladm \
353	lib/libdlpi \
354	lib/libdoor \
355	lib/libdscfg \
356	lib/libdtrace \
357	lib/libefi \
358	lib/libelfsign \
359	lib/libexacct \
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