Makefile revision 34c989574817eca41f72a5f02c848e51cfef32f0
5003b4008868032decd27b09f87bc1222ce1b783Joe Bandenburg#
5003b4008868032decd27b09f87bc1222ce1b783Joe Bandenburg# CDDL HEADER START
68072642abc17daa5de66abc3f5a7d1a7fa28df4Phil Ostler#
5003b4008868032decd27b09f87bc1222ce1b783Joe Bandenburg# The contents of this file are subject to the terms of the
5003b4008868032decd27b09f87bc1222ce1b783Joe Bandenburg# Common Development and Distribution License (the "License").
2c06a19ea78922141c3b7dd3a2eed97b6be769c7Phil Ostler# You may not use this file except in compliance with the License.
e5276054a98c3b8533446e12cf36d5f4f6e3ae8aPhil Ostler#
e5276054a98c3b8533446e12cf36d5f4f6e3ae8aPhil Ostler# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
e5276054a98c3b8533446e12cf36d5f4f6e3ae8aPhil Ostler# or http://www.opensolaris.org/os/licensing.
3744fd33666648bc38d51c2e5ae882f6217ba973Phil Ostler# See the License for the specific language governing permissions
3744fd33666648bc38d51c2e5ae882f6217ba973Phil Ostler# and limitations under the License.
2c06a19ea78922141c3b7dd3a2eed97b6be769c7Phil Ostler#
e5276054a98c3b8533446e12cf36d5f4f6e3ae8aPhil Ostler# When distributing Covered Code, include this CDDL HEADER in each
2c06a19ea78922141c3b7dd3a2eed97b6be769c7Phil Ostler# file and include the License file at usr/src/OPENSOLARIS.LICENSE.
2c06a19ea78922141c3b7dd3a2eed97b6be769c7Phil Ostler# If applicable, add the following below this CDDL HEADER, with the
5003b4008868032decd27b09f87bc1222ce1b783Joe Bandenburg# fields enclosed by brackets "[]" replaced with your own identifying
5003b4008868032decd27b09f87bc1222ce1b783Joe Bandenburg# information: Portions Copyright [yyyy] [name of copyright owner]
be383f2b623f6f8c2835ff440d216164c9e782dePhil Ostler#
7c7cf27656c20d2fa7d94f706d645561ff7ee26bJoe Bandenburg# CDDL HEADER END
c9af5b97c5aa9f281c6750f93736a3d494e72a3cPhil Ostler#
47f59a32a741e47285e7a5795babe50e1e0571e9Phil Ostler#
be383f2b623f6f8c2835ff440d216164c9e782dePhil Ostler# Copyright 2006 Sun Microsystems, Inc. All rights reserved.
be383f2b623f6f8c2835ff440d216164c9e782dePhil Ostler# Use is subject to license terms.
74f2ff66809c2c27078eb38e3995a153bded9ca7Phil Ostler#
47f59a32a741e47285e7a5795babe50e1e0571e9Phil Ostler#ident "%Z%%M% %I% %E% SMI"
1be69c3d0cb53b15d4522be4236ea785d3535e06Phil Ostler
825396f66be8e99fa60124ac9497cf1b454c43b7Phil Ostlerinclude ../Makefile.master
1be69c3d0cb53b15d4522be4236ea785d3535e06Phil Ostler
74f2ff66809c2c27078eb38e3995a153bded9ca7Phil Ostler# Bootstrap problem --
6ff269bd8fbb34a6ba1422f8ef579af819068e87Phil Ostler# 'cw' must be built before anything else can be built.
74f2ff66809c2c27078eb38e3995a153bded9ca7Phil Ostler
1be69c3d0cb53b15d4522be4236ea785d3535e06Phil OstlerBOOT_SUBDIRS= \
be383f2b623f6f8c2835ff440d216164c9e782dePhil Ostler cw
c9af5b97c5aa9f281c6750f93736a3d494e72a3cPhil Ostler
6ff269bd8fbb34a6ba1422f8ef579af819068e87Phil OstlerCOMMON_SUBDIRS= \
3275f8e43c9842647ae87a5e88cd415774ae27baPhil Ostler abi \
47f59a32a741e47285e7a5795babe50e1e0571e9Phil Ostler bfuld \
47f59a32a741e47285e7a5795babe50e1e0571e9Phil Ostler codereview \
be383f2b623f6f8c2835ff440d216164c9e782dePhil Ostler cscope-fast \
825396f66be8e99fa60124ac9497cf1b454c43b7Phil Ostler ctf \
be383f2b623f6f8c2835ff440d216164c9e782dePhil Ostler depcheck \
be383f2b623f6f8c2835ff440d216164c9e782dePhil Ostler env \
be383f2b623f6f8c2835ff440d216164c9e782dePhil Ostler fastfs \
809c4ffa9840ebc6d523f786633457a2c7e4bdc5Phil Ostler findunref \
be383f2b623f6f8c2835ff440d216164c9e782dePhil Ostler pmodes \
6ff269bd8fbb34a6ba1422f8ef579af819068e87Phil Ostler gk \
47f59a32a741e47285e7a5795babe50e1e0571e9Phil Ostler install.bin \
47f59a32a741e47285e7a5795babe50e1e0571e9Phil Ostler lintdump \
c9af5b97c5aa9f281c6750f93736a3d494e72a3cPhil Ostler protocmp \
1be69c3d0cb53b15d4522be4236ea785d3535e06Phil Ostler protolist \
1be69c3d0cb53b15d4522be4236ea785d3535e06Phil Ostler scripts
be383f2b623f6f8c2835ff440d216164c9e782dePhil Ostler
6ff269bd8fbb34a6ba1422f8ef579af819068e87Phil Ostler#
47f59a32a741e47285e7a5795babe50e1e0571e9Phil Ostler# special versions of commands for use only in build
5003b4008868032decd27b09f87bc1222ce1b783Joe Bandenburg#
5003b4008868032decd27b09f87bc1222ce1b783Joe BandenburgCLOSED_UNSHIPPED_SUBDIRS = \
elfsign
sparc_SUBDIRS= \
stabs \
tokenize
i386_SUBDIRS= \
aw
LINTSUBDIRS= \
codereview \
ctf \
cw \
findunref \
lintdump \
protocmp \
protolist
SUBDIRS= $(BOOT_SUBDIRS) $($(MACH)_SUBDIRS) $(COMMON_SUBDIRS)
$(CLOSED_BUILD)CLOSED_SUBDIRS= $(CLOSED_UNSHIPPED_SUBDIRS)
#
# Packages built here
#
COMMON_PKG_SUBDIRS= \
SUNWonbld
sparc_PKG_SUBDIRS=
i386_PKG_SUBDIRS= \
SUNWmrtools
PKG_SUBDIRS= $($(MACH)_PKG_SUBDIRS) $(COMMON_PKG_SUBDIRS)
include Makefile.tools
ROOTDIRS= \
$(ROOTONBLD) \
$(ROOTONBLD)/bin \
$(ROOTONBLD)/bin/$(MACH) \
$(ROOTONBLD)/lib \
$(ROOTONBLD)/lib/$(MACH) \
$(ROOTONBLD)/env \
$(ROOTONBLD)/etc \
$(ROOTONBLD)/etc/abi \
$(ROOTONBLD)/gk \
$(ROOTONBLD)/man \
$(ROOTONBLD)/man/man1
all := TARGET= install
install := TARGET= install
clean := TARGET= clean
clobber := TARGET= clobber
lint := TARGET= lint
_msg := TARGET= _msg
.KEEP_STATE:
all install: $(ROOTDIRS) .WAIT $(SUBDIRS) $(CLOSED_SUBDIRS)
clean: $(SUBDIRS) $(CLOSED_SUBDIRS)
clobber: $(SUBDIRS) $(CLOSED_SUBDIRS)
$(RM) -rf $(TOOLS_PROTO)
pkg: install .WAIT $(PKG_SUBDIRS)
lint: $(LINTSUBDIRS)
_msg: $(MSGSUBDIRS)
$(SUBDIRS): FRC
@cd $@; pwd; $(MAKE) $(TARGET)
$(PKG_SUBDIRS): FRC
@cd $@; pwd; $(MAKE) install
$(CLOSED_SUBDIRS): FRC
cd $(CLOSED)/tools/$@; pwd; $(MAKE) $(TARGET)
FRC:
$(ROOTDIRS):
$(INS.dir)