Makefile revision 75ce41a57ff334bd8fe2cb9ed51eea835892f944
b897c52f865b2fc4e220e2110b874e59c716456bBob Halley#
5fbced719b71e659322b4ce3e4a39c9b039674c7Bob Halley# CDDL HEADER START
5c144477062a5df657acee41a82051d38537fd38Tinderbox User#
bf8267aa453e5d2a735ed732a043b77a0b355b20Mark Andrews# The contents of this file are subject to the terms of the
bf8267aa453e5d2a735ed732a043b77a0b355b20Mark Andrews# Common Development and Distribution License (the "License").
bf8267aa453e5d2a735ed732a043b77a0b355b20Mark Andrews# You may not use this file except in compliance with the License.
bf8267aa453e5d2a735ed732a043b77a0b355b20Mark Andrews#
bf8267aa453e5d2a735ed732a043b77a0b355b20Mark Andrews# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
bf8267aa453e5d2a735ed732a043b77a0b355b20Mark Andrews# or http://www.opensolaris.org/os/licensing.
bf8267aa453e5d2a735ed732a043b77a0b355b20Mark Andrews# See the License for the specific language governing permissions
bf8267aa453e5d2a735ed732a043b77a0b355b20Mark Andrews# and limitations under the License.
bf8267aa453e5d2a735ed732a043b77a0b355b20Mark Andrews#
bf8267aa453e5d2a735ed732a043b77a0b355b20Mark Andrews# When distributing Covered Code, include this CDDL HEADER in each
bf8267aa453e5d2a735ed732a043b77a0b355b20Mark Andrews# file and include the License file at usr/src/OPENSOLARIS.LICENSE.
bf8267aa453e5d2a735ed732a043b77a0b355b20Mark Andrews# If applicable, add the following below this CDDL HEADER, with the
bf8267aa453e5d2a735ed732a043b77a0b355b20Mark Andrews# fields enclosed by brackets "[]" replaced with your own identifying
15a44745412679c30a6d022733925af70a38b715David Lawrence# information: Portions Copyright [yyyy] [name of copyright owner]
5a6e6c2c9b2f6cf426aa2a682aa800765e26d540Andreas Gustafsson#
5a6e6c2c9b2f6cf426aa2a682aa800765e26d540Andreas Gustafsson# CDDL HEADER END
5a6e6c2c9b2f6cf426aa2a682aa800765e26d540Andreas Gustafsson#
5a6e6c2c9b2f6cf426aa2a682aa800765e26d540Andreas Gustafsson
f4a7d04843eb62c92f2d4ff338da49ae86e3279bDavid Lawrence#
2da2220fe7af2c45724b50b0187523b1fab0cf08Rob Austein# Copyright 2009 Sun Microsystems, Inc. All rights reserved.
2da2220fe7af2c45724b50b0187523b1fab0cf08Rob Austein# Use is subject to license terms.
2da2220fe7af2c45724b50b0187523b1fab0cf08Rob Austein#
2da2220fe7af2c45724b50b0187523b1fab0cf08Rob Austein
5a6e6c2c9b2f6cf426aa2a682aa800765e26d540Andreas Gustafssoninclude ../Makefile.master
5a6e6c2c9b2f6cf426aa2a682aa800765e26d540Andreas Gustafsson
f4a7d04843eb62c92f2d4ff338da49ae86e3279bDavid Lawrence# Bootstrap problem --
f4a7d04843eb62c92f2d4ff338da49ae86e3279bDavid Lawrence# 'cw' must be built before anything else can be built.
cb3e854e181373807f7f011e5050c1a8013b4841Brian Wellington
f4a7d04843eb62c92f2d4ff338da49ae86e3279bDavid LawrenceBOOT_SUBDIRS= \
f4a7d04843eb62c92f2d4ff338da49ae86e3279bDavid Lawrence cw
f4a7d04843eb62c92f2d4ff338da49ae86e3279bDavid Lawrence
5a6e6c2c9b2f6cf426aa2a682aa800765e26d540Andreas GustafssonCOMMON_SUBDIRS= \
5a6e6c2c9b2f6cf426aa2a682aa800765e26d540Andreas Gustafsson bfuld \
5a6e6c2c9b2f6cf426aa2a682aa800765e26d540Andreas Gustafsson codereview \
5a6e6c2c9b2f6cf426aa2a682aa800765e26d540Andreas Gustafsson codesign \
5a6e6c2c9b2f6cf426aa2a682aa800765e26d540Andreas Gustafsson cscope-fast \
5a6e6c2c9b2f6cf426aa2a682aa800765e26d540Andreas Gustafsson ctf \
5a6e6c2c9b2f6cf426aa2a682aa800765e26d540Andreas Gustafsson depcheck \
6ca4964362ec37d6afbf614dbb9aaa2f525002f1Mark Andrews env \
c968a9ca37964ae0bdc5d452ad784ec93bd04c57David Lawrence fastfs \
5a6e6c2c9b2f6cf426aa2a682aa800765e26d540Andreas Gustafsson findunref \
f4a7d04843eb62c92f2d4ff338da49ae86e3279bDavid Lawrence ndrgen \
f4a7d04843eb62c92f2d4ff338da49ae86e3279bDavid Lawrence onbld \
f4a7d04843eb62c92f2d4ff338da49ae86e3279bDavid Lawrence pmodes \
f4a7d04843eb62c92f2d4ff338da49ae86e3279bDavid Lawrence gk \
f4a7d04843eb62c92f2d4ff338da49ae86e3279bDavid Lawrence install.bin \
b897c52f865b2fc4e220e2110b874e59c716456bBob Halley lintdump \
b897c52f865b2fc4e220e2110b874e59c716456bBob Halley protocmp \
c651f15b30f1dae5cc2f00878fb5da5b3a35a468Mark Andrews protolist \
c651f15b30f1dae5cc2f00878fb5da5b3a35a468Mark Andrews scripts
c651f15b30f1dae5cc2f00878fb5da5b3a35a468Mark Andrews
c651f15b30f1dae5cc2f00878fb5da5b3a35a468Mark Andrews#
c651f15b30f1dae5cc2f00878fb5da5b3a35a468Mark Andrews# special versions of commands for use only in build
9640c35421ba0bb4af6b6bfbff695d2a0ac560b3Mark Andrews#
7877ad5db24dbad945afc670b2010c70d0d7e2f5Mark AndrewsUNSHIPPED_SUBDIRS = \
7877ad5db24dbad945afc670b2010c70d0d7e2f5Mark Andrews elfsign
b897c52f865b2fc4e220e2110b874e59c716456bBob Halley
c651f15b30f1dae5cc2f00878fb5da5b3a35a468Mark Andrewssparc_SUBDIRS= \
c651f15b30f1dae5cc2f00878fb5da5b3a35a468Mark Andrews chk4ubin \
c651f15b30f1dae5cc2f00878fb5da5b3a35a468Mark Andrews stabs \
c651f15b30f1dae5cc2f00878fb5da5b3a35a468Mark Andrews tokenize
c651f15b30f1dae5cc2f00878fb5da5b3a35a468Mark Andrews
c651f15b30f1dae5cc2f00878fb5da5b3a35a468Mark Andrewsi386_SUBDIRS= \
c651f15b30f1dae5cc2f00878fb5da5b3a35a468Mark Andrews aw \
c651f15b30f1dae5cc2f00878fb5da5b3a35a468Mark Andrews elfextract \
c651f15b30f1dae5cc2f00878fb5da5b3a35a468Mark Andrews mbh_patch
c651f15b30f1dae5cc2f00878fb5da5b3a35a468Mark Andrews
c651f15b30f1dae5cc2f00878fb5da5b3a35a468Mark AndrewsLINTSUBDIRS= \
c651f15b30f1dae5cc2f00878fb5da5b3a35a468Mark Andrews codereview \
c651f15b30f1dae5cc2f00878fb5da5b3a35a468Mark Andrews ctf \
c651f15b30f1dae5cc2f00878fb5da5b3a35a468Mark Andrews cw \
c651f15b30f1dae5cc2f00878fb5da5b3a35a468Mark Andrews findunref \
c651f15b30f1dae5cc2f00878fb5da5b3a35a468Mark Andrews lintdump \
c651f15b30f1dae5cc2f00878fb5da5b3a35a468Mark Andrews ndrgen \
c651f15b30f1dae5cc2f00878fb5da5b3a35a468Mark Andrews protocmp \
c651f15b30f1dae5cc2f00878fb5da5b3a35a468Mark Andrews protolist
c651f15b30f1dae5cc2f00878fb5da5b3a35a468Mark Andrews
c651f15b30f1dae5cc2f00878fb5da5b3a35a468Mark AndrewsSUBDIRS= \
c651f15b30f1dae5cc2f00878fb5da5b3a35a468Mark Andrews $($(MACH)_SUBDIRS) \
e107074f370ee86275bd64ab8bcaa429fec1c7e2Mark Andrews $(COMMON_SUBDIRS) \
e107074f370ee86275bd64ab8bcaa429fec1c7e2Mark Andrews $(UNSHIPPED_SUBDIRS)
e107074f370ee86275bd64ab8bcaa429fec1c7e2Mark Andrews
e107074f370ee86275bd64ab8bcaa429fec1c7e2Mark Andrews#
e107074f370ee86275bd64ab8bcaa429fec1c7e2Mark Andrews# Packages built here
e107074f370ee86275bd64ab8bcaa429fec1c7e2Mark Andrews#
e107074f370ee86275bd64ab8bcaa429fec1c7e2Mark AndrewsPKG_SUBDIRS= SUNWonbld
e107074f370ee86275bd64ab8bcaa429fec1c7e2Mark Andrews
e107074f370ee86275bd64ab8bcaa429fec1c7e2Mark Andrewsinclude Makefile.tools
e107074f370ee86275bd64ab8bcaa429fec1c7e2Mark Andrews
e107074f370ee86275bd64ab8bcaa429fec1c7e2Mark AndrewsROOTDIRS= \
e107074f370ee86275bd64ab8bcaa429fec1c7e2Mark Andrews $(ROOTOPT) \
e107074f370ee86275bd64ab8bcaa429fec1c7e2Mark Andrews $(ROOTONBLD) \
e107074f370ee86275bd64ab8bcaa429fec1c7e2Mark Andrews $(ROOTONBLD)/bin \
e107074f370ee86275bd64ab8bcaa429fec1c7e2Mark Andrews $(ROOTONBLD)/bin/$(MACH) \
e107074f370ee86275bd64ab8bcaa429fec1c7e2Mark Andrews $(ROOTONBLD)/lib \
e107074f370ee86275bd64ab8bcaa429fec1c7e2Mark Andrews $(ROOTONBLD)/lib/$(MACH) \
e107074f370ee86275bd64ab8bcaa429fec1c7e2Mark Andrews $(ROOTONBLD)/lib/perl \
e107074f370ee86275bd64ab8bcaa429fec1c7e2Mark Andrews $(ROOTONBLD)/lib/python \
c651f15b30f1dae5cc2f00878fb5da5b3a35a468Mark Andrews $(ROOTONBLD)/lib/python/onbld \
c651f15b30f1dae5cc2f00878fb5da5b3a35a468Mark Andrews $(ROOTONBLD)/lib/python/onbld/Checks \
c651f15b30f1dae5cc2f00878fb5da5b3a35a468Mark Andrews $(ROOTONBLD)/lib/python/onbld/hgext \
f4a7d04843eb62c92f2d4ff338da49ae86e3279bDavid Lawrence $(ROOTONBLD)/lib/python/onbld/Scm \
f4a7d04843eb62c92f2d4ff338da49ae86e3279bDavid Lawrence $(ROOTONBLD)/env \
f4a7d04843eb62c92f2d4ff338da49ae86e3279bDavid Lawrence $(ROOTONBLD)/etc \
f4a7d04843eb62c92f2d4ff338da49ae86e3279bDavid Lawrence $(ROOTONBLD)/etc/exception_lists \
4b598d8ae578861d5f3fc1333c9f84c9c9c8be7cDavid Lawrence $(ROOTONBLD)/gk \
8959ca20706f210127d0af1df769fb945c92baeaMark Andrews $(ROOTONBLD)/man \
4b598d8ae578861d5f3fc1333c9f84c9c9c8be7cDavid Lawrence $(ROOTONBLD)/man/man1
c651f15b30f1dae5cc2f00878fb5da5b3a35a468Mark Andrews
c651f15b30f1dae5cc2f00878fb5da5b3a35a468Mark Andrewsall := TARGET= install
c651f15b30f1dae5cc2f00878fb5da5b3a35a468Mark Andrewsinstall := TARGET= install
c651f15b30f1dae5cc2f00878fb5da5b3a35a468Mark Andrewsclean := TARGET= clean
c651f15b30f1dae5cc2f00878fb5da5b3a35a468Mark Andrewsclobber := TARGET= clobber
c651f15b30f1dae5cc2f00878fb5da5b3a35a468Mark Andrewslint := TARGET= lint
c651f15b30f1dae5cc2f00878fb5da5b3a35a468Mark Andrews_msg := TARGET= _msg
c651f15b30f1dae5cc2f00878fb5da5b3a35a468Mark Andrews
f6161d8b90541b52946ae845bc8e2bec2647d6cbMark Andrews.KEEP_STATE:
5bae12051f80947fb9a5a6a3a54762e8bd08d95bMark Andrews
f6161d8b90541b52946ae845bc8e2bec2647d6cbMark Andrewsall install: $(SUBDIRS)
c651f15b30f1dae5cc2f00878fb5da5b3a35a468Mark Andrews
c651f15b30f1dae5cc2f00878fb5da5b3a35a468Mark Andrewsclean: $(SUBDIRS)
c651f15b30f1dae5cc2f00878fb5da5b3a35a468Mark Andrews
c651f15b30f1dae5cc2f00878fb5da5b3a35a468Mark Andrewsclobber: $(SUBDIRS)
c651f15b30f1dae5cc2f00878fb5da5b3a35a468Mark Andrews $(RM) -rf $(TOOLS_PROTO)
c651f15b30f1dae5cc2f00878fb5da5b3a35a468Mark Andrews
c651f15b30f1dae5cc2f00878fb5da5b3a35a468Mark Andrewspkg: install .WAIT $(PKG_SUBDIRS)
c651f15b30f1dae5cc2f00878fb5da5b3a35a468Mark Andrews
c651f15b30f1dae5cc2f00878fb5da5b3a35a468Mark Andrewslint: $(LINTSUBDIRS)
c651f15b30f1dae5cc2f00878fb5da5b3a35a468Mark Andrews
f4a7d04843eb62c92f2d4ff338da49ae86e3279bDavid Lawrence_msg: $(MSGSUBDIRS)
f4a7d04843eb62c92f2d4ff338da49ae86e3279bDavid Lawrence
f4a7d04843eb62c92f2d4ff338da49ae86e3279bDavid Lawrence.PARALLEL: $(SUBDIRS) $(PKG_SUBDIRS) $(CLOSED_SUBDIRS)
f4a7d04843eb62c92f2d4ff338da49ae86e3279bDavid Lawrence
f4a7d04843eb62c92f2d4ff338da49ae86e3279bDavid Lawrence$(SUBDIRS) $(CLOSED_SUBDIRS): $(BOOT_SUBDIRS)
f4a7d04843eb62c92f2d4ff338da49ae86e3279bDavid Lawrence
f4a7d04843eb62c92f2d4ff338da49ae86e3279bDavid Lawrence$(BOOT_SUBDIRS) $(SUBDIRS): $(ROOTDIRS) FRC
4b598d8ae578861d5f3fc1333c9f84c9c9c8be7cDavid Lawrence @cd $@; pwd; $(MAKE) $(TARGET)
f4a7d04843eb62c92f2d4ff338da49ae86e3279bDavid Lawrence
17f0452d8584cbcd6772b6d79eeadfa462162a51Mark Andrews$(PKG_SUBDIRS): FRC
17f0452d8584cbcd6772b6d79eeadfa462162a51Mark Andrews @cd $@; pwd; $(MAKE) install
17f0452d8584cbcd6772b6d79eeadfa462162a51Mark Andrews
17f0452d8584cbcd6772b6d79eeadfa462162a51Mark AndrewsFRC:
17f0452d8584cbcd6772b6d79eeadfa462162a51Mark Andrews
17f0452d8584cbcd6772b6d79eeadfa462162a51Mark Andrews$(ROOTDIRS):
17f0452d8584cbcd6772b6d79eeadfa462162a51Mark Andrews $(INS.dir)
17f0452d8584cbcd6772b6d79eeadfa462162a51Mark Andrews