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.
7 #
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.
12 #
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]
18 #
19 # CDDL HEADER END
20 #
21 #
22 # Copyright (c) 2010, Oracle and/or its affiliates. All rights reserved.
23 #
24
25 include $(SRC)/lib/Makefile.lib
26
27 LIBRARY = $(BRAND)_librtld_db.a
28 VERS = .1
29
30 CSRCS = $(COBJS:%o=$(BRAND_SHARED)/librtld_db/common/%c)
31 SRCS = $(CSRCS)
32
33 SRCDIR = $(BRAND_SHARED)/librtld_db/common
34 UTSBASE = $(SRC)/uts
35
36 #
37 # ATTENTION:
38 # Librtl_db brand plugin libraries should NOT directly invoke any
39 # libproc.so interfaces or be linked against libproc. If a librtl_db
40 # brand plugin library uses libproc.so interfaces then it may break
41 # any other librtld_db consumers (like mdb) that tries to attach
42 # to a branded process. The only safe interfaces that the a librtld_db
43 # brand plugin library can use to access a target process are the
44 # proc_service(3PROC) apis.
45 #
46 DYNFLAGS += $(VERSREF) -M$(BRAND_SHARED)/librtld_db/common/mapfile-vers
47 LIBS = $(DYNLIB)
48 LDLIBS += -lc -lrtld_db
49 CFLAGS += $(CCVERBOSE)
50 CPPFLAGS += -D_REENTRANT \
51 -I$(SRC)/cmd/sgs/librtld_db/common \
52 -I$(SRC)/cmd/sgs/include \
53 -I$(SRC)/cmd/sgs/include/$(MACH)
54
55 ROOTLIBDIR = $(ROOT)/usr/lib/brand/$(BRAND)
56 ROOTLIBDIR64 = $(ROOT)/usr/lib/brand/$(BRAND)/$(MACH64)
57
58 #
59 # The top level Makefiles define define TEXT_DOMAIN. But librtld_db.so.1
60 # isn't internationalized and this library won't be either. The only
61 # messages that this library can generate are messages used for debugging
62 # the operation of the library itself.
63 #
64 DTEXTDOM =
65
66 .KEEP_STATE:
67
68 all: $(LIBS)
69
70 lint: lintcheck
71
72 pics/%64.o: $(BRAND_SHARED)/librtld_db/common/%.c
73 $(COMPILE.c) -D_ELF64 $(PICFLAGS) -o $@ $<
74 $(POST_PROCESS_O)
|
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.
7 #
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.
12 #
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]
18 #
19 # CDDL HEADER END
20 #
21 #
22 # Copyright (c) 2010, Oracle and/or its affiliates. All rights reserved.
23 #
24 # Copyright (c) 2018, Joyent, Inc.
25
26 include $(SRC)/lib/Makefile.lib
27
28 LIBRARY = $(BRAND)_librtld_db.a
29 VERS = .1
30
31 CSRCS = $(COBJS:%o=$(BRAND_SHARED)/librtld_db/common/%c)
32 SRCS = $(CSRCS)
33
34 SRCDIR = $(BRAND_SHARED)/librtld_db/common
35 UTSBASE = $(SRC)/uts
36
37 #
38 # ATTENTION:
39 # Librtl_db brand plugin libraries should NOT directly invoke any
40 # libproc.so interfaces or be linked against libproc. If a librtl_db
41 # brand plugin library uses libproc.so interfaces then it may break
42 # any other librtld_db consumers (like mdb) that tries to attach
43 # to a branded process. The only safe interfaces that the a librtld_db
44 # brand plugin library can use to access a target process are the
45 # proc_service(3PROC) apis.
46 #
47 DYNFLAGS += $(VERSREF) -M$(BRAND_SHARED)/librtld_db/common/mapfile-vers
48 LIBS = $(DYNLIB)
49 LDLIBS += -lc -lrtld_db
50 CFLAGS += $(CCVERBOSE)
51 CPPFLAGS += -D_REENTRANT \
52 -I$(SRC)/cmd/sgs/librtld_db/common \
53 -I$(SRC)/cmd/sgs/include \
54 -I$(SRC)/cmd/sgs/include/$(MACH)
55
56 # not linted
57 SMATCH=off
58
59 ROOTLIBDIR = $(ROOT)/usr/lib/brand/$(BRAND)
60 ROOTLIBDIR64 = $(ROOT)/usr/lib/brand/$(BRAND)/$(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 #
68 DTEXTDOM =
69
70 .KEEP_STATE:
71
72 all: $(LIBS)
73
74 lint: lintcheck
75
76 pics/%64.o: $(BRAND_SHARED)/librtld_db/common/%.c
77 $(COMPILE.c) -D_ELF64 $(PICFLAGS) -o $@ $<
78 $(POST_PROCESS_O)
|