3 #
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) 1991, 2010, Oracle and/or its affiliates. All rights reserved.
23 #
24
25 include $(SRC)/cmd/Makefile.cmd
26
27 # Note: Why SUBDIRS-common isn't sorted alphabetically
28 #
29 # The items under SGS are not independent of each other.
30 # They must be built in an order that ensures that
31 # all dependencies of an item have been built before the
32 # item itself.
33 #
34 SUBDIRS-common= libconv \
35 .WAIT \
36 libdl \
37 libelf \
38 liblddbg \
39 .WAIT \
40 libld \
41 libldmake \
42 libldstab \
156 # of these modules be built using the new ld. This `native' target allows us
157 # to build a local ld which will then be used to build the delivered version of
158 # itself and ld.so.1. Once this new functionality appears in the standard ld
159 # this target can be disabled.
160
161 native-add: native-proto FRC
162 @ cd tools/$(MACH); pwd; $(MAKE) native
163 @ cd libconv/$(MACH); pwd; $(MAKE)
164 @ cd libelf/$(MACH); pwd; $(MAKE) native
165 @ cd liblddbg/$(MACH); pwd; $(MAKE) native
166 @ cd libldstab/$(MACH); pwd; $(MAKE) native
167 @ cd libld/$(MACH); pwd; $(MAKE) native
168 @ cd ld/$(MACH); pwd; $(MAKE) native
169
170 native-clobber:
171 @ cd tools; pwd; $(MAKE) $(TARGET)
172 $(RM) -r proto/$(MACH)
173
174 native-proto:
175 -@mkdir -p proto/$(MACH)
176
177 FRC:
178
179 #
180 # Cross-reference customization: ignore the directories named by XRPRUNE,
181 # and tweak the file globs slightly.
182 #
183 XRPRUNE= rtld.4.x packages abi
184 XRADD= *.msg mapfile* llib-[a-z]*
185 XRDEL= Makefile* kobj_*
186
187 #
188 # Establish a set of directories for xref to search. As there are duplicates
189 # of things like headers, and only one file will be added to the xref database,
190 # we want xref to list the source file.
191 #
192 XRDIRS= . \
193 ../../common/elfcap \
194 ../../head \
195 ../../uts/common/krtld \
|
3 #
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) 1991, 2010, Oracle and/or its affiliates. All rights reserved.
23 # Copyright 2016 RackTop Systems.
24 #
25
26 include $(SRC)/cmd/Makefile.cmd
27
28 # Note: Why SUBDIRS-common isn't sorted alphabetically
29 #
30 # The items under SGS are not independent of each other.
31 # They must be built in an order that ensures that
32 # all dependencies of an item have been built before the
33 # item itself.
34 #
35 SUBDIRS-common= libconv \
36 .WAIT \
37 libdl \
38 libelf \
39 liblddbg \
40 .WAIT \
41 libld \
42 libldmake \
43 libldstab \
157 # of these modules be built using the new ld. This `native' target allows us
158 # to build a local ld which will then be used to build the delivered version of
159 # itself and ld.so.1. Once this new functionality appears in the standard ld
160 # this target can be disabled.
161
162 native-add: native-proto FRC
163 @ cd tools/$(MACH); pwd; $(MAKE) native
164 @ cd libconv/$(MACH); pwd; $(MAKE)
165 @ cd libelf/$(MACH); pwd; $(MAKE) native
166 @ cd liblddbg/$(MACH); pwd; $(MAKE) native
167 @ cd libldstab/$(MACH); pwd; $(MAKE) native
168 @ cd libld/$(MACH); pwd; $(MAKE) native
169 @ cd ld/$(MACH); pwd; $(MAKE) native
170
171 native-clobber:
172 @ cd tools; pwd; $(MAKE) $(TARGET)
173 $(RM) -r proto/$(MACH)
174
175 native-proto:
176 -@mkdir -p proto/$(MACH)
177 -@mkdir -p proto/$(MACH)/lib
178 -@mkdir -p proto/$(MACH)/usr
179 -@mkdir -p proto/$(MACH)/usr/bin
180
181 FRC:
182
183 #
184 # Cross-reference customization: ignore the directories named by XRPRUNE,
185 # and tweak the file globs slightly.
186 #
187 XRPRUNE= rtld.4.x packages abi
188 XRADD= *.msg mapfile* llib-[a-z]*
189 XRDEL= Makefile* kobj_*
190
191 #
192 # Establish a set of directories for xref to search. As there are duplicates
193 # of things like headers, and only one file will be added to the xref database,
194 # we want xref to list the source file.
195 #
196 XRDIRS= . \
197 ../../common/elfcap \
198 ../../head \
199 ../../uts/common/krtld \
|