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 LINTFLAGS += -u -erroff=E_NAME_DECL_NOT_USED_DEF2
43 LINTFLAGS64 += -u -erroff=E_NAME_DECL_NOT_USED_DEF2
45 CERRWARN += -_gcc=-Wno-uninitialized
50 BLTFILES= $(BLTDEFS) $(BLTDATA)
52 SGSMSGCOM= ../common/librtld_db.msg
53 SGSMSGINTEL= ../common/librtld_db.intel.msg
54 SGSMSGSPARCV9= ../common/librtld_db.sparcv9.msg
55 SGSMSGTARG= $(SGSMSGCOM)
56 SGSMSGALL= $(SGSMSGCOM)
57 SGSMSGFLAGS += -h $(BLTDEFS) -d $(BLTDATA)
59 SRCS= ../common/llib-lrtld_db
60 LINTSRCS= $(COMOBJS:%.o=../common/%.c) $(PLTSRCS) $(BLTDATA)
62 CLEANFILES += $(BLTFILES) $(LINTOUTS)
63 CLOBBERFILES += $(DYNLIB) $(LINTLIB)
65 ROOTFS_DYNLIB= $(DYNLIB:%=$(ROOTFS_LIBDIR)/%)
66 ROOTFS_LINTLIB= $(LINTLIB:%=$(ROOTFS_LIBDIR)/%)
67 ROOTFS_LINKS= $(ROOTFS_LIBDIR)/$(LIBLINKS)
69 ROOTFS_DYNLIB64= $(DYNLIB:%=$(ROOTFS_LIBDIR64)/%)
70 ROOTFS_LINTLIB64= $(LINTLIB:%=$(ROOTFS_LIBDIR64)/%)
71 ROOTFS_LINKS64= $(ROOTFS_LIBDIR64)/$(LIBLINKS)
73 $(ROOTFS_DYNLIB) := FILEMODE= 755
74 $(ROOTFS_DYNLIB64) := FILEMODE= 755
76 pics/rd_elf.o := CERRWARN += -erroff=E_END_OF_LOOP_CODE_NOT_REACHED
77 pics/rd_elf64.o := CERRWARN += -erroff=E_END_OF_LOOP_CODE_NOT_REACHED