Makefile revision fb9f9b975cb9214fec5dab37d461199adab9b964
ce76952df3c1a8d5da2e98849a1464f500c0aa38Mark Andrews#
dafcb997e390efa4423883dafd100c975c4095d6Mark Andrews# CDDL HEADER START
dafcb997e390efa4423883dafd100c975c4095d6Mark Andrews#
dafcb997e390efa4423883dafd100c975c4095d6Mark Andrews# The contents of this file are subject to the terms of the
dafcb997e390efa4423883dafd100c975c4095d6Mark Andrews# Common Development and Distribution License (the "License").
ec5347e2c775f027573ce5648b910361aa926c01Automatic Updater# You may not use this file except in compliance with the License.
dafcb997e390efa4423883dafd100c975c4095d6Mark Andrews#
dafcb997e390efa4423883dafd100c975c4095d6Mark Andrews# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
dafcb997e390efa4423883dafd100c975c4095d6Mark Andrews# or http://www.opensolaris.org/os/licensing.
dafcb997e390efa4423883dafd100c975c4095d6Mark Andrews# See the License for the specific language governing permissions
dafcb997e390efa4423883dafd100c975c4095d6Mark Andrews# and limitations under the License.
dafcb997e390efa4423883dafd100c975c4095d6Mark Andrews#
dafcb997e390efa4423883dafd100c975c4095d6Mark Andrews# When distributing Covered Code, include this CDDL HEADER in each
dafcb997e390efa4423883dafd100c975c4095d6Mark Andrews# file and include the License file at usr/src/OPENSOLARIS.LICENSE.
dafcb997e390efa4423883dafd100c975c4095d6Mark Andrews# If applicable, add the following below this CDDL HEADER, with the
dafcb997e390efa4423883dafd100c975c4095d6Mark Andrews# fields enclosed by brackets "[]" replaced with your own identifying
dafcb997e390efa4423883dafd100c975c4095d6Mark Andrews# information: Portions Copyright [yyyy] [name of copyright owner]
ec5347e2c775f027573ce5648b910361aa926c01Automatic Updater#
dafcb997e390efa4423883dafd100c975c4095d6Mark Andrews# CDDL HEADER END
ce76952df3c1a8d5da2e98849a1464f500c0aa38Mark Andrews#
ce76952df3c1a8d5da2e98849a1464f500c0aa38Mark Andrews#
ce76952df3c1a8d5da2e98849a1464f500c0aa38Mark Andrews# Copyright 2005 Sun Microsystems, Inc. All rights reserved.
ce76952df3c1a8d5da2e98849a1464f500c0aa38Mark Andrews# Use is subject to license terms.
ce76952df3c1a8d5da2e98849a1464f500c0aa38Mark Andrews#
ce76952df3c1a8d5da2e98849a1464f500c0aa38Mark Andrews#ident "%Z%%M% %I% %E% SMI"
ce76952df3c1a8d5da2e98849a1464f500c0aa38Mark Andrews
ce76952df3c1a8d5da2e98849a1464f500c0aa38Mark Andrewsinclude ../Makefile.master
ce76952df3c1a8d5da2e98849a1464f500c0aa38Mark Andrews
ce76952df3c1a8d5da2e98849a1464f500c0aa38Mark Andrews# Bootstrap problem --
ce76952df3c1a8d5da2e98849a1464f500c0aa38Mark Andrews# 'cw' must be built before anything else can be built.
ce76952df3c1a8d5da2e98849a1464f500c0aa38Mark Andrews
ce76952df3c1a8d5da2e98849a1464f500c0aa38Mark AndrewsBOOT_SUBDIRS= \
ce76952df3c1a8d5da2e98849a1464f500c0aa38Mark Andrews cw
ce76952df3c1a8d5da2e98849a1464f500c0aa38Mark Andrews
ce76952df3c1a8d5da2e98849a1464f500c0aa38Mark AndrewsCOMMON_SUBDIRS= \
ce76952df3c1a8d5da2e98849a1464f500c0aa38Mark Andrews abi \
ce76952df3c1a8d5da2e98849a1464f500c0aa38Mark Andrews bfuld \
ce76952df3c1a8d5da2e98849a1464f500c0aa38Mark Andrews codereview \
ce76952df3c1a8d5da2e98849a1464f500c0aa38Mark Andrews cscope-fast \
ce76952df3c1a8d5da2e98849a1464f500c0aa38Mark Andrews ctf \
ce76952df3c1a8d5da2e98849a1464f500c0aa38Mark Andrews depcheck \
ce76952df3c1a8d5da2e98849a1464f500c0aa38Mark Andrews env \
ce76952df3c1a8d5da2e98849a1464f500c0aa38Mark Andrews fastfs \
ce76952df3c1a8d5da2e98849a1464f500c0aa38Mark Andrews findunref \
ce76952df3c1a8d5da2e98849a1464f500c0aa38Mark Andrews pmodes \
gk \
install.bin \
protocmp \
protolist \
scripts
#
# special versions of commands for use only in build
#
CLOSED_UNSHIPPED_SUBDIRS = \
elfsign
sparc_SUBDIRS= \
stabs \
tokenize
i386_SUBDIRS= \
aw
LINTSUBDIRS= \
codereview \
ctf \
cw \
findunref \
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)