Makefile revision dc0093f44ee4fac928e006850f8ed53f68277af5
b886b04d8d2b085cbf3e1bf4442dee87f43ba5e4Tinderbox User#
6fe48fb46e53ffc37542853a1edb74cb481b7d94Automatic Updater# CDDL HEADER START
7a2a1b8b14fc804ac80612d7b98064095e445be5Automatic Updater#
7a42357217528037bdfedcb17eeebfe96ae4266aAutomatic Updater# The contents of this file are subject to the terms of the
1167fc7904c5f0a472f8df207ac46dd52c7f1ec8Automatic Updater# Common Development and Distribution License (the "License").
0c39b3ed9409ecb277d5e32fa763a4e4d6598df8Automatic Updater# You may not use this file except in compliance with the License.
46da3117812814a29432a8d9a9ccf8acdbfdadceAutomatic Updater#
6fe48fb46e53ffc37542853a1edb74cb481b7d94Automatic Updater# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
fe84edc17e0d582cf7b4270f8df9d4742a107b1cAutomatic Updater# or http://www.opensolaris.org/os/licensing.
79b273c187a4aa1016a62181983dfdd0521681aeMark Andrews# See the License for the specific language governing permissions
90ff38a0d8deaf5f9c2aa5916d99b2e572d28738Automatic Updater# and limitations under the License.
9e3a7b0faf417a10f5f689edf288807b2d5eedc5Brian Wellington#
6c6a121295b30772cbf3dd75a51fb9d883051a0eAutomatic Updater# When distributing Covered Code, include this CDDL HEADER in each
b886b04d8d2b085cbf3e1bf4442dee87f43ba5e4Tinderbox User# file and include the License file at usr/src/OPENSOLARIS.LICENSE.
9cd5eb6fe0f26d65724b99216cb31dcdd12e4afdAutomatic Updater# If applicable, add the following below this CDDL HEADER, with the
bbde8dc56605130058a1540609264fa109da3b63Automatic Updater# fields enclosed by brackets "[]" replaced with your own identifying
bbde8dc56605130058a1540609264fa109da3b63Automatic Updater# information: Portions Copyright [yyyy] [name of copyright owner]
c651f15b30f1dae5cc2f00878fb5da5b3a35a468Mark Andrews#
e130ab53e992670e2a2ecf043976ac09f21358d1Automatic Updater# CDDL HEADER END
3cc98b8ecedcbc8465f1cf2740b966b315662430Automatic Updater#
c651f15b30f1dae5cc2f00878fb5da5b3a35a468Mark Andrews#
c651f15b30f1dae5cc2f00878fb5da5b3a35a468Mark Andrews# Copyright 2006 Sun Microsystems, Inc. All rights reserved.
bbde8dc56605130058a1540609264fa109da3b63Automatic Updater# Use is subject to license terms.
bbde8dc56605130058a1540609264fa109da3b63Automatic Updater#
c651f15b30f1dae5cc2f00878fb5da5b3a35a468Mark Andrews# ident "%Z%%M% %I% %E% SMI"
f2770f6b39a9b2a98afb7a11ed105f73f1570c1eAutomatic Updater#
efb0e886f18894a1d2489f1ad74ad14b579e11c7Mark Andrews
f2770f6b39a9b2a98afb7a11ed105f73f1570c1eAutomatic Updaterinclude $(SRC)/cmd/Makefile.cmd
91216cff91b34c9ff6e846dc23f248219cafe660Andreas Gustafsson
f2770f6b39a9b2a98afb7a11ed105f73f1570c1eAutomatic UpdaterSUBDIRS-common= libconv \
f2770f6b39a9b2a98afb7a11ed105f73f1570c1eAutomatic Updater .WAIT \
91216cff91b34c9ff6e846dc23f248219cafe660Andreas Gustafsson libdl \
f2770f6b39a9b2a98afb7a11ed105f73f1570c1eAutomatic Updater .WAIT \
b886b04d8d2b085cbf3e1bf4442dee87f43ba5e4Tinderbox User libelf \
9513a2a6670951f5cf5477fcfec9f933fcaff628Automatic Updater .WAIT \
aa9c561961e9d877946ebaa8795fa2be054ab7bfEvan Hunt liblddbg \
e130ab53e992670e2a2ecf043976ac09f21358d1Automatic Updater .WAIT \
9513a2a6670951f5cf5477fcfec9f933fcaff628Automatic Updater libld \
aa9c561961e9d877946ebaa8795fa2be054ab7bfEvan Hunt libldmake \
9513a2a6670951f5cf5477fcfec9f933fcaff628Automatic Updater libldstab \
9513a2a6670951f5cf5477fcfec9f933fcaff628Automatic Updater librtld \
9513a2a6670951f5cf5477fcfec9f933fcaff628Automatic Updater libcrle \
aa9c561961e9d877946ebaa8795fa2be054ab7bfEvan Hunt sgsdemangler \
e130ab53e992670e2a2ecf043976ac09f21358d1Automatic Updater .WAIT \
2d2dc37599979c83495510f8af8d1756753aa2c5Automatic Updater 0@0 \
aa9c561961e9d877946ebaa8795fa2be054ab7bfEvan Hunt ld \
9513a2a6670951f5cf5477fcfec9f933fcaff628Automatic Updater ldd \
9513a2a6670951f5cf5477fcfec9f933fcaff628Automatic Updater lddstub \
9513a2a6670951f5cf5477fcfec9f933fcaff628Automatic Updater rtld \
9513a2a6670951f5cf5477fcfec9f933fcaff628Automatic Updater link_audit \
cdfc81e048bd34c1d628380247bda6b80a89e20eAutomatic Updater .WAIT \
cdfc81e048bd34c1d628380247bda6b80a89e20eAutomatic Updater librtld_db \
9513a2a6670951f5cf5477fcfec9f933fcaff628Automatic Updater ldprof \
9513a2a6670951f5cf5477fcfec9f933fcaff628Automatic Updater pvs \
9513a2a6670951f5cf5477fcfec9f933fcaff628Automatic Updater crle \
9513a2a6670951f5cf5477fcfec9f933fcaff628Automatic Updater ar \
eabc9c3c07cd956d3c436bd7614cb162dabdda76Mark Andrews dump \
eabc9c3c07cd956d3c436bd7614cb162dabdda76Mark Andrews elfdump \
eabc9c3c07cd956d3c436bd7614cb162dabdda76Mark Andrews error \
b886b04d8d2b085cbf3e1bf4442dee87f43ba5e4Tinderbox User gprof \
9cd5eb6fe0f26d65724b99216cb31dcdd12e4afdAutomatic Updater lari \
c651f15b30f1dae5cc2f00878fb5da5b3a35a468Mark Andrews lex \
6fe48fb46e53ffc37542853a1edb74cb481b7d94Automatic Updater lorder \
8e9f3b69914ee02a80b87c97b1f8093edb3e9ae0Automatic Updater m4 \
c651f15b30f1dae5cc2f00878fb5da5b3a35a468Mark Andrews mapfiles \
930f6069e5aa157cf6987cdafd412f5757a5a558Automatic Updater mcs \
c651f15b30f1dae5cc2f00878fb5da5b3a35a468Mark Andrews moe \
930f6069e5aa157cf6987cdafd412f5757a5a558Automatic Updater nm \
80faf1588895fd26490f82f95a7a1b771df1c324Automatic Updater prof \
c651f15b30f1dae5cc2f00878fb5da5b3a35a468Mark Andrews ranlib \
6fe48fb46e53ffc37542853a1edb74cb481b7d94Automatic Updater size \
c651f15b30f1dae5cc2f00878fb5da5b3a35a468Mark Andrews symorder \
930f6069e5aa157cf6987cdafd412f5757a5a558Automatic Updater tsort \
693c4232dfdffaff672197d4b9fea944c64cf80aAutomatic Updater unifdef \
c651f15b30f1dae5cc2f00878fb5da5b3a35a468Mark Andrews yacc
f2770f6b39a9b2a98afb7a11ed105f73f1570c1eAutomatic Updater
91216cff91b34c9ff6e846dc23f248219cafe660Andreas GustafssonSUBDIRS-i386=
f2770f6b39a9b2a98afb7a11ed105f73f1570c1eAutomatic UpdaterSUBDIRS-sparc= rtld.4.x
f2770f6b39a9b2a98afb7a11ed105f73f1570c1eAutomatic Updater
efb0e886f18894a1d2489f1ad74ad14b579e11c7Mark AndrewsSUBDIRS= $(SUBDIRS-common) $(SUBDIRS-$(MACH))
f2770f6b39a9b2a98afb7a11ed105f73f1570c1eAutomatic Updater
91216cff91b34c9ff6e846dc23f248219cafe660Andreas Gustafsson# Messaging support
f2770f6b39a9b2a98afb7a11ed105f73f1570c1eAutomatic Updater#
f2770f6b39a9b2a98afb7a11ed105f73f1570c1eAutomatic UpdaterPOSUBDIRS= ar m4 nm \
91216cff91b34c9ff6e846dc23f248219cafe660Andreas Gustafsson tsort yacc
f2770f6b39a9b2a98afb7a11ed105f73f1570c1eAutomatic UpdaterPOFILE= sgs.po
b886b04d8d2b085cbf3e1bf4442dee87f43ba5e4Tinderbox UserPOFILES= $(POSUBDIRS:%=%/%.po)
dd65eb1efb40b1c47d57963192bfc54873b219beAutomatic Updater
78f3ed4bc2fcd3d270bfd599804f3b27a1db4d91Mark AndrewsMSGSUBDIRS= ld ldd libld liblddbg \
11af78f7dc35741bdab68dbab11b03daab005b28Automatic Updater libldstab librtld rtld libelf \
11af78f7dc35741bdab68dbab11b03daab005b28Automatic Updater ldprof libcrle pvs elfdump \
78f3ed4bc2fcd3d270bfd599804f3b27a1db4d91Mark Andrews crle moe lari librtld_db
2a31bd531072824ef252c18303859d6af7451b00Francis Dupont
e130ab53e992670e2a2ecf043976ac09f21358d1Automatic UpdaterMSGDIR= messages
8ccd7da886e93cd490fcb6f4c4e98a6514f35820Automatic Updater
2a31bd531072824ef252c18303859d6af7451b00Francis Dupont
c651f15b30f1dae5cc2f00878fb5da5b3a35a468Mark Andrewsall := TARGET= all
e130ab53e992670e2a2ecf043976ac09f21358d1Automatic Updaterinstall := TARGET= install
a308b69ac66fadf66863484f301314d6e6a3f1d2Automatic Updaterclean := TARGET= clean
c651f15b30f1dae5cc2f00878fb5da5b3a35a468Mark Andrewsclobber := TARGET= clobber
78f3ed4bc2fcd3d270bfd599804f3b27a1db4d91Mark Andrewsdelete := TARGET= delete
24bf1e02f03577db0feb50b80238c4150c96d05dAutomatic Updaterlint := TARGET= lint
24bf1e02f03577db0feb50b80238c4150c96d05dAutomatic Updater_msg := TARGET= catalog
78f3ed4bc2fcd3d270bfd599804f3b27a1db4d91Mark Andrews_msg_gettext := TARGET= catalog
78f3ed4bc2fcd3d270bfd599804f3b27a1db4d91Mark Andrews_msg_sgsmsg := TARGET= catalog
a308b69ac66fadf66863484f301314d6e6a3f1d2Automatic Updaterchkmsg := TARGET= chkmsg
a308b69ac66fadf66863484f301314d6e6a3f1d2Automatic Updater
78f3ed4bc2fcd3d270bfd599804f3b27a1db4d91Mark Andrews
c651f15b30f1dae5cc2f00878fb5da5b3a35a468Mark Andrews.KEEP_STATE:
6fe48fb46e53ffc37542853a1edb74cb481b7d94Automatic Updater
82447d835d3ff5c658749b4e9b4f66166407b3eaAutomatic Updater.PARALLEL: $(SUBDIRS)
c651f15b30f1dae5cc2f00878fb5da5b3a35a468Mark Andrews
24bf1e02f03577db0feb50b80238c4150c96d05dAutomatic Updaterall install: native-add .WAIT $(SUBDIRS)
24bf1e02f03577db0feb50b80238c4150c96d05dAutomatic Updater
f2770f6b39a9b2a98afb7a11ed105f73f1570c1eAutomatic Updaterinclude $(SRC)/cmd/Makefile.targ
cdfc81e048bd34c1d628380247bda6b80a89e20eAutomatic Updater
f2770f6b39a9b2a98afb7a11ed105f73f1570c1eAutomatic Updater# Messaging support
fe80a4909bf62b602feaf246866e9d29f7654194Automatic Updater#
f2770f6b39a9b2a98afb7a11ed105f73f1570c1eAutomatic Updater_msg: _msg_gettext _msg_sgsmsg
f2770f6b39a9b2a98afb7a11ed105f73f1570c1eAutomatic Updater
fe80a4909bf62b602feaf246866e9d29f7654194Automatic Updater_msg_gettext: $(MSGDOMAIN)/$(POFILE)
f2770f6b39a9b2a98afb7a11ed105f73f1570c1eAutomatic Updater
f2770f6b39a9b2a98afb7a11ed105f73f1570c1eAutomatic Updater_msg_sgsmsg: $(MSGDIR)
91216cff91b34c9ff6e846dc23f248219cafe660Andreas Gustafsson
f2770f6b39a9b2a98afb7a11ed105f73f1570c1eAutomatic Updater$(MSGDOMAIN)/$(POFILE): \
aa1d397c4736cd86540555193d71e55fa3b37b2aMark Andrews $(MSGDOMAIN) $(POFILE)
91216cff91b34c9ff6e846dc23f248219cafe660Andreas Gustafsson
dd65eb1efb40b1c47d57963192bfc54873b219beAutomatic Updater$(POFILE): $(POSUBDIRS)
dd65eb1efb40b1c47d57963192bfc54873b219beAutomatic Updater $(RM) $(POFILE)
dd65eb1efb40b1c47d57963192bfc54873b219beAutomatic Updater cat $(POFILES) > $(POFILE)
133e6d43fa82e80d3798be4de00f4540f485ec6cAutomatic Updater
133e6d43fa82e80d3798be4de00f4540f485ec6cAutomatic Updater$(MSGDIR): $(MSGSUBDIRS) FRC
133e6d43fa82e80d3798be4de00f4540f485ec6cAutomatic Updater @ cd $@; pwd; $(MAKE) $(TARGET)
f2770f6b39a9b2a98afb7a11ed105f73f1570c1eAutomatic Updater
91216cff91b34c9ff6e846dc23f248219cafe660Andreas Gustafssonchkmsg: libconv $(MSGSUBDIRS) FRC
f2770f6b39a9b2a98afb7a11ed105f73f1570c1eAutomatic Updater
b886b04d8d2b085cbf3e1bf4442dee87f43ba5e4Tinderbox User# built from lib/Makefile
8711e5c73ca872d59810760af0332194cbdd619bAutomatic Updaterinstall_lib: FRC
b886b04d8d2b085cbf3e1bf4442dee87f43ba5e4Tinderbox User @ cd lex; pwd; $(MAKE) $@
0ce87e5749aabb8eef1e0a37e4bd6e6ffa1d7196Automatic Updater @ cd yacc; pwd; $(MAKE) $@
b886b04d8d2b085cbf3e1bf4442dee87f43ba5e4Tinderbox User
229ea4644b3a7d9c7fdaa43888e7f55ba01e2ee3Automatic Updaterlint: $(SUBDIRS)
f132a836c4e386b1af045dd8fe7106ae61b90bffAutomatic Updater
8f2c45a35dd8c40bcc9caba8f7d40ce64fc27bcdAutomatic Updaterdelete \
c6a0f4ae1d7183a16ffb196b86b647f870694796Automatic Updaterclean clobber: native-clobber .WAIT $(SUBDIRS) $(MSGDIR)
8f2c45a35dd8c40bcc9caba8f7d40ce64fc27bcdAutomatic Updater
b886b04d8d2b085cbf3e1bf4442dee87f43ba5e4Tinderbox User$(SUBDIRS): FRC
d145b64cacc8d9cda51f9924ec70cd4661c3e2cfAutomatic Updater @ cd $@; pwd; $(MAKE) $(TARGET)
8711e5c73ca872d59810760af0332194cbdd619bAutomatic Updater
ce9cad6bb04869c5e94d9dc721032b25117f9210Automatic Updater
8f2c45a35dd8c40bcc9caba8f7d40ce64fc27bcdAutomatic Updater# Integration of ld and ld.so.1 in some developement cycles requires that both
9513a2a6670951f5cf5477fcfec9f933fcaff628Automatic Updater# of these modules be built using the new ld. This `native' target allows us
8f2c45a35dd8c40bcc9caba8f7d40ce64fc27bcdAutomatic Updater# to build a local ld which will then be used to build the delivered version of
9c446b72069d0ab9f710502f4d7048e50875fccbAutomatic Updater# itself and ld.so.1. Once this new functionality appears in the standard ld
e85565067cf73f8cc21ee29b11761659f1d47ee9Automatic Updater# this target can be disabled.
ce9cad6bb04869c5e94d9dc721032b25117f9210Automatic Updater
bc0a53583d92309bebcf93c408e2f3247ebd3d3cAutomatic Updaternative-add: native-proto FRC
ce9cad6bb04869c5e94d9dc721032b25117f9210Automatic Updater @ cd tools/$(MACH); pwd; $(MAKE) native
ce9cad6bb04869c5e94d9dc721032b25117f9210Automatic Updater @ cd libconv/$(MACH); pwd; $(MAKE)
59528addd704f8d5757b54e540520f74e588a7c7Automatic Updater @ cd libelf/$(MACH); pwd; $(MAKE) native
ce9cad6bb04869c5e94d9dc721032b25117f9210Automatic Updater @ cd liblddbg/$(MACH); pwd; $(MAKE) native
ce9cad6bb04869c5e94d9dc721032b25117f9210Automatic Updater @ cd libldstab/$(MACH); pwd; $(MAKE) native
7f79131f9a8e804b93c57f3c679065cce878b726Automatic Updater @ cd libld/$(MACH); pwd; $(MAKE) native
59528addd704f8d5757b54e540520f74e588a7c7Automatic Updater @ cd ld/$(MACH); pwd; $(MAKE) native
ce9cad6bb04869c5e94d9dc721032b25117f9210Automatic Updater
3f616e6f846be57b1717c6beaba0f74de9d5a7c6Automatic Updaternative-clobber:
8f2c45a35dd8c40bcc9caba8f7d40ce64fc27bcdAutomatic Updater @ cd tools; pwd; $(MAKE) $(TARGET)
ce9cad6bb04869c5e94d9dc721032b25117f9210Automatic Updater $(RM) -r proto/$(MACH)
19b3dc94bce93fa76bd7e066f9298630dbc9dcb4Automatic Updater
ce9cad6bb04869c5e94d9dc721032b25117f9210Automatic Updaternative-proto:
9513a2a6670951f5cf5477fcfec9f933fcaff628Automatic Updater -@mkdir -p proto/$(MACH)
7f94d9a8162c9a96b56e66176702b66e79d8e1a2Automatic Updater
ce9cad6bb04869c5e94d9dc721032b25117f9210Automatic UpdaterFRC:
ce9cad6bb04869c5e94d9dc721032b25117f9210Automatic Updater
5ecad47f69b3fd945472ab2900a9ff826a7ce2f6Automatic Updater#
e130ab53e992670e2a2ecf043976ac09f21358d1Automatic Updater# Cross-reference customization: ignore the directories named by XRPRUNE,
ce9cad6bb04869c5e94d9dc721032b25117f9210Automatic Updater# and tweak the file globs slightly.
71bd43eebd9d6e42dbcae62b730f5b6508d5acd8Automatic Updater#
82447d835d3ff5c658749b4e9b4f66166407b3eaAutomatic UpdaterXRPRUNE= rtld.4.x spec packages abi
7262eb86f2b465822206122921e2f357218f0cfdAutomatic UpdaterXRADD= *.msg mapfile* llib-[a-z]*
96ea71632887c58a9d00f47eb318bf76b35903c3Mark AndrewsXRDEL= Makefile* kobj_*
ce9cad6bb04869c5e94d9dc721032b25117f9210Automatic Updater
9cd5eb6fe0f26d65724b99216cb31dcdd12e4afdAutomatic Updater#
bbb069be941f649228760edcc241122933c066d2Automatic Updater# Establish a set of directories for xref to search. As there are duplicates
9cd5eb6fe0f26d65724b99216cb31dcdd12e4afdAutomatic Updater# of things like headers, and only one file will be added to the xref database,
4cda4fd158d6ded5586bacea8c388445d99611eaAutomatic Updater# we want xref to list the source file.
c651f15b30f1dae5cc2f00878fb5da5b3a35a468Mark Andrews#
9cd5eb6fe0f26d65724b99216cb31dcdd12e4afdAutomatic UpdaterXRDIRS= . \
80faf1588895fd26490f82f95a7a1b771df1c324Automatic Updater ../../head \
c651f15b30f1dae5cc2f00878fb5da5b3a35a468Mark Andrews ../../uts/common/krtld \
ce9cad6bb04869c5e94d9dc721032b25117f9210Automatic Updater ../../uts/common/sys \
a382ca49c874d38ad3ac8995b49f9f27128e4ca9Automatic Updater ../../uts/sparc/sys \
c651f15b30f1dae5cc2f00878fb5da5b3a35a468Mark Andrews ../../uts/sparc/krtld \
c651f15b30f1dae5cc2f00878fb5da5b3a35a468Mark Andrews ../../uts/intel/ia32/krtld \
765c97d56ccddc9d7904c7d9ff2e2d825d9687e4Automatic Updater ../../uts/intel/amd64/krtld
c651f15b30f1dae5cc2f00878fb5da5b3a35a468Mark Andrews
cafd3a2b9974fe0a4ab95e0289746062bd958d68Automatic Updaterxref: FRC
c651f15b30f1dae5cc2f00878fb5da5b3a35a468Mark Andrews @ $(RM) cscope.*
ce9cad6bb04869c5e94d9dc721032b25117f9210Automatic Updater xref -p -x cscope
7a2a1b8b14fc804ac80612d7b98064095e445be5Automatic Updater