# # 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 */