Makefile revision ead1f93ee620d7580f7e53350fe5a884fc4f158a
669e9657c731176df235832367f61435f7b83ddfAndreas Gustafsson#
0c27b3fe77ac1d5094ba3521e8142d9e7973133fMark Andrews# CDDL HEADER START
669e9657c731176df235832367f61435f7b83ddfAndreas Gustafsson#
0c27b3fe77ac1d5094ba3521e8142d9e7973133fMark Andrews# The contents of this file are subject to the terms of the
0c27b3fe77ac1d5094ba3521e8142d9e7973133fMark Andrews# Common Development and Distribution License (the "License").
0c27b3fe77ac1d5094ba3521e8142d9e7973133fMark Andrews# You may not use this file except in compliance with the License.
669e9657c731176df235832367f61435f7b83ddfAndreas Gustafsson#
669e9657c731176df235832367f61435f7b83ddfAndreas Gustafsson# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
cfd262045c23cadb8415f0111f56995258f17361Evan Hunt# or http://www.opensolaris.org/os/licensing.
669e9657c731176df235832367f61435f7b83ddfAndreas Gustafsson# See the License for the specific language governing permissions
669e9657c731176df235832367f61435f7b83ddfAndreas Gustafsson# and limitations under the License.
669e9657c731176df235832367f61435f7b83ddfAndreas Gustafsson#
669e9657c731176df235832367f61435f7b83ddfAndreas Gustafsson# When distributing Covered Code, include this CDDL HEADER in each
29747dfe5e073a299b3681e01f5c55540f8bfed7Mark Andrews# file and include the License file at usr/src/OPENSOLARIS.LICENSE.
ab023a65562e62b85a824509d829b6fad87e00b1Rob Austein# If applicable, add the following below this CDDL HEADER, with the
669e9657c731176df235832367f61435f7b83ddfAndreas Gustafsson# fields enclosed by brackets "[]" replaced with your own identifying
669e9657c731176df235832367f61435f7b83ddfAndreas Gustafsson# information: Portions Copyright [yyyy] [name of copyright owner]
669e9657c731176df235832367f61435f7b83ddfAndreas Gustafsson#
669e9657c731176df235832367f61435f7b83ddfAndreas Gustafsson# CDDL HEADER END
669e9657c731176df235832367f61435f7b83ddfAndreas Gustafsson#
669e9657c731176df235832367f61435f7b83ddfAndreas Gustafsson
669e9657c731176df235832367f61435f7b83ddfAndreas Gustafsson#
669e9657c731176df235832367f61435f7b83ddfAndreas Gustafsson# Copyright 2010 Sun Microsystems, Inc. All rights reserved.
669e9657c731176df235832367f61435f7b83ddfAndreas Gustafsson# Use is subject to license terms.
ab023a65562e62b85a824509d829b6fad87e00b1Rob Austein#
669e9657c731176df235832367f61435f7b83ddfAndreas Gustafsson
3a30493983df83a3184dd1ecd39cf31ccdac3badEvan Huntinclude ../Makefile.master
3a30493983df83a3184dd1ecd39cf31ccdac3badEvan Hunt
3a30493983df83a3184dd1ecd39cf31ccdac3badEvan Hunt# Bootstrap problem --
cfd262045c23cadb8415f0111f56995258f17361Evan Hunt# 'cw' must be built before anything else can be built.
cfd262045c23cadb8415f0111f56995258f17361Evan Hunt
cfd262045c23cadb8415f0111f56995258f17361Evan HuntBOOT_SUBDIRS= \
86dcc4005887f91d23d970d4574a8f6afa7e28d2Evan Hunt cw
86dcc4005887f91d23d970d4574a8f6afa7e28d2Evan Hunt
86dcc4005887f91d23d970d4574a8f6afa7e28d2Evan HuntCOMMON_SUBDIRS= \
669e9657c731176df235832367f61435f7b83ddfAndreas Gustafsson bfuld \
ab023a65562e62b85a824509d829b6fad87e00b1Rob Austein codereview \
669e9657c731176df235832367f61435f7b83ddfAndreas Gustafsson codesign \
669e9657c731176df235832367f61435f7b83ddfAndreas Gustafsson cscope-fast \
ab023a65562e62b85a824509d829b6fad87e00b1Rob Austein ctf \
669e9657c731176df235832367f61435f7b83ddfAndreas Gustafsson depcheck \
08f860f800d32007a0c9bf456f6c35fbb2ecbc81Evan Hunt env \
33a31c5cabced2bb6ead30d1d327321b8d9241c5Evan Hunt fastfs \
351b62535d4c4f89883bfdba025999dd32490266Evan Hunt findunref \
669e9657c731176df235832367f61435f7b83ddfAndreas Gustafsson ndrgen \
ab023a65562e62b85a824509d829b6fad87e00b1Rob Austein onbld \
669e9657c731176df235832367f61435f7b83ddfAndreas Gustafsson pmodes \
d46855caedd5cb101795707f6f467fa363ef1448Evan Hunt gk \
d46855caedd5cb101795707f6f467fa363ef1448Evan Hunt install.bin \
d46855caedd5cb101795707f6f467fa363ef1448Evan Hunt lintdump \
86739ab72c952a193c60e2f2e876346fa08daf54Mark Andrews protocmp \
protolist \
scripts
#
# special versions of commands for use only in build
#
UNSHIPPED_SUBDIRS = \
elfsign
sparc_SUBDIRS= \
chk4ubin \
stabs \
tokenize
i386_SUBDIRS= \
aw \
elfextract \
mbh_patch
LINTSUBDIRS= \
codereview \
ctf \
cw \
findunref \
lintdump \
ndrgen \
protocmp \
protolist
SUBDIRS= \
$($(MACH)_SUBDIRS) \
$(COMMON_SUBDIRS) \
$(UNSHIPPED_SUBDIRS)
include Makefile.tools
ROOTDIRS= \
$(ROOTOPT) \
$(ROOTONBLD) \
$(ROOTONBLD)/bin \
$(ROOTONBLD)/bin/$(MACH) \
$(ROOTONBLD)/lib \
$(ROOTONBLD)/lib/$(MACH) \
$(ROOTONBLD)/lib/perl \
$(ROOTONBLD)/lib/python \
$(ROOTONBLD)/lib/python/onbld \
$(ROOTONBLD)/lib/python/onbld/Checks \
$(ROOTONBLD)/lib/python/onbld/hgext \
$(ROOTONBLD)/lib/python/onbld/Scm \
$(ROOTONBLD)/env \
$(ROOTONBLD)/etc \
$(ROOTONBLD)/etc/exception_lists \
$(ROOTONBLD)/gk \
$(ROOTONBLD)/man \
$(ROOTONBLD)/man/man1 \
$(ROOTONBLD)/man/sman1
all := TARGET= install
install := TARGET= install
clean := TARGET= clean
clobber := TARGET= clobber
lint := TARGET= lint
_msg := TARGET= _msg
.KEEP_STATE:
#
# Only create directories in the tools proto area when doing an actual
# build, not a clean or clobber.
#
DOROOTDIRS= $(ROOTDIRS)
clobber:= DOROOTDIRS=
clean:= DOROOTDIRS=
all install: $(SUBDIRS)
clean: $(SUBDIRS)
clobber: $(SUBDIRS)
$(RM) -rf $(TOOLS_PROTO)
lint: $(LINTSUBDIRS)
_msg: $(MSGSUBDIRS)
.PARALLEL: $(SUBDIRS) $(CLOSED_SUBDIRS)
$(SUBDIRS) $(CLOSED_SUBDIRS): $(BOOT_SUBDIRS)
$(BOOT_SUBDIRS) $(SUBDIRS): $$(DOROOTDIRS) FRC
@cd $@; pwd; $(MAKE) $(TARGET)
$(ROOTDIRS):
$(INS.dir)
FRC: