xref: /titanic_52/usr/src/cmd/sgs/ldprof/Makefile.com (revision d58fda4376e4bf67072ce2e69f6f47036f9dbb68)
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 2004 Sun Microsystems, Inc.  All rights reserved.
26# Use is subject to license terms.
27
28LIBRARY=	ldprof.a
29VERS=		.1
30COMOBJS=	profile.o
31BLTOBJ=		msg.o
32OBJECTS=	$(COMOBJS) $(BLTOBJ)
33
34include		../../../../lib/Makefile.lib
35include		../../Makefile.com
36
37ZIGNORE=
38
39ROOTLIBDIR=	$(ROOT)/usr/lib/link_audit
40
41SGSPROTO=	../../proto/$(MACH)
42
43MAPFILE=	mapfile-vers
44
45# Building SUNWonld results in a call to the `package' target.  Requirements
46# needed to run this application on older releases are established:
47#   dlopen/dlclose requires libdl.so.1 prior to 5.10
48#
49DLLIB =		$(VAR_DL_LIB)
50package	:=	DLLIB = $(VAR_PKG_DL_LIB)
51
52DYNFLAGS +=	-M$(MAPFILE) $(USE_PROTO)
53CPPFLAGS=	-I. -I../common -I../../include \
54		-I../../rtld/common \
55		-I../../include/$(MACH) \
56		-I$(SRCBASE)/lib/libc/inc \
57		-I$(SRCBASE)/uts/common/krtld \
58		-I$(SRCBASE)/uts/$(ARCH)/sys \
59		$(CPPFLAGS.master)
60CFLAGS +=	$(C_PICFLAGS)
61LDLIBS +=	-lmapmalloc -lc $(DLLIB)
62
63LINTFLAGS +=	-u -erroff=E_NAME_DECL_NOT_USED_DEF2
64LINTFLAGS64 +=	-u -erroff=E_NAME_DECL_NOT_USED_DEF2
65
66BLTDEFS=	msg.h
67BLTDATA=	msg.c
68BLTMESG=	$(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