6811333 Remove prom_printf() message in emlxs driver
[opensolaris.git] / usr / src / lib / brand / sn1 / librtld_db / Makefile.com
blobfa245f519688775f69980298229c964f085c8454
2 # CDDL HEADER START
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]
19 # CDDL HEADER END
22 # Copyright 2008 Sun Microsystems, Inc.  All rights reserved.
23 # Use is subject to license terms.
26 LIBRARY =       sn1_librtld_db.a
27 VERS    =       .1
28 COBJS   =       sn1_librtld_db.o
29 OBJECTS =       $(COBJS) $(COBJS64)
31 include $(SRC)/lib/Makefile.lib
32 include ../../Makefile.sn1
34 CSRCS =         $(COBJS:%o=../common/%c)
35 SRCS  =         $(CSRCS)
37 SRCDIR =        ../common
38 UTSBASE =       $(SRC)/uts
41 # ATTENTION:
42 #       Librtl_db brand plugin libraries should NOT directly invoke any
43 #       libproc.so interfaces or be linked against libproc.  If a librtl_db
44 #       brand plugin library uses libproc.so interfaces then it may break
45 #       any other librtld_db consumers (like mdb) that tries to attach
46 #       to a branded process.  The only safe interfaces that the a librtld_db
47 #       brand plugin library can use to access a target process are the
48 #       proc_service(3PROC) apis.
50 DYNFLAGS +=     $(VERSREF) -M../common/mapfile-vers
51 LIBS =          $(DYNLIB)
52 LDLIBS +=       -lc -lrtld_db
53 CFLAGS +=       $(CCVERBOSE)
54 CPPFLAGS +=     -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)
59 ROOTLIBDIR =    $(ROOT)/usr/lib/brand/sn1
60 ROOTLIBDIR64 =  $(ROOT)/usr/lib/brand/sn1/$(MACH64)
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.
68 DTEXTDOM =
70 .KEEP_STATE:
72 all: $(LIBS)
74 lint: lintcheck
76 pics/%64.o:     ../common/%.c
77                 $(COMPILE.c) -D_ELF64 $(PICFLAGS) -o $@ $<
78                 $(POST_PROCESS_O)
80 include $(SRC)/lib/Makefile.targ