xref: /titanic_44/usr/src/cmd/sgs/packages/Makefile.lint (revision ee5416c9d7e449233197d5d20bc6b81e4ff091b2)
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# cmd/sgs/packages/Makefile.lint
29
30include		$(SRC)/Makefile.master
31
32MACHS:sh=	if [ "$MACH" = "sparc" ]; \
33		then echo "sparc sparcv9"; \
34		elif [ "$MACH" = "i386" ]; \
35		then echo "i386 amd64"; \
36		else echo "unknown"; \
37		fi
38
39LSUBDIRS1= 	../libconv \
40		.WAIT \
41		../libdl \
42		.WAIT \
43		../libelf \
44		.WAIT \
45		../liblddbg \
46		../librtld_db \
47		.WAIT \
48		../librtld \
49		../libcrle
50
51LSUBDIRS2 =	../rtld \
52		../libldstab \
53		../ldprof \
54		../link_audit \
55		../libldmake \
56		../rtld/mdbmod
57
58LINTLDIRS_EXT:sh=	if [ -f ../ext/packages/lintldirs ]; \
59				then cat ../ext/packages/lintldirs; \
60			fi
61
62LINTLDIRS=	../libld \
63		../sgsdemangler \
64		../elfdump \
65		../crle \
66		../dump \
67		../ld \
68		../ldd \
69		../nm \
70		../mcs \
71		../moe \
72		../pvs $(LINTLDIRS_EXT)
73
74$(LSUBDIRS1) $(LSUBDIRS2) :=	TARGET = lint
75$(LINTLDIRS) :=	TARGET = lint
76
77
78../%:		FRC
79		@ cd $@; pwd; $(MAKE) $(TARGET)
80
81.KEEP_STATE_FILE: .make.state.$(MACH)
82.KEEP_STATE:
83.PARALLEL:	$(LSUBDIRS1) $(LINTLDIRS) $(LSUBDIRS2)
84
85lint:		$(LSUBDIRS1) .WAIT $(LINTLDIRS) .WAIT $(LSUBDIRS2)
86		@ sh ../tools/bld_lint.sh $(LSUBDIRS1) $(LINTLDIRS) $(LSUBDIRS2)
87
88FRC:
89