4 # The contents of this file are subject to the terms of the
5 # Common Development and Distribution License (the "License").
6 # You may not use this file except in compliance with the License.
8 # You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
9 # or http://www.opensolaris.org/os/licensing.
10 # See the License for the specific language governing permissions
11 # and limitations under the License.
13 # When distributing Covered Code, include this CDDL HEADER in each
14 # file and include the License file at usr/src/OPENSOLARIS.LICENSE.
15 # If applicable, add the following below this CDDL HEADER, with the
16 # fields enclosed by brackets "[]" replaced with your own identifying
17 # information: Portions Copyright [yyyy] [name of copyright owner]
22 # Copyright (c) 1991, 2010, Oracle and/or its affiliates. All rights reserved.
23 # Copyright 2016 RackTop Systems.
24 # Copyright 2017 Joyent, Inc.
27 include $(SRC
)/cmd
/Makefile.cmd
29 # Note: Why SUBDIRS isn't sorted alphabetically
31 # The items under SGS are not independent of each other.
32 # They must be built in an order that ensures that
33 # all dependencies of an item have been built before the
78 POFILES
= $(POSUBDIRS
:%=%/%.po
)
80 MSGSUBDIRS
= ld ldd libld liblddbg \
81 libldstab librtld rtld libelf \
82 ldprof libcrle pvs elfdump \
90 install := TARGET
= install
91 clean := TARGET
= clean
92 clobber := TARGET
= clobber
93 delete
:= TARGET
= delete
94 _msg
:= TARGET
= catalog
95 _msg_gettext
:= TARGET
= catalog
96 _msg_sgsmsg
:= TARGET
= catalog
97 chkmsg
:= TARGET
= chkmsg
102 .PARALLEL
: $(SUBDIRS
)
104 all install: .WAIT
$(SUBDIRS
)
106 include $(SRC
)/cmd
/Makefile.targ
110 _msg
: _msg_gettext _msg_sgsmsg
112 _msg_gettext
: $(MSGDOMAIN
)/$(POFILE
)
114 # $(MACH)/sgsmsg must be built before we can descend into $(MSGDIR)
115 _msg_sgsmsg
: .WAIT
$(MSGDIR
)
117 $(MSGDOMAIN
)/$(POFILE
): \
118 $(MSGDOMAIN
) $(POFILE
)
120 $(POFILE
): $(POSUBDIRS
)
122 cat
$(POFILES
) > $(POFILE
)
124 $(MSGDIR
): $(MSGSUBDIRS
) FRC
125 @ cd
$@
; pwd
; $(MAKE
) $(TARGET
)
127 chkmsg
: $(MSGSUBDIRS
) FRC
131 # built from lib/Makefile
133 @ cd
lex; pwd
; $(MAKE
) $@
136 clean clobber: .WAIT
$(SUBDIRS
) $(MSGDIR
)
139 @ cd
$@
; pwd
; $(MAKE
) $(TARGET
)