17c478bd9Sstevel@tonic-gate# 27c478bd9Sstevel@tonic-gate# CDDL HEADER START 37c478bd9Sstevel@tonic-gate# 47c478bd9Sstevel@tonic-gate# The contents of this file are subject to the terms of the 567298654Sdamico# Common Development and Distribution License (the "License"). 667298654Sdamico# You may not use this file except in compliance with the License. 767298654Sdamico 87c478bd9Sstevel@tonic-gate# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE 97c478bd9Sstevel@tonic-gate# or http://www.opensolaris.org/os/licensing. 107c478bd9Sstevel@tonic-gate# See the License for the specific language governing permissions 117c478bd9Sstevel@tonic-gate# and limitations under the License. 127c478bd9Sstevel@tonic-gate# 137c478bd9Sstevel@tonic-gate# When distributing Covered Code, include this CDDL HEADER in each 147c478bd9Sstevel@tonic-gate# file and include the License file at usr/src/OPENSOLARIS.LICENSE. 157c478bd9Sstevel@tonic-gate# If applicable, add the following below this CDDL HEADER, with the 167c478bd9Sstevel@tonic-gate# fields enclosed by brackets "[]" replaced with your own identifying 177c478bd9Sstevel@tonic-gate# information: Portions Copyright [yyyy] [name of copyright owner] 187c478bd9Sstevel@tonic-gate# 197c478bd9Sstevel@tonic-gate# CDDL HEADER END 207c478bd9Sstevel@tonic-gate# 217c478bd9Sstevel@tonic-gate# 2269112eddSAli Bahrami# Copyright 2010 Sun Microsystems, Inc. All rights reserved. 237c478bd9Sstevel@tonic-gate# Use is subject to license terms. 247c478bd9Sstevel@tonic-gate# 2592ed1782Smike_s# cmd/sgs/gprof/Makefile.com 267c478bd9Sstevel@tonic-gate# 277c478bd9Sstevel@tonic-gate 28b9bd317cSab196087PROG= gprof 29b9bd317cSab196087 30b9bd317cSab196087include $(SRC)/cmd/Makefile.cmd 31b9bd317cSab196087include $(SRC)/cmd/sgs/Makefile.com 327c478bd9Sstevel@tonic-gate 337c478bd9Sstevel@tonic-gateCOMOBJS= gprof.o arcs.o dfn.o lookup.o calls.o \ 347c478bd9Sstevel@tonic-gate printgprof.o printlist.o readelf.o 357c478bd9Sstevel@tonic-gate 3667298654SdamicoOBJS= $(COMOBJS) 377c478bd9Sstevel@tonic-gateBLURBS= gprof.callg.blurb gprof.flat.blurb 3867298654SdamicoSRCS= $(COMOBJS:%.o=../common/%.c) 397c478bd9Sstevel@tonic-gate 407c478bd9Sstevel@tonic-gateINCLIST= -I../common -I../../include -I../../include/$(MACH) 417c478bd9Sstevel@tonic-gateDEFLIST= -DELF_OBJ -DELF 4269112eddSAli BahramiCPPFLAGS= $(INCLIST) $(DEFLIST) $(CPPFLAGS.master) -I$(ELFCAP) 4392ed1782Smike_sCFLAGS += $(CCVERBOSE) 4492ed1782Smike_sC99MODE= $(C99_ENABLE) 45b9bd317cSab196087LDLIBS += $(CONVLIBDIR) $(CONV_LIB) $(ELFLIBDIR) -lelf 46b9bd317cSab196087LINTSRCS = $(SRCS) 47b9bd317cSab196087LINTFLAGS += -x 48*7014882cSRichard LoweCERRWARN += -_gcc=-Wno-uninitialized 49b9bd317cSab196087CLEANFILES += $(LINTOUTS) 507c478bd9Sstevel@tonic-gate 5167298654SdamicoROOTLIBBLURB= $(BLURBS:%=$(ROOTSHLIBCCS)/%) 527c478bd9Sstevel@tonic-gate 5367298654Sdamico$(ROOTLIBBLURB) := FILEMODE= 444 547c478bd9Sstevel@tonic-gate 557c478bd9Sstevel@tonic-gate%.o: ../common/%.c 567c478bd9Sstevel@tonic-gate $(COMPILE.c) $< 577c478bd9Sstevel@tonic-gate.PARALLEL: $(OBJS) 58