Print this page
11461 should use a native link-editor during the build
11463 SUNWonld has passed its use-by date
11464 cmd/sgs/tools should contain tools, not common code
11465 sgsmsg should be built with the rest of the build tools
Split |
Close |
Expand all |
Collapse all |
--- old/usr/src/cmd/sgs/Makefile
+++ new/usr/src/cmd/sgs/Makefile
1 1 #
2 2 # CDDL HEADER START
3 3 #
4 4 # The contents of this file are subject to the terms of the
5 5 # Common Development and Distribution License (the "License").
6 6 # You may not use this file except in compliance with the License.
7 7 #
8 8 # You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
9 9 # or http://www.opensolaris.org/os/licensing.
10 10 # See the License for the specific language governing permissions
11 11 # and limitations under the License.
12 12 #
13 13 # When distributing Covered Code, include this CDDL HEADER in each
14 14 # file and include the License file at usr/src/OPENSOLARIS.LICENSE.
15 15 # If applicable, add the following below this CDDL HEADER, with the
16 16 # fields enclosed by brackets "[]" replaced with your own identifying
17 17 # information: Portions Copyright [yyyy] [name of copyright owner]
18 18 #
19 19 # CDDL HEADER END
20 20 #
21 21 #
22 22 # Copyright (c) 1991, 2010, Oracle and/or its affiliates. All rights reserved.
23 23 # Copyright 2016 RackTop Systems.
24 24 # Copyright 2017 Joyent, Inc.
25 25 # Copyright 2019 OmniOS Community Edition (OmniOSce) Association.
26 26 #
27 27
28 28 include $(SRC)/cmd/Makefile.cmd
29 29
30 30 # Note: Why SUBDIRS-common isn't sorted alphabetically
31 31 #
32 32 # The items under SGS are not independent of each other.
33 33 # They must be built in an order that ensures that
34 34 # all dependencies of an item have been built before the
35 35 # item itself.
36 36 #
37 37 SUBDIRS-common= libconv \
38 38 .WAIT \
39 39 libdl \
40 40 libelf \
41 41 liblddbg \
42 42 .WAIT \
43 43 libld \
44 44 libldmake \
45 45 libldstab \
46 46 librtld \
47 47 libcrle \
48 48 .WAIT \
49 49 0@0 \
50 50 ld \
51 51 ldd \
52 52 lddstub \
53 53 rtld \
54 54 link_audit \
55 55 .WAIT \
56 56 librtld_db \
57 57 ldprof \
58 58 pvs \
59 59 crle \
60 60 ar \
61 61 dump \
62 62 elfdump \
63 63 elfedit \
64 64 elfwrap \
65 65 error \
66 66 gprof \
67 67 lari \
68 68 lex \
69 69 lorder \
70 70 m4 \
71 71 mcs \
72 72 moe \
73 73 nm \
74 74 prof \
75 75 ranlib \
76 76 size \
77 77 symorder \
78 78 tsort \
79 79 unifdef \
80 80 yacc
81 81
82 82 SUBDIRS-i386=
83 83 SUBDIRS-sparc= rtld.4.x
84 84
85 85 SUBDIRS= $(SUBDIRS-common) $(SUBDIRS-$(MACH))
86 86
87 87 # Messaging support
88 88 #
89 89 POSUBDIRS= m4 nm tsort yacc
90 90 POFILE= sgs.po
91 91 POFILES= $(POSUBDIRS:%=%/%.po)
92 92
93 93 MSGSUBDIRS= ld ldd libld liblddbg \
94 94 libldstab librtld rtld libelf \
95 95 ldprof libcrle pvs elfdump \
96 96 elfedit crle moe lari \
97 97 librtld_db elfwrap ar
98 98
99 99 MSGDIR= messages
100 100
101 101
102 102 all := TARGET= all
103 103 install := TARGET= install
104 104 clean := TARGET= clean
105 105 clobber := TARGET= clobber
106 106 delete := TARGET= delete
107 107 lint := TARGET= lint
↓ open down ↓ |
107 lines elided |
↑ open up ↑ |
108 108 _msg := TARGET= catalog
109 109 _msg_gettext := TARGET= catalog
110 110 _msg_sgsmsg := TARGET= catalog
111 111 chkmsg := TARGET= chkmsg
112 112
113 113
114 114 .KEEP_STATE:
115 115
116 116 .PARALLEL: $(SUBDIRS)
117 117
118 -all install: native-add .WAIT $(SUBDIRS)
118 +all install: $(SUBDIRS)
119 119
120 120 include $(SRC)/cmd/Makefile.targ
121 121
122 122 # Messaging support
123 123 #
124 124 _msg: _msg_gettext _msg_sgsmsg
125 125
126 126 _msg_gettext: $(MSGDOMAIN)/$(POFILE)
127 127
128 -# $(MACH)/sgsmsg must be built before we can descend into $(MSGDIR)
129 -_msg_sgsmsg: native-add .WAIT $(MSGDIR)
128 +_msg_sgsmsg: $(MSGDIR)
130 129
131 130 $(MSGDOMAIN)/$(POFILE): \
132 131 $(MSGDOMAIN) $(POFILE)
133 132
134 133 $(POFILE): $(POSUBDIRS)
135 134 $(RM) $(POFILE)
136 135 cat $(POFILES) > $(POFILE)
137 136
138 137 $(MSGDIR): $(MSGSUBDIRS) FRC
139 138 @ cd $@; pwd; $(MAKE) $(TARGET)
140 139
141 140 chkmsg: libconv $(MSGSUBDIRS) FRC
↓ open down ↓ |
2 lines elided |
↑ open up ↑ |
142 141
143 142 check: chkmsg
144 143
145 144 # built from lib/Makefile
146 145 install_lib: FRC
147 146 @ cd lex; pwd; $(MAKE) $@
148 147 @ cd yacc; pwd; $(MAKE) $@
149 148
150 149 lint:
151 150
152 -delete \
153 -clean clobber: native-clobber .WAIT $(SUBDIRS) $(MSGDIR)
151 +delete clean clobber: $(SUBDIRS) $(MSGDIR)
154 152
155 153 $(SUBDIRS): FRC
156 154 @ cd $@; pwd; $(MAKE) $(TARGET)
157 155
158 -
159 -# Integration of ld and ld.so.1 in some developement cycles requires that both
160 -# of these modules be built using the new ld. This `native' target allows us
161 -# to build a local ld which will then be used to build the delivered version of
162 -# itself and ld.so.1. Once this new functionality appears in the standard ld
163 -# this target can be disabled.
164 -
165 -native-add: FRC
166 - @ cd tools/$(MACH); pwd; $(MAKE) native
167 - @ cd libconv/$(MACH); pwd; $(MAKE)
168 - @ cd libelf/$(MACH); pwd; $(MAKE) native
169 - @ cd liblddbg/$(MACH); pwd; $(MAKE) native
170 - @ cd libldstab/$(MACH); pwd; $(MAKE) native
171 - @ cd libld/$(MACH); pwd; $(MAKE) native
172 - @ cd ld/$(MACH); pwd; $(MAKE) native
173 -
174 -native-clobber:
175 - @ cd tools; pwd; $(MAKE) $(TARGET)
176 - $(RM) -r proto/$(MACH)
177 -
178 156 FRC:
179 157
180 158 #
181 159 # Cross-reference customization: ignore the directories named by XRPRUNE,
182 160 # and tweak the file globs slightly.
183 161 #
184 -XRPRUNE= rtld.4.x packages abi
162 +XRPRUNE= rtld.4.x abi
185 163 XRADD= *.msg mapfile*
186 164 XRDEL= Makefile* kobj_*
187 165
188 166 #
189 167 # Establish a set of directories for xref to search. As there are duplicates
190 168 # of things like headers, and only one file will be added to the xref database,
191 169 # we want xref to list the source file.
192 170 #
193 171 XRDIRS= . \
194 172 ../../common/elfcap \
195 173 ../../head \
196 174 ../../uts/common/krtld \
197 175 ../../uts/common/sys \
198 176 ../../uts/sparc/sys \
199 177 ../../uts/sparc/krtld \
200 178 ../../uts/intel/ia32/krtld \
201 179 ../../uts/intel/amd64/krtld
202 180
203 181 xref: FRC
204 182 @ $(RM) cscope.*
205 183 xref -p -x cscope
↓ open down ↓ |
11 lines elided |
↑ open up ↑ |
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX