xref: /illumos-gate/usr/src/cmd/sgs/gprof/Makefile.com (revision 814a60b13c0ad90e5d2edfd29a7a84bbf416cc1a)
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# ident	"%Z%%M%	%I%	%E% SMI"
24#
25# Copyright 2005 Sun Microsystems, Inc.  All rights reserved.
26# Use is subject to license terms.
27#
28# cmd/sgs/gprof/Makefile.com
29#
30
31include 	../../../Makefile.cmd
32
33COMOBJS=	gprof.o arcs.o dfn.o lookup.o calls.o \
34		printgprof.o printlist.o readelf.o
35WHATOBJS=	whatdir.o
36
37OBJS=		$(COMOBJS) $(WHATOBJS)
38BLURBS=		gprof.callg.blurb gprof.flat.blurb
39SRCS=		$(COMOBJS:%.o=../common/%.c) \
40		$(WHATOBJS:%.o=../../whatdir/common/%.c)
41
42INCLIST=	-I../common -I../../include -I../../include/$(MACH)
43DEFLIST=	-DELF_OBJ -DELF
44CPPFLAGS=	$(INCLIST) $(DEFLIST) $(CPPFLAGS.master)
45CFLAGS +=	$(CCVERBOSE)
46C99MODE=	$(C99_ENABLE)
47LDLIBS +=	../../sgsdemangler/`mach`/libdemangle.a
48LINTFLAGS +=	$(LDLIBS)
49CLEANFILES +=	$(LINTOUT)
50
51ROOTCCSBLURB=	$(BLURBS:%=$(ROOTCCSBIN)/%)
52
53$(ROOTCCSBLURB) :=	FILEMODE=	444
54
55$(ROOTCCSBIN)/%: ../common/%
56		$(INS.file)
57
58%.o:		../common/%.c
59		$(COMPILE.c) $<
60
61%.o:		../../whatdir/common/%.c
62		$(COMPILE.c) $<
63.PARALLEL: $(OBJS)
64