10Sstevel@tonic-gate# 20Sstevel@tonic-gate# CDDL HEADER START 30Sstevel@tonic-gate# 40Sstevel@tonic-gate# The contents of this file are subject to the terms of the 51167Skupfer# Common Development and Distribution License (the "License"). 61167Skupfer# You may not use this file except in compliance with the License. 70Sstevel@tonic-gate# 80Sstevel@tonic-gate# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE 90Sstevel@tonic-gate# or http://www.opensolaris.org/os/licensing. 100Sstevel@tonic-gate# See the License for the specific language governing permissions 110Sstevel@tonic-gate# and limitations under the License. 120Sstevel@tonic-gate# 130Sstevel@tonic-gate# When distributing Covered Code, include this CDDL HEADER in each 140Sstevel@tonic-gate# file and include the License file at usr/src/OPENSOLARIS.LICENSE. 150Sstevel@tonic-gate# If applicable, add the following below this CDDL HEADER, with the 160Sstevel@tonic-gate# fields enclosed by brackets "[]" replaced with your own identifying 170Sstevel@tonic-gate# information: Portions Copyright [yyyy] [name of copyright owner] 180Sstevel@tonic-gate# 190Sstevel@tonic-gate# CDDL HEADER END 200Sstevel@tonic-gate# 218785Sro@techfak.uni-bielefeld.de 220Sstevel@tonic-gate# 2312216Srichlowe@richlowe.net# Copyright (c) 1999, 2010, Oracle and/or its affiliates. All rights reserved. 240Sstevel@tonic-gate# 250Sstevel@tonic-gate 260Sstevel@tonic-gateinclude ../Makefile.master 270Sstevel@tonic-gate 280Sstevel@tonic-gate# Bootstrap problem -- 290Sstevel@tonic-gate# 'cw' must be built before anything else can be built. 300Sstevel@tonic-gate 310Sstevel@tonic-gateBOOT_SUBDIRS= \ 320Sstevel@tonic-gate cw 330Sstevel@tonic-gate 340Sstevel@tonic-gateCOMMON_SUBDIRS= \ 350Sstevel@tonic-gate codereview \ 363824Srotondo codesign \ 370Sstevel@tonic-gate cscope-fast \ 380Sstevel@tonic-gate ctf \ 390Sstevel@tonic-gate depcheck \ 400Sstevel@tonic-gate env \ 410Sstevel@tonic-gate findunref \ 425311Samw ndrgen \ 437078Smjnelson onbld \ 440Sstevel@tonic-gate pmodes \ 450Sstevel@tonic-gate gk \ 460Sstevel@tonic-gate install.bin \ 472217Smeem lintdump \ 480Sstevel@tonic-gate protocmp \ 490Sstevel@tonic-gate protolist \ 500Sstevel@tonic-gate scripts 510Sstevel@tonic-gate 520Sstevel@tonic-gate# 530Sstevel@tonic-gate# special versions of commands for use only in build 540Sstevel@tonic-gate# 555194SjohnzUNSHIPPED_SUBDIRS = \ 56*12929SMisaki.Miyashita@Oracle.COM elfsign \ 57*12929SMisaki.Miyashita@Oracle.COM fips_addchecksum 580Sstevel@tonic-gate 590Sstevel@tonic-gatesparc_SUBDIRS= \ 609507SJerry.Gilliam@Sun.COM chk4ubin \ 610Sstevel@tonic-gate stabs \ 620Sstevel@tonic-gate tokenize 630Sstevel@tonic-gate 643446Smrji386_SUBDIRS= \ 653446Smrj aw \ 663446Smrj elfextract \ 673446Smrj mbh_patch 680Sstevel@tonic-gate 690Sstevel@tonic-gateLINTSUBDIRS= \ 700Sstevel@tonic-gate codereview \ 710Sstevel@tonic-gate ctf \ 720Sstevel@tonic-gate cw \ 730Sstevel@tonic-gate findunref \ 742217Smeem lintdump \ 755311Samw ndrgen \ 760Sstevel@tonic-gate protocmp \ 770Sstevel@tonic-gate protolist 780Sstevel@tonic-gate 795194SjohnzSUBDIRS= \ 805194Sjohnz $($(MACH)_SUBDIRS) \ 815194Sjohnz $(COMMON_SUBDIRS) \ 825194Sjohnz $(UNSHIPPED_SUBDIRS) 830Sstevel@tonic-gate 840Sstevel@tonic-gateinclude Makefile.tools 850Sstevel@tonic-gate 860Sstevel@tonic-gateROOTDIRS= \ 878785Sro@techfak.uni-bielefeld.de $(ROOTOPT) \ 880Sstevel@tonic-gate $(ROOTONBLD) \ 890Sstevel@tonic-gate $(ROOTONBLD)/bin \ 900Sstevel@tonic-gate $(ROOTONBLD)/bin/$(MACH) \ 910Sstevel@tonic-gate $(ROOTONBLD)/lib \ 920Sstevel@tonic-gate $(ROOTONBLD)/lib/$(MACH) \ 9310355SAli.Bahrami@Sun.COM $(ROOTONBLD)/lib/perl \ 9412216Srichlowe@richlowe.net $(ROOTONBLD)/lib/python2.4 \ 9512216Srichlowe@richlowe.net $(ROOTONBLD)/lib/python2.4/onbld \ 9612216Srichlowe@richlowe.net $(ROOTONBLD)/lib/python2.4/onbld/Checks \ 9712216Srichlowe@richlowe.net $(ROOTONBLD)/lib/python2.4/onbld/hgext \ 9812216Srichlowe@richlowe.net $(ROOTONBLD)/lib/python2.4/onbld/Scm \ 9912216Srichlowe@richlowe.net $(ROOTONBLD)/lib/python2.6 \ 10012216Srichlowe@richlowe.net $(ROOTONBLD)/lib/python2.6/onbld \ 10112216Srichlowe@richlowe.net $(ROOTONBLD)/lib/python2.6/onbld/Checks \ 10212216Srichlowe@richlowe.net $(ROOTONBLD)/lib/python2.6/onbld/hgext \ 10312216Srichlowe@richlowe.net $(ROOTONBLD)/lib/python2.6/onbld/Scm \ 1040Sstevel@tonic-gate $(ROOTONBLD)/env \ 1050Sstevel@tonic-gate $(ROOTONBLD)/etc \ 10610355SAli.Bahrami@Sun.COM $(ROOTONBLD)/etc/exception_lists \ 1070Sstevel@tonic-gate $(ROOTONBLD)/gk \ 1080Sstevel@tonic-gate $(ROOTONBLD)/man \ 10911207SPeter.Dennis@Sun.COM $(ROOTONBLD)/man/man1 \ 11011207SPeter.Dennis@Sun.COM $(ROOTONBLD)/man/sman1 1110Sstevel@tonic-gate 1120Sstevel@tonic-gateall := TARGET= install 1130Sstevel@tonic-gateinstall := TARGET= install 1140Sstevel@tonic-gateclean := TARGET= clean 1150Sstevel@tonic-gateclobber := TARGET= clobber 1160Sstevel@tonic-gatelint := TARGET= lint 1170Sstevel@tonic-gate_msg := TARGET= _msg 1180Sstevel@tonic-gate 1190Sstevel@tonic-gate.KEEP_STATE: 1200Sstevel@tonic-gate 12111838SLiane.Praza@Sun.COM# 12211838SLiane.Praza@Sun.COM# Only create directories in the tools proto area when doing an actual 12311838SLiane.Praza@Sun.COM# build, not a clean or clobber. 12411838SLiane.Praza@Sun.COM# 12511838SLiane.Praza@Sun.COMDOROOTDIRS= $(ROOTDIRS) 12611838SLiane.Praza@Sun.COMclobber:= DOROOTDIRS= 12711838SLiane.Praza@Sun.COMclean:= DOROOTDIRS= 12811838SLiane.Praza@Sun.COM 1296094Sakolball install: $(SUBDIRS) 1300Sstevel@tonic-gate 1315194Sjohnzclean: $(SUBDIRS) 1320Sstevel@tonic-gate 1335194Sjohnzclobber: $(SUBDIRS) 1340Sstevel@tonic-gate $(RM) -rf $(TOOLS_PROTO) 1350Sstevel@tonic-gate 1360Sstevel@tonic-gatelint: $(LINTSUBDIRS) 1370Sstevel@tonic-gate 1380Sstevel@tonic-gate_msg: $(MSGSUBDIRS) 1390Sstevel@tonic-gate 14011838SLiane.Praza@Sun.COM.PARALLEL: $(SUBDIRS) $(CLOSED_SUBDIRS) 1416094Sakolb 1426107Sakolb$(SUBDIRS) $(CLOSED_SUBDIRS): $(BOOT_SUBDIRS) 1436107Sakolb 14412216Srichlowe@richlowe.net$(BOOT_SUBDIRS) $(SUBDIRS): $$(DOROOTDIRS) $(ROOTONBLDLIBPY) FRC 1450Sstevel@tonic-gate @cd $@; pwd; $(MAKE) $(TARGET) 1460Sstevel@tonic-gate 1470Sstevel@tonic-gate$(ROOTDIRS): 1480Sstevel@tonic-gate $(INS.dir) 14911838SLiane.Praza@Sun.COM 15012216Srichlowe@richlowe.net$(ROOTONBLDLIBPY): $(ROOTDIRS) 15112216Srichlowe@richlowe.net $(RM) -r $@; $(SYMLINK) python2.4 $@ 15212216Srichlowe@richlowe.net 15311838SLiane.Praza@Sun.COMFRC: 154