xref: /titanic_41/usr/src/cmd/sgs/librtld_db/Makefile.com (revision c138f478d2bc94e73ab8f6a084e323bec25e62f5)
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# Copyright 2004 Sun Microsystems, Inc.  All rights reserved.
24# Use is subject to license terms.
25#
26# ident	"%Z%%M%	%I%	%E% SMI"
27#
28
29LIBRARY=	librtld_db.a
30VERS=		.1
31
32COMOBJS=	rtld_db.o	rd_elf.o
33BLTOBJ=		msg.o
34
35OBJECTS =	$(BLTOBJ) $(COMOBJS) $(COMOBJS64) $(PLTOBJS)
36
37include		$(SRC)/lib/Makefile.lib
38include		$(SRC)/cmd/sgs/Makefile.com
39
40MAPFILE=	../common/mapfile-vers
41
42DYNFLAGS +=	-M$(MAPFILE) $(VERSREF)
43LDLIBS +=	$(CONVLIBDIR) -lconv -lc
44
45LINTFLAGS +=	-u
46LINTFLAGS64 +=	-u
47
48
49BLTDEFS=	msg.h
50BLTDATA=	msg.c
51
52BLTFILES=	$(BLTDEFS) $(BLTDATA)
53
54SGSMSGCOM=	../common/librtld_db.msg
55SGSMSGINTEL=	../common/librtld_db.intel.msg
56SGSMSGSPARC=	../common/librtld_db.sparc.msg
57SGSMSGTARG=	$(SGSMSGCOM)
58SGSMSGALL=	$(SGSMSGCOM)
59SGSMSGFLAGS +=	-h $(BLTDEFS) -d $(BLTDATA)
60
61SRCS=		../common/llib-lrtld_db
62LINTSRCS=	$(COMOBJS:%.o=../common/%.c) $(PLTSRCS) \
63		$(BLTDATA) ../common/lintsup.c
64
65CLEANFILES +=	$(BLTFILES) $(LINTOUTS)
66CLOBBERFILES +=	$(DYNLIB) $(LINTLIB)
67
68ROOTFS_DYNLIB=	$(DYNLIB:%=$(ROOTFS_LIBDIR)/%)
69ROOTFS_LINTLIB=	$(LINTLIB:%=$(ROOTFS_LIBDIR)/%)
70ROOTFS_LINKS=	$(ROOTFS_LIBDIR)/$(LIBLINKS)
71
72ROOTFS_DYNLIB64=	$(DYNLIB:%=$(ROOTFS_LIBDIR64)/%)
73ROOTFS_LINTLIB64=	$(LINTLIB:%=$(ROOTFS_LIBDIR64)/%)
74ROOTFS_LINKS64=		$(ROOTFS_LIBDIR64)/$(LIBLINKS)
75
76$(ROOTFS_DYNLIB) :=	FILEMODE= 755
77$(ROOTFS_DYNLIB64) :=	FILEMODE= 755
78
79$(VAR_POUND_1)$(ROOTFS_LIBDIR)/$(LINTLIBSRC): ../common/$(LINTLIBSRC)
80	$(VAR_POUND_1)$(INS.file) ../common/$(LINTLIBSRC)
81