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