xref: /titanic_51/usr/src/Makefile.lint (revision c5f9a89643b6d7175323dcb29f1a665661143c67)
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/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/libgen \
360	lib/libgss \
361	lib/libidmap \
362	lib/libinetcfg \
363	lib/libinetsvc \
364	lib/libinetutil \
365	lib/libipmi \
366	lib/libipmp \
367	lib/libipp \
368	lib/libipsecutil \
369	lib/libiscsit \
370	lib/libiscsitgt \
371	lib/libkmf \
372	lib/libkstat \
373	lib/liblgrp \
374	lib/liblm \
375	lib/libmalloc \
376	lib/libmapmalloc \
377	lib/libmapid \
378	lib/libmd \
379	lib/libmp \
380	lib/libmtmalloc \
381	lib/libndmp \
382	lib/libnsctl \
383	lib/libnsl \
384	lib/libnvpair \
385	lib/libnwam \
386	lib/libpam \
387	lib/libpctx \
388	lib/libpicl \
389	lib/libpicltree \
390	lib/libplot \
391	lib/libpool \
392	lib/libproc \
393	lib/libpthread \
394	lib/libraidcfg \
395	lib/librcm \
396	lib/librdc \
397	lib/librestart \
398	lib/librt \
399	lib/libscf \
400	lib/libsec \
401	lib/libsecdb \
402	lib/libsendfile \
403	lib/libsip \
404	lib/libshare \
405	lib/libsldap \
406	lib/libslp \
407	lib/libsmbios \
408	lib/libsmedia \
409	lib/libstmf \
410	lib/libsun_ima \
411	lib/libthread \
412	lib/libtsnet \
413	lib/libtsol \
414	lib/libumem \
415	lib/libunistat \
416	lib/libuuid \
417	lib/libuutil \
418	lib/libwanboot \
419	lib/libwanbootutil \
420	lib/libxnet \
421	lib/libzfs \
422	lib/libzfs_jni \
423	lib/libzonecfg \
424	lib/libzoneinfo \
425	lib/lvm \
426	lib/madv \
427	lib/mms	\
428	lib/mpss \
429	lib/nametoaddr \
430	lib/ncad_addr \
431	lib/nsswitch \
432	lib/openssl/libcrypto \
433	lib/pam_modules \
434	lib/passwdutil \
435	lib/pkcs11 \
436	lib/print \
437	lib/raidcfg_plugins \
438	lib/scsi \
439	lib/smbsrv \
440	lib/fm \
441	lib/udapl \
442	lib/watchmalloc \
443	psm \
444	ucbcmd/basename \
445	ucbcmd/biff \
446	ucbcmd/echo \
447	ucbcmd/groups \
448	ucbcmd/mkstr \
449	ucbcmd/printenv \
450	ucbcmd/sum \
451	ucbcmd/test \
452	ucbcmd/users \
453	ucbcmd/whoami
454
455$(CLOSED_BUILD)COMMON_SUBDIRS += \
456	$(CLOSED)/cmd/cmd-inet/usr.lib/in.iked \
457	$(CLOSED)/cmd/pax \
458	$(CLOSED)/cmd/pcitool \
459	$(CLOSED)/cmd/sed_xpg4 \
460	$(CLOSED)/cmd/smartcard \
461	$(CLOSED)/cmd/tail \
462	$(CLOSED)/cmd/tr_xpg4 \
463	$(CLOSED)/lib/libc_i18n \
464	$(CLOSED)/lib/smartcard
465
466i386_SUBDIRS= \
467	cmd/biosdev \
468	cmd/rtc \
469	cmd/ucodeadm \
470	lib/brand/lx \
471	lib/cfgadm_plugins/sata
472
473sparc_SUBDIRS= \
474	cmd/datadm \
475	cmd/dcs \
476	cmd/drd \
477	cmd/fps \
478	cmd/fruadm \
479	cmd/prtdscp \
480	cmd/prtfru \
481	cmd/sckmd \
482	cmd/vntsd \
483	lib/libds \
484	lib/libdscp \
485	lib/libpri \
486	lib/libpcp \
487	lib/libtsalarm \
488	lib/storage \
489	stand
490
491$(CLOSED_BUILD)COMMON_SUBDIRS += $(CLOSED)/cmd/mtst
492
493LINTSUBDIRS= $(COMMON_SUBDIRS) $($(MACH)_SUBDIRS)
494
495.PARALLEL:	$(LINTSUBDIRS)
496
497lint:		uts .WAIT subdirs
498
499subdirs:	$(LINTSUBDIRS)
500
501uts $(LINTSUBDIRS):	FRC
502	@cd $@; pwd; $(MAKE) lint
503
504FRC:
505