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.
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.
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]
22 # Copyright (c) 1995, 2010, Oracle and/or its affiliates. All rights reserved.
28 COMOBJS= rtld_db.o rd_elf.o
31 OBJECTS = $(BLTOBJ) $(COMOBJS) $(COMOBJS64) $(PLTOBJS)
33 include $(SRC)/lib/Makefile.lib
34 include $(SRC)/cmd/sgs/Makefile.com
38 CPPFLAGS += -I$(SRCBASE)/lib/libc/inc
39 DYNFLAGS += $(VERSREF)
40 LDLIBS += $(CONVLIBDIR) $(CONV_LIB) -lc
42 CERRWARN += -Wno-uninitialized
47 BLTFILES= $(BLTDEFS) $(BLTDATA)
49 SGSMSGCOM= ../common/librtld_db.msg
50 SGSMSGINTEL= ../common/librtld_db.intel.msg
51 SGSMSGSPARCV9= ../common/librtld_db.sparcv9.msg
52 SGSMSGTARG= $(SGSMSGCOM)
53 SGSMSGALL= $(SGSMSGCOM)
54 SGSMSGFLAGS += -h $(BLTDEFS) -d $(BLTDATA)
56 SRCS= ../common/llib-lrtld_db
58 CLEANFILES += $(BLTFILES)
59 CLOBBERFILES += $(DYNLIB)
61 ROOTFS_DYNLIB= $(DYNLIB:%=$(ROOTFS_LIBDIR)/%)
62 ROOTFS_LINKS= $(ROOTFS_LIBDIR)/$(LIBLINKS)
64 ROOTFS_DYNLIB64= $(DYNLIB:%=$(ROOTFS_LIBDIR64)/%)
65 ROOTFS_LINKS64= $(ROOTFS_LIBDIR64)/$(LIBLINKS)
67 $(ROOTFS_DYNLIB) := FILEMODE= 755
68 $(ROOTFS_DYNLIB64) := FILEMODE= 755