Print this page
8564 developer/build/onbld shouldn't require ghostscript
Reviewed by: Alexander Pyhalov <apyhalov@gmail.com>
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
↓ open down ↓ |
16 lines elided |
↑ open up ↑ |
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 -# Copyright (c) 2019, Joyent, Inc.
27 +# Copyright 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: some utilities are pre-requisites for building everything
34 34 # else:
35 35 # - smatch - as it is a shadow compiler
36 36 # - cw - as it is used to drive builds
37 37 # - install.bin - being the 'install' target dependency
38 38 # - ctf - being used to generate CTF data
39 39 #
40 40 # Anything built before 'install.bin' is present must override binary
41 41 # installation rules in their makefiles. This includes the Makefile for
42 42 # 'install.bin' itself.
↓ open down ↓ |
5 lines elided |
↑ open up ↑ |
43 43 BOOT_SUBDIRS= \
44 44 smatch \
45 45 .WAIT \
46 46 cw \
47 47 .WAIT \
48 48 install.bin \
49 49 .WAIT \
50 50 ctf
51 51
52 52 COMMON_SUBDIRS= \
53 - codereview \
54 53 codesign \
55 54 cscope-fast \
56 55 env \
57 56 findunref \
58 57 lintdump \
59 58 make \
60 59 makesoftcore \
61 60 ndrgen \
62 61 onbld \
63 62 protocmp \
64 63 protolist \
65 64 scripts
66 65
67 66 #
68 67 # special versions of commands for use only in build
69 68 #
70 69 UNSHIPPED_SUBDIRS = \
71 70 localedef \
72 71 mandoc \
73 72 tic \
74 73 vtfontcvt \
75 74 zic
76 75
77 76 sparc_SUBDIRS= \
78 77 chk4ubin \
79 78 stabs \
80 79 tokenize
81 80
82 81 i386_SUBDIRS= \
83 82 aw \
84 83 cpcgen \
85 84 elfextract \
86 85 mbh_patch \
87 86 btxld
88 87
89 88 SUBDIRS= \
90 89 $($(MACH)_SUBDIRS) \
91 90 $(COMMON_SUBDIRS) \
92 91 $(UNSHIPPED_SUBDIRS)
93 92
94 93 include Makefile.tools
95 94
96 95 ROOTDIRS= \
97 96 $(ROOTOPT) \
98 97 $(ROOTONBLD) \
99 98 $(ROOTONBLD)/bin \
100 99 $(ROOTONBLD)/bin/$(MACH) \
101 100 $(ROOTONBLD)/lib \
102 101 $(ROOTONBLD)/lib/$(MACH) \
103 102 $(ROOTONBLD)/lib/$(MACH)/64 \
104 103 $(ROOTONBLD)/lib/perl \
105 104 $(ROOTONBLD)/env \
106 105 $(ROOTONBLD)/etc \
107 106 $(ROOTONBLD)/etc/exception_lists \
108 107 $(ROOTONBLD)/share \
109 108 $(ROOTONBLD)/man \
110 109 $(ROOTONBLD)/man/man1onbld
111 110
112 111 $(BUILDPY2TOOLS)ROOTDIRS += \
113 112 $(ROOTONBLD)/lib/python$(PYTHON_VERSION) \
114 113 $(ROOTONBLD)/lib/python$(PYTHON_VERSION)/onbld \
115 114 $(ROOTONBLD)/lib/python$(PYTHON_VERSION)/onbld/Checks \
116 115 $(ROOTONBLD)/lib/python$(PYTHON_VERSION)/onbld/Scm
117 116
118 117 $(BUILDPY3TOOLS)ROOTDIRS += \
119 118 $(ROOTONBLD)/lib/python$(PYTHON3_VERSION) \
120 119 $(ROOTONBLD)/lib/python$(PYTHON3_VERSION)/onbld \
121 120 $(ROOTONBLD)/lib/python$(PYTHON3_VERSION)/onbld/__pycache__ \
122 121 $(ROOTONBLD)/lib/python$(PYTHON3_VERSION)/onbld/Checks \
123 122 $(ROOTONBLD)/lib/python$(PYTHON3_VERSION)/onbld/Checks/__pycache__ \
124 123 $(ROOTONBLD)/lib/python$(PYTHON3_VERSION)/onbld/Scm \
125 124 $(ROOTONBLD)/lib/python$(PYTHON3_VERSION)/onbld/Scm/__pycache__
126 125
127 126 all := TARGET= install
128 127 install := TARGET= install
129 128 clean := TARGET= clean
130 129 clobber := TARGET= clobber
131 130 _msg := TARGET= _msg
132 131
133 132 .KEEP_STATE:
134 133
135 134 #
136 135 # Only create directories in the tools proto area when doing an actual
137 136 # build, not a clean or clobber.
138 137 #
139 138 DOROOTDIRS= $(ROOTDIRS)
140 139 clobber:= DOROOTDIRS=
141 140 clean:= DOROOTDIRS=
142 141
143 142 $(BUILDPY2TOOLS)DOROOTONBLDLIBPY= $(ROOTONBLDLIBPY)
144 143 clobber:= DOROOTONBLDLIBPY=
145 144 clean:= DOROOTONBLDLIBPY=
146 145
147 146 all install: $(SUBDIRS)
148 147
149 148 clean: $(SUBDIRS)
150 149
151 150 clobber: $(SUBDIRS)
152 151 $(RM) -rf $(TOOLS_PROTO)
153 152
154 153 bootstrap: $(BOOT_SUBDIRS)
155 154
156 155 _msg: $(MSGSUBDIRS)
157 156
158 157 .PARALLEL: $(SUBDIRS) $(CLOSED_SUBDIRS)
159 158
160 159 $(SUBDIRS) $(CLOSED_SUBDIRS): $(BOOT_SUBDIRS)
161 160
162 161 $(BOOT_SUBDIRS) $(SUBDIRS): $$(DOROOTDIRS) $$(DOROOTONBLDLIBPY) FRC
163 162 @cd $@; pwd; $(MAKE) $(TARGET)
164 163
165 164 # Assume we don't have the install.bin available yet
166 165 $(ROOTDIRS):
167 166 $(MKDIR) -p -m $(DIRMODE) $@
168 167
169 168 $(ROOTONBLDLIBPY): $(ROOTDIRS)
170 169 $(RM) -r $@; $(SYMLINK) python$(PYTHON_VERSION) $@
171 170
172 171 FRC:
↓ open down ↓ |
109 lines elided |
↑ open up ↑ |
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX