Makefile.com revision 7933:6a8cc62fe2a1
11414Smcimadamore# 21414Smcimadamore# CDDL HEADER START 31414Smcimadamore# 41414Smcimadamore# The contents of this file are subject to the terms of the 51414Smcimadamore# Common Development and Distribution License (the "License"). 61414Smcimadamore# You may not use this file except in compliance with the License. 71414Smcimadamore# 81414Smcimadamore# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE 91414Smcimadamore# or http://www.opensolaris.org/os/licensing. 101414Smcimadamore# See the License for the specific language governing permissions 111414Smcimadamore# and limitations under the License. 121414Smcimadamore# 131414Smcimadamore# When distributing Covered Code, include this CDDL HEADER in each 141414Smcimadamore# file and include the License file at usr/src/OPENSOLARIS.LICENSE. 151414Smcimadamore# If applicable, add the following below this CDDL HEADER, with the 161414Smcimadamore# fields enclosed by brackets "[]" replaced with your own identifying 171414Smcimadamore# information: Portions Copyright [yyyy] [name of copyright owner] 181414Smcimadamore# 191414Smcimadamore# CDDL HEADER END 201414Smcimadamore# 211414Smcimadamore# 221414Smcimadamore# Copyright 2008 Sun Microsystems, Inc. All rights reserved. 231414Smcimadamore# Use is subject to license terms. 241414Smcimadamore# 251414Smcimadamore 261414SmcimadamoreLIBRARY = sn1_librtld_db.a 271414SmcimadamoreVERS = .1 281414SmcimadamoreCOBJS = sn1_librtld_db.o 291414SmcimadamoreOBJECTS = $(COBJS) $(COBJS64) 301414Smcimadamore 311414Smcimadamoreinclude $(SRC)/lib/Makefile.lib 321414Smcimadamoreinclude ../../Makefile.sn1 331414Smcimadamore 341414SmcimadamoreCSRCS = $(COBJS:%o=../common/%c) 351414SmcimadamoreSRCS = $(CSRCS) 361414Smcimadamore 371414SmcimadamoreSRCDIR = ../common 381414SmcimadamoreUTSBASE = $(SRC)/uts 391414Smcimadamore 401414Smcimadamore# 411414Smcimadamore# ATTENTION: 421414Smcimadamore# Librtl_db brand plugin libraries should NOT directly invoke any 431414Smcimadamore# libproc.so interfaces or be linked against libproc. If a librtl_db 441414Smcimadamore# brand plugin library uses libproc.so interfaces then it may break 451414Smcimadamore# any other librtld_db consumers (like mdb) that tries to attach 461414Smcimadamore# to a branded process. The only safe interfaces that the a librtld_db 471414Smcimadamore# brand plugin library can use to access a target process are the 481414Smcimadamore# proc_service(3PROC) apis. 491414Smcimadamore# 501414SmcimadamoreDYNFLAGS += $(VERSREF) -M../common/mapfile-vers 51LIBS = $(DYNLIB) 52LDLIBS += -lc -lrtld_db 53CFLAGS += $(CCVERBOSE) 54CPPFLAGS += -D_REENTRANT -I../ -I$(UTSBASE)/common/brand/sn1 \ 55 -I../../../../../cmd/sgs/librtld_db/common \ 56 -I../../../../../cmd/sgs/include \ 57 -I../../../../../cmd/sgs/include/$(MACH) 58 59ROOTLIBDIR = $(ROOT)/usr/lib/brand/sn1 60ROOTLIBDIR64 = $(ROOT)/usr/lib/brand/sn1/$(MACH64) 61 62# 63# The top level Makefiles define define TEXT_DOMAIN. But librtld_db.so.1 64# isn't internationalized and this library won't be either. The only 65# messages that this library can generate are messages used for debugging 66# the operation of the library itself. 67# 68DTEXTDOM = 69 70.KEEP_STATE: 71 72all: $(LIBS) 73 74lint: lintcheck 75 76pics/%64.o: ../common/%.c 77 $(COMPILE.c) -D_ELF64 $(PICFLAGS) -o $@ $< 78 $(POST_PROCESS_O) 79 80include $(SRC)/lib/Makefile.targ 81