Makefile revision 6ea3c0609e50782557505b88bb391b786bca32c9
a1318a82916028f363b3c5b52e7fd7256b632497Trond Norbye#
a1318a82916028f363b3c5b52e7fd7256b632497Trond Norbye# CDDL HEADER START
a1318a82916028f363b3c5b52e7fd7256b632497Trond Norbye#
a1318a82916028f363b3c5b52e7fd7256b632497Trond Norbye# The contents of this file are subject to the terms of the
a1318a82916028f363b3c5b52e7fd7256b632497Trond Norbye# Common Development and Distribution License (the "License").
a1318a82916028f363b3c5b52e7fd7256b632497Trond Norbye# You may not use this file except in compliance with the License.
a1318a82916028f363b3c5b52e7fd7256b632497Trond Norbye#
a1318a82916028f363b3c5b52e7fd7256b632497Trond Norbye# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
a1318a82916028f363b3c5b52e7fd7256b632497Trond Norbye# or http://www.opensolaris.org/os/licensing.
a1318a82916028f363b3c5b52e7fd7256b632497Trond Norbye# See the License for the specific language governing permissions
a1318a82916028f363b3c5b52e7fd7256b632497Trond Norbye# and limitations under the License.
a1318a82916028f363b3c5b52e7fd7256b632497Trond Norbye#
a1318a82916028f363b3c5b52e7fd7256b632497Trond Norbye# When distributing Covered Code, include this CDDL HEADER in each
a1318a82916028f363b3c5b52e7fd7256b632497Trond Norbye# file and include the License file at usr/src/OPENSOLARIS.LICENSE.
a1318a82916028f363b3c5b52e7fd7256b632497Trond Norbye# If applicable, add the following below this CDDL HEADER, with the
a1318a82916028f363b3c5b52e7fd7256b632497Trond Norbye# fields enclosed by brackets "[]" replaced with your own identifying
a1318a82916028f363b3c5b52e7fd7256b632497Trond Norbye# information: Portions Copyright [yyyy] [name of copyright owner]
a1318a82916028f363b3c5b52e7fd7256b632497Trond Norbye#
a1318a82916028f363b3c5b52e7fd7256b632497Trond Norbye# CDDL HEADER END
c0550b01024b910b8c1468811c0ea663b10b1372Trond Norbye#
a1318a82916028f363b3c5b52e7fd7256b632497Trond Norbye
a1318a82916028f363b3c5b52e7fd7256b632497Trond Norbye#
a1318a82916028f363b3c5b52e7fd7256b632497Trond Norbye# Copyright (c) 1999, 2010, Oracle and/or its affiliates. All rights reserved.
a1318a82916028f363b3c5b52e7fd7256b632497Trond Norbye#
a1318a82916028f363b3c5b52e7fd7256b632497Trond Norbye
2ee41fb5c7467f453a1282e3afdfacdd4aa4e6b8Trond Norbyeinclude ../Makefile.master
2ee41fb5c7467f453a1282e3afdfacdd4aa4e6b8Trond Norbye
a1318a82916028f363b3c5b52e7fd7256b632497Trond Norbye# Bootstrap problem --
a1318a82916028f363b3c5b52e7fd7256b632497Trond Norbye# 'cw' must be built before anything else can be built.
a1318a82916028f363b3c5b52e7fd7256b632497Trond Norbye
a1318a82916028f363b3c5b52e7fd7256b632497Trond NorbyeBOOT_SUBDIRS= \
a1318a82916028f363b3c5b52e7fd7256b632497Trond Norbye cw
a1318a82916028f363b3c5b52e7fd7256b632497Trond Norbye
a1318a82916028f363b3c5b52e7fd7256b632497Trond NorbyeCOMMON_SUBDIRS= \
a1318a82916028f363b3c5b52e7fd7256b632497Trond Norbye codereview \
a1318a82916028f363b3c5b52e7fd7256b632497Trond Norbye codesign \
a1318a82916028f363b3c5b52e7fd7256b632497Trond Norbye cscope-fast \
a1318a82916028f363b3c5b52e7fd7256b632497Trond Norbye ctf \
2ee41fb5c7467f453a1282e3afdfacdd4aa4e6b8Trond Norbye depcheck \
2ee41fb5c7467f453a1282e3afdfacdd4aa4e6b8Trond Norbye env \
a1318a82916028f363b3c5b52e7fd7256b632497Trond Norbye findunref \
a1318a82916028f363b3c5b52e7fd7256b632497Trond Norbye ndrgen \
a1318a82916028f363b3c5b52e7fd7256b632497Trond Norbye onbld \
a1318a82916028f363b3c5b52e7fd7256b632497Trond Norbye pmodes \
a1318a82916028f363b3c5b52e7fd7256b632497Trond Norbye gk \
a1318a82916028f363b3c5b52e7fd7256b632497Trond Norbye install.bin \
a1318a82916028f363b3c5b52e7fd7256b632497Trond Norbye lintdump \
a1318a82916028f363b3c5b52e7fd7256b632497Trond Norbye protocmp \
a1318a82916028f363b3c5b52e7fd7256b632497Trond Norbye protolist \
a1318a82916028f363b3c5b52e7fd7256b632497Trond Norbye scripts
a1318a82916028f363b3c5b52e7fd7256b632497Trond Norbye
a1318a82916028f363b3c5b52e7fd7256b632497Trond Norbye#
a1318a82916028f363b3c5b52e7fd7256b632497Trond Norbye# special versions of commands for use only in build
4bb936310d8f131aa850821e9254ac14242c7f95Knut Anders Hatlen#
4bb936310d8f131aa850821e9254ac14242c7f95Knut Anders HatlenUNSHIPPED_SUBDIRS = \
a1318a82916028f363b3c5b52e7fd7256b632497Trond Norbye elfsign
a1318a82916028f363b3c5b52e7fd7256b632497Trond Norbye
a1318a82916028f363b3c5b52e7fd7256b632497Trond Norbyesparc_SUBDIRS= \
a1318a82916028f363b3c5b52e7fd7256b632497Trond Norbye chk4ubin \
a1318a82916028f363b3c5b52e7fd7256b632497Trond Norbye stabs \
a1318a82916028f363b3c5b52e7fd7256b632497Trond Norbye tokenize
a1318a82916028f363b3c5b52e7fd7256b632497Trond Norbye
a1318a82916028f363b3c5b52e7fd7256b632497Trond Norbyei386_SUBDIRS= \
a1318a82916028f363b3c5b52e7fd7256b632497Trond Norbye aw \
a1318a82916028f363b3c5b52e7fd7256b632497Trond Norbye elfextract \
a1318a82916028f363b3c5b52e7fd7256b632497Trond Norbye mbh_patch
a1318a82916028f363b3c5b52e7fd7256b632497Trond Norbye
a1318a82916028f363b3c5b52e7fd7256b632497Trond NorbyeLINTSUBDIRS= \
a1318a82916028f363b3c5b52e7fd7256b632497Trond Norbye codereview \
a1318a82916028f363b3c5b52e7fd7256b632497Trond Norbye ctf \
a1318a82916028f363b3c5b52e7fd7256b632497Trond Norbye cw \
a1318a82916028f363b3c5b52e7fd7256b632497Trond Norbye findunref \
a1318a82916028f363b3c5b52e7fd7256b632497Trond Norbye lintdump \
a1318a82916028f363b3c5b52e7fd7256b632497Trond Norbye ndrgen \
a1318a82916028f363b3c5b52e7fd7256b632497Trond Norbye protocmp \
a1318a82916028f363b3c5b52e7fd7256b632497Trond Norbye protolist
a1318a82916028f363b3c5b52e7fd7256b632497Trond Norbye
a1318a82916028f363b3c5b52e7fd7256b632497Trond NorbyeSUBDIRS= \
a1318a82916028f363b3c5b52e7fd7256b632497Trond Norbye $($(MACH)_SUBDIRS) \
a1318a82916028f363b3c5b52e7fd7256b632497Trond Norbye $(COMMON_SUBDIRS) \
a1318a82916028f363b3c5b52e7fd7256b632497Trond Norbye $(UNSHIPPED_SUBDIRS)
a1318a82916028f363b3c5b52e7fd7256b632497Trond Norbye
a1318a82916028f363b3c5b52e7fd7256b632497Trond Norbyeinclude Makefile.tools
a1318a82916028f363b3c5b52e7fd7256b632497Trond Norbye
a1318a82916028f363b3c5b52e7fd7256b632497Trond NorbyeROOTDIRS= \
a1318a82916028f363b3c5b52e7fd7256b632497Trond Norbye $(ROOTOPT) \
a1318a82916028f363b3c5b52e7fd7256b632497Trond Norbye $(ROOTONBLD) \
a1318a82916028f363b3c5b52e7fd7256b632497Trond Norbye $(ROOTONBLD)/bin \
a1318a82916028f363b3c5b52e7fd7256b632497Trond Norbye $(ROOTONBLD)/bin/$(MACH) \
$(ROOTONBLD)/lib \
$(ROOTONBLD)/lib/$(MACH) \
$(ROOTONBLD)/lib/perl \
$(ROOTONBLD)/lib/python2.4 \
$(ROOTONBLD)/lib/python2.4/onbld \
$(ROOTONBLD)/lib/python2.4/onbld/Checks \
$(ROOTONBLD)/lib/python2.4/onbld/hgext \
$(ROOTONBLD)/lib/python2.4/onbld/Scm \
$(ROOTONBLD)/lib/python2.6 \
$(ROOTONBLD)/lib/python2.6/onbld \
$(ROOTONBLD)/lib/python2.6/onbld/Checks \
$(ROOTONBLD)/lib/python2.6/onbld/hgext \
$(ROOTONBLD)/lib/python2.6/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) $(ROOTONBLDLIBPY) FRC
@cd $@; pwd; $(MAKE) $(TARGET)
$(ROOTDIRS):
$(INS.dir)
$(ROOTONBLDLIBPY): $(ROOTDIRS)
$(RM) -r $@; $(SYMLINK) python2.4 $@
FRC: