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