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