Makefile.com revision 1976:f0691a145b7e
1119679Smbr#
2174294Sobrien# CDDL HEADER START
3174294Sobrien#
4119679Smbr# The contents of this file are subject to the terms of the
5119679Smbr# Common Development and Distribution License (the "License").
6119679Smbr# You may not use this file except in compliance with the License.
7119679Smbr#
8119679Smbr# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
9119679Smbr# or http://www.opensolaris.org/os/licensing.
10119679Smbr# See the License for the specific language governing permissions
11119679Smbr# and limitations under the License.
12119679Smbr#
13119679Smbr# When distributing Covered Code, include this CDDL HEADER in each
14119679Smbr# file and include the License file at usr/src/OPENSOLARIS.LICENSE.
15119679Smbr# If applicable, add the following below this CDDL HEADER, with the
16119679Smbr# fields enclosed by brackets "[]" replaced with your own identifying
17119679Smbr# information: Portions Copyright [yyyy] [name of copyright owner]
18119679Smbr#
19119679Smbr# CDDL HEADER END
20119679Smbr#
21119679Smbr#
22119679Smbr# ident	"%Z%%M%	%I%	%E% SMI"
23119679Smbr#
24119679Smbr# Copyright 2006 Sun Microsystems, Inc.  All rights reserved.
25119679Smbr# Use is subject to license terms.
26119679Smbr
27119679SmbrLIBRARY=	ldprof.a
28119679SmbrVERS=		.1
29119679SmbrCOMOBJS=	profile.o
30119679SmbrBLTOBJ=		msg.o
31119679SmbrOBJECTS=	$(COMOBJS) $(BLTOBJ)
32119679Smbr
33119679Smbrinclude		../../../../lib/Makefile.lib
34119679Smbrinclude		../../Makefile.com
35119679Smbr
36119679SmbrZIGNORE=
37119679Smbr
38119679SmbrROOTLIBDIR=	$(ROOT)/usr/lib/link_audit
39119679Smbr
40119679SmbrSGSPROTO=	../../proto/$(MACH)
41174294Sobrien
42119679SmbrMAPFILE=	mapfile-vers
43119679Smbr
44119679Smbr# Building SUNWonld results in a call to the `package' target.  Requirements
45119679Smbr# needed to run this application on older releases are established:
46119679Smbr#   dlopen/dlclose requires libdl.so.1 prior to 5.10
47119679Smbr# 
48119679SmbrDLLIB =		$(VAR_DL_LIB)
49119679Smbrpackage	:=	DLLIB = $(VAR_PKG_DL_LIB)
50119679Smbr
51119679SmbrDYNFLAGS +=	-M$(MAPFILE) $(USE_PROTO)
52119679SmbrCPPFLAGS=	-I. -I../common -I../../include \
53119679Smbr		-I../../rtld/common \
54119679Smbr		-I../../include/$(MACH) \
55119679Smbr		-I$(SRCBASE)/lib/libc/inc \
56119679Smbr		-I$(SRCBASE)/uts/common/krtld \
57119679Smbr		-I$(SRC)/common/sgsrtcid \
58119679Smbr		-I$(SRCBASE)/uts/$(ARCH)/sys \
59119679Smbr		$(CPPFLAGS.master)
60119679SmbrCFLAGS +=	$(C_PICFLAGS)
61174294SobrienLDLIBS +=	-lmapmalloc -lc $(DLLIB)
62119679Smbr
63119679SmbrLINTFLAGS +=	-u -erroff=E_NAME_DECL_NOT_USED_DEF2
64119679SmbrLINTFLAGS64 +=	-u -erroff=E_NAME_DECL_NOT_USED_DEF2
65119679Smbr
66119679SmbrBLTDEFS=	msg.h
67119679SmbrBLTDATA=	msg.c
68119679SmbrBLTMESG=	$(SGSMSGDIR)/ldprof
69
70BLTFILES=	$(BLTDEFS) $(BLTDATA) $(BLTMESG)
71
72SGSMSGCOM=	../common/ldprof.msg
73SGSMSGTARG=	$(SGSMSGCOM)
74SGSMSGALL=	$(SGSMSGCOM)
75SGSMSGFLAGS +=	-h $(BLTDEFS) -d $(BLTDATA) -m $(BLTMESG) -n ldprof_msg
76
77SRCS=		$(COMOBJS:%.o=../common/%.c) $(BLTDATA)
78LINTSRCS=	$(SRCS) ../common/lintsup.c
79
80CLEANFILES +=	$(LINTOUTS) $(BLTFILES)
81CLOBBERFILES +=	$(DYNLIB) $(LINTLIB)
82
83ROOTDYNLIB=	$(DYNLIB:%=$(ROOTLIBDIR)/%)
84