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