10Sstevel@tonic-gate# 20Sstevel@tonic-gate# CDDL HEADER START 30Sstevel@tonic-gate# 40Sstevel@tonic-gate# The contents of this file are subject to the terms of the 51618Srie# Common Development and Distribution License (the "License"). 61618Srie# You may not use this file except in compliance with the License. 70Sstevel@tonic-gate# 80Sstevel@tonic-gate# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE 90Sstevel@tonic-gate# or http://www.opensolaris.org/os/licensing. 100Sstevel@tonic-gate# See the License for the specific language governing permissions 110Sstevel@tonic-gate# and limitations under the License. 120Sstevel@tonic-gate# 130Sstevel@tonic-gate# When distributing Covered Code, include this CDDL HEADER in each 140Sstevel@tonic-gate# file and include the License file at usr/src/OPENSOLARIS.LICENSE. 150Sstevel@tonic-gate# If applicable, add the following below this CDDL HEADER, with the 160Sstevel@tonic-gate# fields enclosed by brackets "[]" replaced with your own identifying 170Sstevel@tonic-gate# information: Portions Copyright [yyyy] [name of copyright owner] 180Sstevel@tonic-gate# 190Sstevel@tonic-gate# CDDL HEADER END 200Sstevel@tonic-gate# 211618Srie 220Sstevel@tonic-gate# 23*12792SAli.Bahrami@Oracle.COM# Copyright (c) 1998, 2010, Oracle and/or its affiliates. All rights reserved. 240Sstevel@tonic-gate# 250Sstevel@tonic-gate# cmd/sgs/packages/Makefile.lint 260Sstevel@tonic-gate 270Sstevel@tonic-gateinclude $(SRC)/Makefile.master 280Sstevel@tonic-gate 290Sstevel@tonic-gateMACHS:sh= if [ "$MACH" = "sparc" ]; \ 300Sstevel@tonic-gate then echo "sparc sparcv9"; \ 310Sstevel@tonic-gate elif [ "$MACH" = "i386" ]; \ 320Sstevel@tonic-gate then echo "i386 amd64"; \ 330Sstevel@tonic-gate else echo "unknown"; \ 340Sstevel@tonic-gate fi 350Sstevel@tonic-gate 360Sstevel@tonic-gateLSUBDIRS1= ../libconv \ 370Sstevel@tonic-gate .WAIT \ 380Sstevel@tonic-gate ../libdl \ 390Sstevel@tonic-gate .WAIT \ 400Sstevel@tonic-gate ../libelf \ 410Sstevel@tonic-gate .WAIT \ 420Sstevel@tonic-gate ../liblddbg \ 430Sstevel@tonic-gate ../librtld_db \ 440Sstevel@tonic-gate .WAIT \ 450Sstevel@tonic-gate ../librtld \ 460Sstevel@tonic-gate ../libcrle 470Sstevel@tonic-gate 480Sstevel@tonic-gateLSUBDIRS2 = ../rtld \ 490Sstevel@tonic-gate ../libldstab \ 500Sstevel@tonic-gate ../ldprof \ 510Sstevel@tonic-gate ../link_audit \ 520Sstevel@tonic-gate ../libldmake \ 530Sstevel@tonic-gate ../rtld/mdbmod 540Sstevel@tonic-gate 550Sstevel@tonic-gateLINTLDIRS= ../libld \ 560Sstevel@tonic-gate ../elfdump \ 575088Sab196087 ../elfedit \ 585088Sab196087 ../elfedit/modules \ 596234Srie ../elfwrap \ 60*12792SAli.Bahrami@Oracle.COM ../ar \ 610Sstevel@tonic-gate ../crle \ 622352Sab196087 ../dump \ 630Sstevel@tonic-gate ../ld \ 640Sstevel@tonic-gate ../ldd \ 652352Sab196087 ../nm \ 660Sstevel@tonic-gate ../mcs \ 670Sstevel@tonic-gate ../moe \ 685088Sab196087 ../pvs 690Sstevel@tonic-gate 700Sstevel@tonic-gate$(LSUBDIRS1) $(LSUBDIRS2) := TARGET = lint 710Sstevel@tonic-gate$(LINTLDIRS) := TARGET = lint 720Sstevel@tonic-gate 730Sstevel@tonic-gate 740Sstevel@tonic-gate../%: FRC 750Sstevel@tonic-gate @ cd $@; pwd; $(MAKE) $(TARGET) 760Sstevel@tonic-gate 770Sstevel@tonic-gate.KEEP_STATE_FILE: .make.state.$(MACH) 780Sstevel@tonic-gate.KEEP_STATE: 790Sstevel@tonic-gate.PARALLEL: $(LSUBDIRS1) $(LINTLDIRS) $(LSUBDIRS2) 800Sstevel@tonic-gate 810Sstevel@tonic-gatelint: $(LSUBDIRS1) .WAIT $(LINTLDIRS) .WAIT $(LSUBDIRS2) 820Sstevel@tonic-gate @ sh ../tools/bld_lint.sh $(LSUBDIRS1) $(LINTLDIRS) $(LSUBDIRS2) 830Sstevel@tonic-gate 840Sstevel@tonic-gateFRC: 85