Print this page
3442 sgs checks should be run in normal builds
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 #
24 24
25 25 include $(SRC)/cmd/Makefile.cmd
26 26
27 27 # Note: Why SUBDIRS-common isn't sorted alphabetically
28 28 #
29 29 # The items under SGS are not independent of each other.
30 30 # They must be built in an order that ensures that
31 31 # all dependencies of an item have been built before the
32 32 # item itself.
33 33 #
34 34 SUBDIRS-common= libconv \
35 35 .WAIT \
36 36 libdl \
37 37 libelf \
38 38 liblddbg \
39 39 .WAIT \
40 40 libld \
41 41 libldmake \
42 42 libldstab \
43 43 librtld \
44 44 libcrle \
45 45 .WAIT \
46 46 0@0 \
47 47 ld \
48 48 ldd \
49 49 lddstub \
50 50 rtld \
51 51 link_audit \
52 52 .WAIT \
53 53 librtld_db \
54 54 ldprof \
55 55 pvs \
56 56 crle \
57 57 ar \
58 58 dump \
59 59 elfdump \
60 60 elfedit \
61 61 elfwrap \
62 62 error \
63 63 gprof \
64 64 lari \
65 65 lex \
66 66 lorder \
67 67 m4 \
68 68 mcs \
69 69 moe \
70 70 nm \
71 71 prof \
72 72 ranlib \
73 73 size \
74 74 symorder \
75 75 tsort \
76 76 unifdef \
77 77 yacc
78 78
79 79 SUBDIRS-i386=
80 80 SUBDIRS-sparc= rtld.4.x
81 81
82 82 SUBDIRS= $(SUBDIRS-common) $(SUBDIRS-$(MACH))
83 83
84 84 # Messaging support
85 85 #
86 86 POSUBDIRS= m4 nm tsort yacc
87 87 POFILE= sgs.po
88 88 POFILES= $(POSUBDIRS:%=%/%.po)
89 89
90 90 MSGSUBDIRS= ld ldd libld liblddbg \
91 91 libldstab librtld rtld libelf \
92 92 ldprof libcrle pvs elfdump \
93 93 elfedit crle moe lari \
94 94 librtld_db elfwrap ar
95 95
96 96 MSGDIR= messages
97 97
98 98
99 99 all := TARGET= all
100 100 install := TARGET= install
101 101 clean := TARGET= clean
102 102 clobber := TARGET= clobber
103 103 delete := TARGET= delete
104 104 lint := TARGET= lint
105 105 _msg := TARGET= catalog
106 106 _msg_gettext := TARGET= catalog
107 107 _msg_sgsmsg := TARGET= catalog
108 108 chkmsg := TARGET= chkmsg
109 109
110 110
111 111 .KEEP_STATE:
112 112
113 113 .PARALLEL: $(SUBDIRS)
114 114
115 115 all install: native-add .WAIT $(SUBDIRS)
116 116
117 117 include $(SRC)/cmd/Makefile.targ
118 118
119 119 # Messaging support
120 120 #
121 121 _msg: _msg_gettext _msg_sgsmsg
122 122
123 123 _msg_gettext: $(MSGDOMAIN)/$(POFILE)
124 124
125 125 _msg_sgsmsg: $(MSGDIR)
126 126
127 127 $(MSGDOMAIN)/$(POFILE): \
128 128 $(MSGDOMAIN) $(POFILE)
↓ open down ↓ |
128 lines elided |
↑ open up ↑ |
129 129
130 130 $(POFILE): $(POSUBDIRS)
131 131 $(RM) $(POFILE)
132 132 cat $(POFILES) > $(POFILE)
133 133
134 134 $(MSGDIR): $(MSGSUBDIRS) FRC
135 135 @ cd $@; pwd; $(MAKE) $(TARGET)
136 136
137 137 chkmsg: libconv $(MSGSUBDIRS) FRC
138 138
139 +check: chkmsg
140 +
139 141 # built from lib/Makefile
140 142 install_lib: FRC
141 143 @ cd lex; pwd; $(MAKE) $@
142 144 @ cd yacc; pwd; $(MAKE) $@
143 145
144 146 lint: $(SUBDIRS)
145 147
146 148 delete \
147 149 clean clobber: native-clobber .WAIT $(SUBDIRS) $(MSGDIR)
148 150
149 151 $(SUBDIRS): FRC
150 152 @ cd $@; pwd; $(MAKE) $(TARGET)
151 153
152 154
153 155 # Integration of ld and ld.so.1 in some developement cycles requires that both
154 156 # of these modules be built using the new ld. This `native' target allows us
155 157 # to build a local ld which will then be used to build the delivered version of
156 158 # itself and ld.so.1. Once this new functionality appears in the standard ld
157 159 # this target can be disabled.
158 160
159 161 native-add: native-proto FRC
160 162 @ cd tools/$(MACH); pwd; $(MAKE) native
161 163 @ cd libconv/$(MACH); pwd; $(MAKE)
162 164 @ cd libelf/$(MACH); pwd; $(MAKE) native
163 165 @ cd liblddbg/$(MACH); pwd; $(MAKE) native
164 166 @ cd libldstab/$(MACH); pwd; $(MAKE) native
165 167 @ cd libld/$(MACH); pwd; $(MAKE) native
166 168 @ cd ld/$(MACH); pwd; $(MAKE) native
167 169
168 170 native-clobber:
169 171 @ cd tools; pwd; $(MAKE) $(TARGET)
170 172 $(RM) -r proto/$(MACH)
171 173
172 174 native-proto:
173 175 -@mkdir -p proto/$(MACH)
174 176
175 177 FRC:
176 178
177 179 #
178 180 # Cross-reference customization: ignore the directories named by XRPRUNE,
179 181 # and tweak the file globs slightly.
180 182 #
181 183 XRPRUNE= rtld.4.x packages abi
182 184 XRADD= *.msg mapfile* llib-[a-z]*
183 185 XRDEL= Makefile* kobj_*
184 186
185 187 #
186 188 # Establish a set of directories for xref to search. As there are duplicates
187 189 # of things like headers, and only one file will be added to the xref database,
188 190 # we want xref to list the source file.
189 191 #
190 192 XRDIRS= . \
191 193 ../../common/elfcap \
192 194 ../../head \
193 195 ../../uts/common/krtld \
194 196 ../../uts/common/sys \
195 197 ../../uts/sparc/sys \
196 198 ../../uts/sparc/krtld \
197 199 ../../uts/intel/ia32/krtld \
198 200 ../../uts/intel/amd64/krtld
199 201
200 202 xref: FRC
201 203 @ $(RM) cscope.*
202 204 xref -p -x cscope
↓ open down ↓ |
54 lines elided |
↑ open up ↑ |
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX