xref: /titanic_41/usr/src/cmd/sgs/packages/Makefile.lint (revision bdfc6d18da790deeec2e0eb09c625902defe2498)
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, Version 1.0 only
6# (the "License").  You may not use this file except in compliance
7# with the License.
8#
9# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
10# or http://www.opensolaris.org/os/licensing.
11# See the License for the specific language governing permissions
12# and limitations under the License.
13#
14# When distributing Covered Code, include this CDDL HEADER in each
15# file and include the License file at usr/src/OPENSOLARIS.LICENSE.
16# If applicable, add the following below this CDDL HEADER, with the
17# fields enclosed by brackets "[]" replaced with your own identifying
18# information: Portions Copyright [yyyy] [name of copyright owner]
19#
20# CDDL HEADER END
21#
22#
23# Copyright 2004 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		../librtld_db \
57		../rtld/mdbmod
58
59LINTLDIRS=	../libld \
60		../sgsdemangler \
61		../elfdump \
62		../crle \
63		../ld \
64		../ldd \
65		../mcs \
66		../moe \
67		../pvs
68
69$(LSUBDIRS1) $(LSUBDIRS2) :=	TARGET = lint
70$(LINTLDIRS) :=	TARGET = lint
71
72
73../%:		FRC
74		@ cd $@; pwd; $(MAKE) $(TARGET)
75
76.KEEP_STATE_FILE: .make.state.$(MACH)
77.KEEP_STATE:
78.PARALLEL:	$(LSUBDIRS1) $(LINTLDIRS) $(LSUBDIRS2)
79
80lint:		$(LSUBDIRS1) .WAIT $(LINTLDIRS) .WAIT $(LSUBDIRS2)
81		@ sh ../tools/bld_lint.sh $(LSUBDIRS1) $(LINTLDIRS) $(LSUBDIRS2)
82
83FRC:
84