xref: /titanic_52/usr/src/cmd/sgs/librtld/Makefile.com (revision bdfc6d18da790deeec2e0eb09c625902defe2498)
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.a
30VERS=		.1
31
32MACHOBJS=	_relocate.o
33COMOBJS=	dldump.o	dynamic.o	relocate.o	syms.o \
34		util.o
35BLTOBJ=		msg.o
36
37OBJECTS=	$(BLTOBJ)  $(MACHOBJS)  $(COMOBJS)
38
39
40include		$(SRC)/lib/Makefile.lib
41include		$(SRC)/cmd/sgs/Makefile.com
42
43MAPFILE=	../common/mapfile-vers
44
45CPPFLAGS +=	-I../../rtld/common -I$(SRCBASE)/lib/libc/inc \
46		-I$(SRCBASE)/uts/common/krtld
47DYNFLAGS +=	$(VERSREF) $(ZLAZYLOAD)
48LDLIBS +=	$(CONVLIBDIR) -lconv $(ELFLIBDIR) -lelf -lc
49
50LINTFLAGS +=	-u -erroff=E_NAME_DECL_NOT_USED_DEF2
51LINTFLAGS64 +=	-u -erroff=E_NAME_DECL_NOT_USED_DEF2
52
53# A bug in pmake causes redundancy when '+=' is conditionally assigned, so
54# '=' is used with extra variables.
55#
56XXXFLAGS=
57$(DYNLIB) :=	XXXFLAGS= $(USE_PROTO) -M$(MAPFILE)
58DYNFLAGS +=	$(XXXFLAGS)
59
60
61BLTDEFS=	msg.h
62BLTDATA=	msg.c
63BLTMESG=	$(SGSMSGDIR)/librtld
64
65BLTFILES=	$(BLTDEFS) $(BLTDATA) $(BLTMESG)
66
67SGSMSGCOM=	../common/librtld.msg
68SGSMSGALL=	$(SGSMSGCOM)
69SGSMSGTARG=	$(SGSMSGCOM)
70SGSMSGFLAGS +=	-h $(BLTDEFS) -d $(BLTDATA) -m $(BLTMESG) -n librtld_msg
71
72SRCS=		../common/llib-lrtld
73LINTSRCS=	$(MACHOBJS:%.o=%.c)  $(COMOBJS:%.o=../common/%.c) \
74		$(BLTDATA) ../common/lintsup.c
75
76CLEANFILES +=	$(BLTFILES) $(LINTOUTS)
77CLOBBERFILES +=	$(DYNLIB) $(LINTLIB) $(LIBLINKS)
78
79ROOTFS_DYNLIB=	$(DYNLIB:%=$(ROOTFS_LIBDIR)/%)
80