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