80e2ca8596e3435bc3b76f3c597833ea0a87f85e#
80e2ca8596e3435bc3b76f3c597833ea0a87f85e# CDDL HEADER START
80e2ca8596e3435bc3b76f3c597833ea0a87f85e#
80e2ca8596e3435bc3b76f3c597833ea0a87f85e# The contents of this file are subject to the terms of the
80e2ca8596e3435bc3b76f3c597833ea0a87f85e# Common Development and Distribution License (the "License").
80e2ca8596e3435bc3b76f3c597833ea0a87f85e# You may not use this file except in compliance with the License.
80e2ca8596e3435bc3b76f3c597833ea0a87f85e#
80e2ca8596e3435bc3b76f3c597833ea0a87f85e# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
80e2ca8596e3435bc3b76f3c597833ea0a87f85e# or http://www.opensolaris.org/os/licensing.
80e2ca8596e3435bc3b76f3c597833ea0a87f85e# See the License for the specific language governing permissions
80e2ca8596e3435bc3b76f3c597833ea0a87f85e# and limitations under the License.
80e2ca8596e3435bc3b76f3c597833ea0a87f85e#
80e2ca8596e3435bc3b76f3c597833ea0a87f85e# When distributing Covered Code, include this CDDL HEADER in each
80e2ca8596e3435bc3b76f3c597833ea0a87f85e# file and include the License file at usr/src/OPENSOLARIS.LICENSE.
80e2ca8596e3435bc3b76f3c597833ea0a87f85e# If applicable, add the following below this CDDL HEADER, with the
80e2ca8596e3435bc3b76f3c597833ea0a87f85e# fields enclosed by brackets "[]" replaced with your own identifying
80e2ca8596e3435bc3b76f3c597833ea0a87f85e# information: Portions Copyright [yyyy] [name of copyright owner]
80e2ca8596e3435bc3b76f3c597833ea0a87f85e#
80e2ca8596e3435bc3b76f3c597833ea0a87f85e# CDDL HEADER END
80e2ca8596e3435bc3b76f3c597833ea0a87f85e#
80e2ca8596e3435bc3b76f3c597833ea0a87f85e#
80e2ca8596e3435bc3b76f3c597833ea0a87f85e# Copyright (c) 2010, Oracle and/or its affiliates. All rights reserved.
80e2ca8596e3435bc3b76f3c597833ea0a87f85e#
80e2ca8596e3435bc3b76f3c597833ea0a87f85e
80e2ca8596e3435bc3b76f3c597833ea0a87f85einclude $(SRC)/lib/Makefile.lib
80e2ca8596e3435bc3b76f3c597833ea0a87f85e
80e2ca8596e3435bc3b76f3c597833ea0a87f85eLIBRARY = $(BRAND)_librtld_db.a
80e2ca8596e3435bc3b76f3c597833ea0a87f85eVERS = .1
80e2ca8596e3435bc3b76f3c597833ea0a87f85e
80e2ca8596e3435bc3b76f3c597833ea0a87f85eCSRCS = $(COBJS:%o=$(BRAND_SHARED)/librtld_db/common/%c)
80e2ca8596e3435bc3b76f3c597833ea0a87f85eSRCS = $(CSRCS)
80e2ca8596e3435bc3b76f3c597833ea0a87f85e
80e2ca8596e3435bc3b76f3c597833ea0a87f85eSRCDIR = $(BRAND_SHARED)/librtld_db/common
80e2ca8596e3435bc3b76f3c597833ea0a87f85eUTSBASE = $(SRC)/uts
80e2ca8596e3435bc3b76f3c597833ea0a87f85e
80e2ca8596e3435bc3b76f3c597833ea0a87f85e#
80e2ca8596e3435bc3b76f3c597833ea0a87f85e# ATTENTION:
80e2ca8596e3435bc3b76f3c597833ea0a87f85e# Librtl_db brand plugin libraries should NOT directly invoke any
80e2ca8596e3435bc3b76f3c597833ea0a87f85e# libproc.so interfaces or be linked against libproc. If a librtl_db
80e2ca8596e3435bc3b76f3c597833ea0a87f85e# brand plugin library uses libproc.so interfaces then it may break
80e2ca8596e3435bc3b76f3c597833ea0a87f85e# any other librtld_db consumers (like mdb) that tries to attach
80e2ca8596e3435bc3b76f3c597833ea0a87f85e# to a branded process. The only safe interfaces that the a librtld_db
80e2ca8596e3435bc3b76f3c597833ea0a87f85e# brand plugin library can use to access a target process are the
80e2ca8596e3435bc3b76f3c597833ea0a87f85e# proc_service(3PROC) apis.
80e2ca8596e3435bc3b76f3c597833ea0a87f85e#
80e2ca8596e3435bc3b76f3c597833ea0a87f85eDYNFLAGS += $(VERSREF) -M$(BRAND_SHARED)/librtld_db/common/mapfile-vers
80e2ca8596e3435bc3b76f3c597833ea0a87f85eLIBS = $(DYNLIB)
80e2ca8596e3435bc3b76f3c597833ea0a87f85eLDLIBS += -lc -lrtld_db
80e2ca8596e3435bc3b76f3c597833ea0a87f85eCFLAGS += $(CCVERBOSE)
80e2ca8596e3435bc3b76f3c597833ea0a87f85eCPPFLAGS += -D_REENTRANT \
80e2ca8596e3435bc3b76f3c597833ea0a87f85e -I$(SRC)/cmd/sgs/librtld_db/common \
80e2ca8596e3435bc3b76f3c597833ea0a87f85e -I$(SRC)/cmd/sgs/include \
80e2ca8596e3435bc3b76f3c597833ea0a87f85e -I$(SRC)/cmd/sgs/include/$(MACH)
80e2ca8596e3435bc3b76f3c597833ea0a87f85e
80e2ca8596e3435bc3b76f3c597833ea0a87f85eROOTLIBDIR = $(ROOT)/usr/lib/brand/$(BRAND)
80e2ca8596e3435bc3b76f3c597833ea0a87f85eROOTLIBDIR64 = $(ROOT)/usr/lib/brand/$(BRAND)/$(MACH64)
80e2ca8596e3435bc3b76f3c597833ea0a87f85e
80e2ca8596e3435bc3b76f3c597833ea0a87f85e#
80e2ca8596e3435bc3b76f3c597833ea0a87f85e# The top level Makefiles define define TEXT_DOMAIN. But librtld_db.so.1
80e2ca8596e3435bc3b76f3c597833ea0a87f85e# isn't internationalized and this library won't be either. The only
80e2ca8596e3435bc3b76f3c597833ea0a87f85e# messages that this library can generate are messages used for debugging
80e2ca8596e3435bc3b76f3c597833ea0a87f85e# the operation of the library itself.
80e2ca8596e3435bc3b76f3c597833ea0a87f85e#
80e2ca8596e3435bc3b76f3c597833ea0a87f85eDTEXTDOM =
80e2ca8596e3435bc3b76f3c597833ea0a87f85e
80e2ca8596e3435bc3b76f3c597833ea0a87f85e.KEEP_STATE:
80e2ca8596e3435bc3b76f3c597833ea0a87f85e
80e2ca8596e3435bc3b76f3c597833ea0a87f85eall: $(LIBS)
80e2ca8596e3435bc3b76f3c597833ea0a87f85e
80e2ca8596e3435bc3b76f3c597833ea0a87f85elint: lintcheck
80e2ca8596e3435bc3b76f3c597833ea0a87f85e
80e2ca8596e3435bc3b76f3c597833ea0a87f85epics/%64.o: $(BRAND_SHARED)/librtld_db/common/%.c
80e2ca8596e3435bc3b76f3c597833ea0a87f85e $(COMPILE.c) -D_ELF64 $(PICFLAGS) -o $@ $<
80e2ca8596e3435bc3b76f3c597833ea0a87f85e $(POST_PROCESS_O)
80e2ca8596e3435bc3b76f3c597833ea0a87f85e
80e2ca8596e3435bc3b76f3c597833ea0a87f85einclude $(SRC)/lib/Makefile.targ