Print this page
8998 depcheck is useless and should be removed
8991 pmodes is useless and can be deleted
8990 /opt/onbld/gk is useless
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 #
28 28
29 29 include ../Makefile.master
30 30
31 31 # Bootstrap problem --
↓ open down ↓ |
31 lines elided |
↑ open up ↑ |
32 32 # 'cw' must be built before anything else can be built.
33 33
34 34 BOOT_SUBDIRS= \
35 35 cw
36 36
37 37 COMMON_SUBDIRS= \
38 38 codereview \
39 39 codesign \
40 40 cscope-fast \
41 41 ctf \
42 - depcheck \
43 42 env \
44 43 findunref \
45 - gk \
46 44 install.bin \
47 45 lintdump \
48 46 make \
49 47 ndrgen \
50 48 onbld \
51 - pmodes \
52 49 protocmp \
53 50 protolist \
54 51 scripts
55 52
56 53 #
57 54 # special versions of commands for use only in build
58 55 #
59 56 UNSHIPPED_SUBDIRS = \
60 57 localedef \
61 58 mandoc \
62 59 tic \
63 60 vtfontcvt \
64 61 zic
65 62
66 63 sparc_SUBDIRS= \
67 64 chk4ubin \
68 65 stabs \
69 66 tokenize
70 67
71 68 i386_SUBDIRS= \
72 69 aw \
73 70 elfextract \
74 71 mbh_patch \
75 72 btxld
76 73
77 74 LINTSUBDIRS= \
78 75 codereview \
79 76 ctf \
80 77 cw \
81 78 findunref \
82 79 lintdump \
83 80 ndrgen \
84 81 protocmp \
85 82 protolist
86 83
87 84 SUBDIRS= \
88 85 $($(MACH)_SUBDIRS) \
89 86 $(COMMON_SUBDIRS) \
90 87 $(UNSHIPPED_SUBDIRS)
91 88
92 89 include Makefile.tools
93 90
94 91 ROOTDIRS= \
95 92 $(ROOTOPT) \
96 93 $(ROOTONBLD) \
97 94 $(ROOTONBLD)/bin \
98 95 $(ROOTONBLD)/bin/$(MACH) \
99 96 $(ROOTONBLD)/lib \
100 97 $(ROOTONBLD)/lib/$(MACH) \
101 98 $(ROOTONBLD)/lib/$(MACH)/64 \
↓ open down ↓ |
40 lines elided |
↑ open up ↑ |
102 99 $(ROOTONBLD)/lib/perl \
103 100 $(ROOTONBLD)/lib/python$(PYTHON_VERSION) \
104 101 $(ROOTONBLD)/lib/python$(PYTHON_VERSION)/onbld \
105 102 $(ROOTONBLD)/lib/python$(PYTHON_VERSION)/onbld/Checks \
106 103 $(ROOTONBLD)/lib/python$(PYTHON_VERSION)/onbld/hgext \
107 104 $(ROOTONBLD)/lib/python$(PYTHON_VERSION)/onbld/Scm \
108 105 $(ROOTONBLD)/env \
109 106 $(ROOTONBLD)/etc \
110 107 $(ROOTONBLD)/etc/exception_lists \
111 108 $(ROOTONBLD)/share \
112 - $(ROOTONBLD)/gk \
113 109 $(ROOTONBLD)/man \
114 110 $(ROOTONBLD)/man/man1onbld
115 111
116 112 all := TARGET= install
117 113 install := TARGET= install
118 114 clean := TARGET= clean
119 115 clobber := TARGET= clobber
120 116 lint := TARGET= lint
121 117 _msg := TARGET= _msg
122 118
123 119 .KEEP_STATE:
124 120
125 121 #
126 122 # Only create directories in the tools proto area when doing an actual
127 123 # build, not a clean or clobber.
128 124 #
129 125 DOROOTDIRS= $(ROOTDIRS)
130 126 clobber:= DOROOTDIRS=
131 127 clean:= DOROOTDIRS=
132 128
133 129 DOROOTONBLDLIBPY= $(ROOTONBLDLIBPY)
134 130 clobber:= DOROOTONBLDLIBPY=
135 131 clean:= DOROOTONBLDLIBPY=
136 132
137 133 all install: $(SUBDIRS)
138 134
139 135 clean: $(SUBDIRS)
140 136
141 137 clobber: $(SUBDIRS)
142 138 $(RM) -rf $(TOOLS_PROTO)
143 139
144 140 lint: $(LINTSUBDIRS)
145 141
146 142 _msg: $(MSGSUBDIRS)
147 143
148 144 .PARALLEL: $(SUBDIRS) $(CLOSED_SUBDIRS)
149 145
150 146 $(SUBDIRS) $(CLOSED_SUBDIRS): $(BOOT_SUBDIRS)
151 147
152 148 $(BOOT_SUBDIRS) $(SUBDIRS): $$(DOROOTDIRS) $$(DOROOTONBLDLIBPY) FRC
153 149 @cd $@; pwd; $(MAKE) $(TARGET)
154 150
155 151 $(ROOTDIRS):
156 152 $(INS.dir)
157 153
158 154 $(ROOTONBLDLIBPY): $(ROOTDIRS)
159 155 $(RM) -r $@; $(SYMLINK) python$(PYTHON_VERSION) $@
160 156
161 157 make: ctf
162 158
163 159 FRC:
↓ open down ↓ |
41 lines elided |
↑ open up ↑ |
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX