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# 255661bb76SJohn Levon# Copyright (c) 2018, Joyent, Inc. 26cf9a187cSAndy Fiddaman# Copyright 2019 OmniOS Community Edition (OmniOSce) Association. 27cf9a187cSAndy Fiddaman# 287c478bd9Sstevel@tonic-gate 29b9bd317cSabPROG= gprof 30b9bd317cSab 31cf9a187cSAndy Fiddamaninclude $(SRC)/cmd/Makefile.cmd 32cf9a187cSAndy Fiddamaninclude $(SRC)/cmd/sgs/Makefile.com 337c478bd9Sstevel@tonic-gate 347c478bd9Sstevel@tonic-gateCOMOBJS= gprof.o arcs.o dfn.o lookup.o calls.o \ 357c478bd9Sstevel@tonic-gate printgprof.o printlist.o readelf.o 367c478bd9Sstevel@tonic-gate 3767298654SdamicoOBJS= $(COMOBJS) 387c478bd9Sstevel@tonic-gateBLURBS= gprof.callg.blurb gprof.flat.blurb 3967298654SdamicoSRCS= $(COMOBJS:%.o=../common/%.c) 407c478bd9Sstevel@tonic-gate 417c478bd9Sstevel@tonic-gateINCLIST= -I../common -I../../include -I../../include/$(MACH) 427c478bd9Sstevel@tonic-gateDEFLIST= -DELF_OBJ -DELF 4369112eddSAli BahramiCPPFLAGS= $(INCLIST) $(DEFLIST) $(CPPFLAGS.master) -I$(ELFCAP) 4492ed1782Smike_sCFLAGS += $(CCVERBOSE) 45bd0ce624SYuri PankovCSTD= $(CSTD_GNU99) 46*69b1fd3fSRichard LoweLDLIBS += $(CONVLIBDIR) -lconv $(ELFLIBDIR) -lelf 475661bb76SJohn Levon 4867298654SdamicoROOTLIBBLURB= $(BLURBS:%=$(ROOTSHLIBCCS)/%) 497c478bd9Sstevel@tonic-gate 5067298654Sdamico$(ROOTLIBBLURB) := FILEMODE= 444 517c478bd9Sstevel@tonic-gate 527c478bd9Sstevel@tonic-gate%.o: ../common/%.c 537c478bd9Sstevel@tonic-gate $(COMPILE.c) $< 547c478bd9Sstevel@tonic-gate.PARALLEL: $(OBJS) 55