1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
|
#
# CDDL HEADER START
#
# The contents of this file are subject to the terms of the
# Common Development and Distribution License, Version 1.0 only
# (the "License"). You may not use this file except in compliance
# with the License.
#
# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
# or http://www.opensolaris.org/os/licensing.
# See the License for the specific language governing permissions
# and limitations under the License.
#
# When distributing Covered Code, include this CDDL HEADER in each
# file and include the License file at usr/src/OPENSOLARIS.LICENSE.
# If applicable, add the following below this CDDL HEADER, with the
# fields enclosed by brackets "[]" replaced with your own identifying
# information: Portions Copyright [yyyy] [name of copyright owner]
#
# CDDL HEADER END
#
#
# Copyright (c) 1996 by Sun Microsystems, Inc.
# All rights reserved.
#
include ../../../Makefile.master
# Hammerhead: amd64-only
SUBDIRS= $(MACH64)
all : TARGET= all
clean : TARGET= clean
clobber : TARGET= clobber
install : TARGET= install
catalog : TARGET= catalog
chkmsg : TARGET= chkmsg
.KEEP_STATE:
.KEEP_STATE_FILE: .make.state.$(MACH)
all clean clobber install catalog chkmsg: $(SUBDIRS)
$(SUBDIRS): FRC
@cd $@; pwd; $(MAKE) $(TARGET)
FRC:
#
# CDDL HEADER START
#
# The contents of this file are subject to the terms of the
# Common Development and Distribution License (the "License").
# You may not use this file except in compliance with the License.
#
# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
# or http://www.opensolaris.org/os/licensing.
# See the License for the specific language governing permissions
# and limitations under the License.
#
# When distributing Covered Code, include this CDDL HEADER in each
# file and include the License file at usr/src/OPENSOLARIS.LICENSE.
# If applicable, add the following below this CDDL HEADER, with the
# fields enclosed by brackets "[]" replaced with your own identifying
# information: Portions Copyright [yyyy] [name of copyright owner]
#
# CDDL HEADER END
#
#
# Copyright (c) 1996, 2010, Oracle and/or its affiliates. All rights reserved.
#
# cmd/sgs/messages/Makefile.com
include $(SRC)/Makefile.master
include $(SRC)/cmd/sgs/Makefile.com
# Establish our own domain.
TEXT_DOMAIN= SUNW_OST_SGS
POFILE= sgs.po
# The following message files are generated as part of each utilites build via
# sgsmsg(1l). By default each file is formatted as a portable object file
# (.po) - see msgfmt(1). If the sgsmsg -C option has been employed, each file
# is formatted as a message text source file (.msg) - see gencat(1).
POFILES= ld ldd libld liblddbg \
librtld rtld libelf ldprof \
libcrle crle moe pvs \
elfdump elfedit elfwrap lari \
ar
# These message files are generated as a side effect of generating the
# elfedit messages. Otherwise they are the same thing as POFILES
POFILES_ELFEDIT_MODULES = \
elfedit_cap elfedit_dyn elfedit_ehdr elfedit_phdr \
elfedit_shdr elfedit_str elfedit_sym elfedit_syminfo
# Define a local version of the message catalog. Test using: LANG=piglatin
MSGDIR= $(ROOT)/usr/lib/locale/piglatin/LC_MESSAGES
TEST_MSGID= test-msgid.po
TEST_MSGSTR= test-msgstr.po
TEST_POFILE= test-msg.po
TEST_MOFILE= $(TEXT_DOMAIN).mo
CLEANFILES= $(POFILE) $(TEST_MSGID) $(TEST_MSGSTR) $(TEST_POFILE) \
$(TEST_MOFILE)
CLOBBERFILES= $(POFILES) $(POFILES_ELFEDIT_MODULES)
#
# CDDL HEADER START
#
# The contents of this file are subject to the terms of the
# Common Development and Distribution License (the "License").
# You may not use this file except in compliance with the License.
#
# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
# or http://www.opensolaris.org/os/licensing.
# See the License for the specific language governing permissions
# and limitations under the License.
#
# When distributing Covered Code, include this CDDL HEADER in each
# file and include the License file at usr/src/OPENSOLARIS.LICENSE.
# If applicable, add the following below this CDDL HEADER, with the
# fields enclosed by brackets "[]" replaced with your own identifying
# information: Portions Copyright [yyyy] [name of copyright owner]
#
# CDDL HEADER END
#
#
# Copyright 2008 Sun Microsystems, Inc. All rights reserved.
# Use is subject to license terms.
#
# Copyright 2019 OmniOS Community Edition (OmniOSce) Association.
#
all: $(POFILE)
include $(SRC)/cmd/Makefile.targ
catalog \
install: $(MSGDOMAIN)/$(POFILE)
$(MSGDOMAIN)/$(POFILE): \
$(MSGDOMAIN) $(POFILE)
$(RM) $(MSGDOMAIN)/$(POFILE)
cp $(POFILE) $(MSGDOMAIN)
clean:
$(RM) $(CLEANFILES)
# The elfedit modules message files need a special rule that runs
# the elfedit catalog target. It generates module messages files
# as part of that process.
$(POFILES_ELFEDIT_MODULES) :
@ cd ../../elfedit; pwd; $(MAKE) catalog
$(POFILE): $(POFILES) $(POFILES_ELFEDIT_MODULES)
$(RM) $(POFILE)
cat $(POFILES) $(POFILES_ELFEDIT_MODULES) > $(POFILE)
# Install a local version of the message catalog. Test using: LANG=piglatin
test: $(MSGDIR)/$(TEST_MOFILE)
$(MSGDIR)/$(TEST_MOFILE): \
$(MSGDIR) $(TEST_MSGID) $(TEST_MSGSTR)
$(RM) $(MSGDIR)/$(TEXT_DOMAIN).mo
sort -n $(TEST_MSGID) $(TEST_MSGSTR) | \
sed -e "s/ *[0-9]* //" > $(TEST_POFILE)
$(MSGFMT) -o $(MSGDIR)/$(TEST_MOFILE) $(TEST_POFILE)
$(TEST_MSGID): $(POFILE)
grep "^msgid" $(POFILE) | \
$(SGSMSG_PIGLATIN_NL) 1 > $(TEST_MSGID)
$(TEST_MSGSTR): $(POFILE)
cat $(POFILE) | $(SGSTOOLS)/$(MACH)/piglatin | \
grep "^sgidmay" | sed -e "s/^sgidmay/msgstr/" | \
$(SGSMSG_PIGLATIN_NL) 2 > $(TEST_MSGSTR)
$(MSGDIR):
-@mkdir -p $(MSGDIR)
#
# This file and its contents are supplied under the terms of the
# Common Development and Distribution License ("CDDL"), version 1.0.
# Copyright 2025 Hammerhead Project
#
include ../Makefile.com
include $(SRC)/Makefile.master.64
include ../Makefile.targ
#
# Copyright (c) 1995, 2010, Oracle and/or its affiliates. All rights reserved.
#
# CDDL HEADER START
#
# The contents of this file are subject to the terms of the
# Common Development and Distribution License (the "License").
# You may not use this file except in compliance with the License.
#
# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
# or http://www.opensolaris.org/os/licensing.
# See the License for the specific language governing permissions
# and limitations under the License.
#
# When distributing Covered Code, include this CDDL HEADER in each
# file and include the License file at usr/src/OPENSOLARIS.LICENSE.
# If applicable, add the following below this CDDL HEADER, with the
# fields enclosed by brackets "[]" replaced with your own identifying
# information: Portions Copyright [yyyy] [name of copyright owner]
#
# CDDL HEADER END
#
#
# Global message identifiers for the sgs utilities. This information is read
# by sgsmsg(1l) using the -i option.
# Each utilities message file references one of the `MSGID' identifiers. Its
# associated numeric setid is used when creating catgets(3c) messages, the
# string domain is used when creating gettext(3i) messages.
#
mesgid setid domain
MSG_ID_RTLD 1 SUNW_OST_SGS /* sgs/rtld */
MSG_ID_LIBRTLD 2 SUNW_OST_SGS /* sgs/librtld */
MSG_ID_LIBLD 3 SUNW_OST_SGS /* sgs/libld */
MSG_ID_LIBLDDBG 4 SUNW_OST_SGS /* sgs/liblddbg */
MSG_ID_LIBRTLD_DB 6 SUNW_OST_SGS /* sgs/librtld_db */
MSG_ID_LIBPROF 7 SUNW_OST_SGS /* sgs/libprof */
MSG_ID_LIBCRLE 8 SUNW_OST_SGS /* sgs/libcrle */
MSG_ID_LIBELF 10 SUNW_OST_SGS /* sgs/libelf */
MSG_ID_LD 20 SUNW_OST_SGS /* sgs/ld */
MSG_ID_LDD 21 SUNW_OST_SGS /* sgs/ldd */
MSG_ID_PVS 22 SUNW_OST_SGS /* sgs/pvs */
MSG_ID_CRLE 23 SUNW_OST_SGS /* sgs/crle */
MSG_ID_ELFDUMP 24 SUNW_OST_SGS /* sgs/elfdump */
MSG_ID_MOE 25 SUNW_OST_SGS /* sgs/moe */
MSG_ID_ELFEDIT 26 SUNW_OST_SGS /* sgs/elfedit */
MSG_ID_ELFEDIT_CAP 27 SUNW_OST_SGS /* cap: */
MSG_ID_ELFEDIT_DYN 27 SUNW_OST_SGS /* dyn: */
MSG_ID_ELFEDIT_EHDR 27 SUNW_OST_SGS /* ehdr: */
MSG_ID_ELFEDIT_PHDR 27 SUNW_OST_SGS /* phdr: */
MSG_ID_ELFEDIT_SHDR 27 SUNW_OST_SGS /* shdr: */
MSG_ID_ELFEDIT_STR 27 SUNW_OST_SGS /* str: */
MSG_ID_ELFEDIT_SYM 27 SUNW_OST_SGS /* sym: */
MSG_ID_ELFEDIT_SYMINFO 27 SUNW_OST_SGS /* syminfo: */
MSG_ID_ELFWRAP 28 SUNW_OST_SGS /* sgs/elfwrap */
MSG_ID_AR 29 SUNW_OST_SGS /* sgs/ar */
|