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
81 POFILES
= $(POSUBDIRS
:%=%/%.po
)
83 MSGSUBDIRS
= ld ldd libld liblddbg \
84 libldstab librtld rtld libelf \
85 ldprof libcrle pvs elfdump \
86 elfedit crle moe lari \
93 install := TARGET
= install
94 clean := TARGET
= clean
95 clobber := TARGET
= clobber
96 delete
:= TARGET
= delete
97 _msg
:= TARGET
= catalog
98 _msg_gettext
:= TARGET
= catalog
99 _msg_sgsmsg
:= TARGET
= catalog
100 chkmsg
:= TARGET
= chkmsg
105 .PARALLEL
: $(SUBDIRS
)
107 all install: native-add .WAIT
$(SUBDIRS
)
109 include $(SRC
)/cmd
/Makefile.targ
113 _msg
: _msg_gettext _msg_sgsmsg
115 _msg_gettext
: $(MSGDOMAIN
)/$(POFILE
)
117 # $(MACH)/sgsmsg must be built before we can descend into $(MSGDIR)
118 _msg_sgsmsg
: native-add .WAIT
$(MSGDIR
)
120 $(MSGDOMAIN
)/$(POFILE
): \
121 $(MSGDOMAIN
) $(POFILE
)
123 $(POFILE
): $(POSUBDIRS
)
125 cat
$(POFILES
) > $(POFILE
)
127 $(MSGDIR
): $(MSGSUBDIRS
) FRC
128 @ cd
$@
; pwd
; $(MAKE
) $(TARGET
)
130 chkmsg
: $(MSGSUBDIRS
) FRC
134 # built from lib/Makefile
136 @ cd
lex; pwd
; $(MAKE
) $@
137 @ cd
yacc; pwd
; $(MAKE
) $@
140 clean clobber: native-clobber .WAIT
$(SUBDIRS
) $(MSGDIR
)
143 @ cd
$@
; pwd
; $(MAKE
) $(TARGET
)
146 # Integration of ld and ld.so.1 in some developement cycles requires that both
147 # of these modules be built using the new ld. This `native' target allows us
148 # to build a local ld which will then be used to build the delivered version of
149 # itself and ld.so.1. Once this new functionality appears in the standard ld
150 # this target can be disabled.
153 @ cd tools
/$(MACH
); pwd
; $(MAKE
) native
154 @ cd libconv
/$(MACH
); pwd
; $(MAKE
)
155 @ cd libelf
/$(MACH
); pwd
; $(MAKE
) native
156 @ cd liblddbg
/$(MACH
); pwd
; $(MAKE
) native
157 @ cd libldstab
/$(MACH
); pwd
; $(MAKE
) native
158 @ cd libld
/$(MACH
); pwd
; $(MAKE
) native
159 @ cd
ld/$(MACH
); pwd
; $(MAKE
) native
162 @ cd tools
; pwd
; $(MAKE
) $(TARGET
)
163 $(RM
) -r proto
/$(MACH
)