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/tools/Makefile
+++ new/usr/src/tools/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 #
23 23 # Copyright (c) 1999, 2010, Oracle and/or its affiliates. All rights reserved.
24 24 # Copyright 2014 Garrett D'Amore <garrett@damore.org>
25 25 # Copyright 2016 Toomas Soome <tsoome@me.com>
26 26 # Copyright (c) 2016, Chris Fraire <cfraire@me.com>.
27 27 # Copyright (c) 2019, Joyent, Inc.
28 28 # Copyright 2019 OmniOS Community Edition (OmniOSce) Association.
29 29 #
30 30
31 31 include ../Makefile.master
32 32
33 33 # Bootstrap problem: 'cw' must be built before anything else can be built.
34 34 # 'install.bin' should be built next, being the 'install' target dependency
35 35 # for everything else.
36 36 #
37 37 # Because of somewhat cyclic dependency between them, both cw and install.bin
38 38 # override the way we install binaries in their Makefiles.
39 39 BOOT_SUBDIRS= \
40 40 smatch \
41 41 .WAIT \
42 42 cw \
43 43 .WAIT \
44 44 install.bin \
45 45 .WAIT \
46 46 ctf
47 47
48 48 COMMON_SUBDIRS= \
49 49 codereview \
50 50 codesign \
↓ open down ↓ |
50 lines elided |
↑ open up ↑ |
51 51 cscope-fast \
52 52 env \
53 53 findunref \
54 54 lintdump \
55 55 make \
56 56 makesoftcore \
57 57 ndrgen \
58 58 onbld \
59 59 protocmp \
60 60 protolist \
61 - scripts
61 + scripts \
62 + sgs
62 63
63 64 #
64 65 # special versions of commands for use only in build
65 66 #
66 67 UNSHIPPED_SUBDIRS = \
68 + $(SGSMSG) \
69 + $(SGSLIBCONV) \
70 + $(SGSLIBELF) \
71 + $(SGSLIBLDDBG) \
72 + $(SGSLIBLD) \
73 + $(SGSLD) \
67 74 localedef \
68 75 mandoc \
69 76 tic \
70 77 vtfontcvt \
71 78 zic
72 79
73 80 sparc_SUBDIRS= \
74 81 chk4ubin \
75 82 stabs \
76 83 tokenize
77 84
78 85 i386_SUBDIRS= \
79 86 aw \
80 87 cpcgen \
81 88 elfextract \
82 89 mbh_patch \
83 90 btxld
91 +
92 +$(INTEL_BLD)sgs: aw
84 93
85 94 LINTSUBDIRS= \
86 95 codereview \
87 96 ctf \
88 97 cw \
89 98 findunref \
90 99 lintdump \
91 100 ndrgen \
92 101 protocmp \
93 102 protolist
94 103
95 104 SUBDIRS= \
96 105 $($(MACH)_SUBDIRS) \
97 106 $(COMMON_SUBDIRS) \
98 107 $(UNSHIPPED_SUBDIRS)
99 108
100 109 include Makefile.tools
101 110
102 111 ROOTDIRS= \
103 112 $(ROOTOPT) \
104 113 $(ROOTONBLD) \
105 114 $(ROOTONBLD)/bin \
106 115 $(ROOTONBLD)/bin/$(MACH) \
107 116 $(ROOTONBLD)/lib \
108 117 $(ROOTONBLD)/lib/$(MACH) \
109 118 $(ROOTONBLD)/lib/$(MACH)/64 \
110 119 $(ROOTONBLD)/lib/perl \
111 120 $(ROOTONBLD)/env \
112 121 $(ROOTONBLD)/etc \
113 122 $(ROOTONBLD)/etc/exception_lists \
114 123 $(ROOTONBLD)/share \
115 124 $(ROOTONBLD)/man \
116 125 $(ROOTONBLD)/man/man1onbld
117 126
118 127 $(BUILDPY2TOOLS)ROOTDIRS += \
119 128 $(ROOTONBLD)/lib/python$(PYTHON_VERSION) \
120 129 $(ROOTONBLD)/lib/python$(PYTHON_VERSION)/onbld \
121 130 $(ROOTONBLD)/lib/python$(PYTHON_VERSION)/onbld/Checks \
122 131 $(ROOTONBLD)/lib/python$(PYTHON_VERSION)/onbld/Scm
123 132
124 133 $(BUILDPY3TOOLS)ROOTDIRS += \
125 134 $(ROOTONBLD)/lib/python$(PYTHON3_VERSION) \
126 135 $(ROOTONBLD)/lib/python$(PYTHON3_VERSION)/onbld \
127 136 $(ROOTONBLD)/lib/python$(PYTHON3_VERSION)/onbld/__pycache__ \
128 137 $(ROOTONBLD)/lib/python$(PYTHON3_VERSION)/onbld/Checks \
129 138 $(ROOTONBLD)/lib/python$(PYTHON3_VERSION)/onbld/Checks/__pycache__ \
130 139 $(ROOTONBLD)/lib/python$(PYTHON3_VERSION)/onbld/Scm \
131 140 $(ROOTONBLD)/lib/python$(PYTHON3_VERSION)/onbld/Scm/__pycache__
132 141
133 142 all := TARGET= install
134 143 install := TARGET= install
135 144 clean := TARGET= clean
136 145 clobber := TARGET= clobber
137 146 lint := TARGET= lint
138 147 _msg := TARGET= _msg
139 148
140 149 .KEEP_STATE:
141 150
142 151 #
143 152 # Only create directories in the tools proto area when doing an actual
144 153 # build, not a clean or clobber.
145 154 #
146 155 DOROOTDIRS= $(ROOTDIRS)
147 156 clobber:= DOROOTDIRS=
148 157 clean:= DOROOTDIRS=
149 158
150 159 $(BUILDPY2TOOLS)DOROOTONBLDLIBPY= $(ROOTONBLDLIBPY)
151 160 clobber:= DOROOTONBLDLIBPY=
152 161 clean:= DOROOTONBLDLIBPY=
153 162
154 163 all install: $(SUBDIRS)
155 164
156 165 clean: $(SUBDIRS)
157 166
158 167 clobber: $(SUBDIRS)
159 168 $(RM) -rf $(TOOLS_PROTO)
160 169
161 170 lint: $(LINTSUBDIRS)
162 171
163 172 _msg: $(MSGSUBDIRS)
164 173
165 174 .PARALLEL: $(SUBDIRS) $(CLOSED_SUBDIRS)
166 175
167 176 $(SUBDIRS) $(CLOSED_SUBDIRS): $(BOOT_SUBDIRS)
168 177
169 178 $(BOOT_SUBDIRS) $(SUBDIRS): $$(DOROOTDIRS) $$(DOROOTONBLDLIBPY) FRC
170 179 @cd $@; pwd; $(MAKE) $(TARGET)
171 180
172 181 # Assume we don't have the install.bin available yet
173 182 $(ROOTDIRS):
174 183 $(MKDIR) -p -m $(DIRMODE) $@
175 184
176 185 $(ROOTONBLDLIBPY): $(ROOTDIRS)
177 186 $(RM) -r $@; $(SYMLINK) python$(PYTHON_VERSION) $@
178 187
179 188 FRC:
↓ open down ↓ |
86 lines elided |
↑ open up ↑ |
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX