xref: /illumos-gate/usr/src/cmd/sgs/ldprof/Makefile.com (revision 6d02032db7b674f185405d42cc8bf10a46a9ab3a)
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 (the "License").
6# You may not use this file except in compliance with the License.
7#
8# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
9# or http://www.opensolaris.org/os/licensing.
10# See the License for the specific language governing permissions
11# and limitations under the License.
12#
13# When distributing Covered Code, include this CDDL HEADER in each
14# file and include the License file at usr/src/OPENSOLARIS.LICENSE.
15# If applicable, add the following below this CDDL HEADER, with the
16# fields enclosed by brackets "[]" replaced with your own identifying
17# information: Portions Copyright [yyyy] [name of copyright owner]
18#
19# CDDL HEADER END
20#
21
22#
23# Copyright 2010 Sun Microsystems, Inc.  All rights reserved.
24# Use is subject to license terms.
25#
26
27LIBRARY=	ldprof.a
28VERS=		.1
29COMOBJS=	profile.o
30BLTOBJ=		msg.o
31OBJECTS=	$(COMOBJS) $(BLTOBJ)
32
33include		../../../../lib/Makefile.lib
34include		../../Makefile.com
35
36ROOTLIBDIR=	$(ROOT)/usr/lib/link_audit
37
38SGSPROTO=	../../proto/$(MACH)
39
40MAPFILES =	mapfile-vers
41
42DYNFLAGS +=	$(CC_USE_PROTO)
43CPPFLAGS=	-I. -I../common -I../../include \
44		-I../../rtld/common \
45		-I../../include/$(MACH) \
46		-I$(SRCBASE)/lib/libc/inc \
47		-I$(SRCBASE)/uts/common/krtld \
48		-I$(SRC)/common/sgsrtcid \
49		-I$(SRCBASE)/uts/$(ARCH)/sys \
50		$(CPPFLAGS.master) -I$(ELFCAP)
51CFLAGS +=	$(C_PICFLAGS)
52
53lint :=		ZRECORD =
54LDLIBS +=	$(ZRECORD) -lmapmalloc -lc $(DLLIB)
55
56LINTFLAGS +=	-u -erroff=E_NAME_DECL_NOT_USED_DEF2
57LINTFLAGS64 +=	-u -erroff=E_NAME_DECL_NOT_USED_DEF2
58
59BLTDEFS=	msg.h
60BLTDATA=	msg.c
61BLTMESG=	$(SGSMSGDIR)/ldprof
62
63BLTFILES=	$(BLTDEFS) $(BLTDATA) $(BLTMESG)
64
65SGSMSGCOM=	../common/ldprof.msg
66SGSMSGTARG=	$(SGSMSGCOM)
67SGSMSGALL=	$(SGSMSGCOM)
68SGSMSGFLAGS +=	-h $(BLTDEFS) -d $(BLTDATA) -m $(BLTMESG) -n ldprof_msg
69
70SRCS=		$(COMOBJS:%.o=../common/%.c) $(BLTDATA)
71LINTSRCS=	$(SRCS) ../common/lintsup.c
72
73CLEANFILES +=	$(LINTOUTS) $(BLTFILES)
74CLOBBERFILES +=	$(DYNLIB) $(LINTLIB)
75
76ROOTDYNLIB=	$(DYNLIB:%=$(ROOTLIBDIR)/%)
77