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