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