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