xref: /titanic_41/usr/src/cmd/sgs/prof/Makefile.com (revision 7014882c6a3672fd0e5d60200af8643ae53c5928)
1b9bd317cSab196087#
2b9bd317cSab196087# CDDL HEADER START
3b9bd317cSab196087#
4b9bd317cSab196087# The contents of this file are subject to the terms of the
5b9bd317cSab196087# Common Development and Distribution License (the "License").
6b9bd317cSab196087# You may not use this file except in compliance with the License.
7b9bd317cSab196087
8b9bd317cSab196087# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
9b9bd317cSab196087# or http://www.opensolaris.org/os/licensing.
10b9bd317cSab196087# See the License for the specific language governing permissions
11b9bd317cSab196087# and limitations under the License.
12b9bd317cSab196087#
13b9bd317cSab196087# When distributing Covered Code, include this CDDL HEADER in each
14b9bd317cSab196087# file and include the License file at usr/src/OPENSOLARIS.LICENSE.
15b9bd317cSab196087# If applicable, add the following below this CDDL HEADER, with the
16b9bd317cSab196087# fields enclosed by brackets "[]" replaced with your own identifying
17b9bd317cSab196087# information: Portions Copyright [yyyy] [name of copyright owner]
18b9bd317cSab196087#
19b9bd317cSab196087# CDDL HEADER END
20b9bd317cSab196087#
21b9bd317cSab196087#
2269112eddSAli Bahrami# Copyright 2010 Sun Microsystems, Inc.  All rights reserved.
23b9bd317cSab196087# Use is subject to license terms.
24b9bd317cSab196087#
25b9bd317cSab196087# cmd/sgs/prof/Makefile.com
26b9bd317cSab196087#
27b9bd317cSab196087
28b9bd317cSab196087PROG=		prof
29b9bd317cSab196087
30b9bd317cSab196087include 	$(SRC)/cmd/Makefile.cmd
31b9bd317cSab196087include 	$(SRC)/cmd/sgs/Makefile.com
32b9bd317cSab196087
33b9bd317cSab196087COMOBJS=	prof.o profv.o lookup.o rdelf.o \
34b9bd317cSab196087		symintOpen.o symintClose.o symintUtil.o symintErr.o symintLoad.o
35b9bd317cSab196087
36b9bd317cSab196087OBJS=		$(COMOBJS)
37b9bd317cSab196087
38b9bd317cSab196087SRCS=		$(COMOBJS:%.o=../common/%.c)
39b9bd317cSab196087
40b9bd317cSab196087INCLIST=	-I../common -I../../include -I../../include/$(MACH)
41b9bd317cSab196087
4269112eddSAli BahramiCPPFLAGS=	$(INCLIST) $(DEFLIST) $(CPPFLAGS.master) -I$(ELFCAP)
43b9bd317cSab196087CFLAGS +=	$(CCVERBOSE)
44b9bd317cSab196087C99MODE=	$(C99_ENABLE)
45*7014882cSRichard LoweCERRWARN +=	-_gcc=-Wno-uninitialized
46b9bd317cSab196087LDLIBS +=	$(CONVLIBDIR) $(CONV_LIB) $(ELFLIBDIR) -lelf
47b9bd317cSab196087LINTSRCS =	$(SRCS)
48b9bd317cSab196087LINTFLAGS +=	-x
49b9bd317cSab196087CLEANFILES +=	$(LINTOUTS)
50b9bd317cSab196087
51b9bd317cSab196087%.o:		../common/%.c
52b9bd317cSab196087		$(COMPILE.c) $<
53