17c478bd9Sstevel@tonic-gate# 27c478bd9Sstevel@tonic-gate# CDDL HEADER START 37c478bd9Sstevel@tonic-gate# 47c478bd9Sstevel@tonic-gate# The contents of this file are subject to the terms of the 5fb9f9b97Skupfer# Common Development and Distribution License (the "License"). 6fb9f9b97Skupfer# You may not use this file except in compliance with the License. 77c478bd9Sstevel@tonic-gate# 87c478bd9Sstevel@tonic-gate# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE 97c478bd9Sstevel@tonic-gate# or http://www.opensolaris.org/os/licensing. 107c478bd9Sstevel@tonic-gate# See the License for the specific language governing permissions 117c478bd9Sstevel@tonic-gate# and limitations under the License. 127c478bd9Sstevel@tonic-gate# 137c478bd9Sstevel@tonic-gate# When distributing Covered Code, include this CDDL HEADER in each 147c478bd9Sstevel@tonic-gate# file and include the License file at usr/src/OPENSOLARIS.LICENSE. 157c478bd9Sstevel@tonic-gate# If applicable, add the following below this CDDL HEADER, with the 167c478bd9Sstevel@tonic-gate# fields enclosed by brackets "[]" replaced with your own identifying 177c478bd9Sstevel@tonic-gate# information: Portions Copyright [yyyy] [name of copyright owner] 187c478bd9Sstevel@tonic-gate# 197c478bd9Sstevel@tonic-gate# CDDL HEADER END 207c478bd9Sstevel@tonic-gate# 212e02daeeSRainer Orth 227c478bd9Sstevel@tonic-gate# 2387ab3622SRichard Lowe# Copyright (c) 1999, 2010, Oracle and/or its affiliates. All rights reserved. 2495c635efSGarrett D'Amore# Copyright 2014 Garrett D'Amore <garrett@damore.org> 257c478bd9Sstevel@tonic-gate# 267c478bd9Sstevel@tonic-gate 277c478bd9Sstevel@tonic-gateinclude ../Makefile.master 287c478bd9Sstevel@tonic-gate 297c478bd9Sstevel@tonic-gate# Bootstrap problem -- 307c478bd9Sstevel@tonic-gate# 'cw' must be built before anything else can be built. 317c478bd9Sstevel@tonic-gate 327c478bd9Sstevel@tonic-gateBOOT_SUBDIRS= \ 337c478bd9Sstevel@tonic-gate cw 347c478bd9Sstevel@tonic-gate 357c478bd9Sstevel@tonic-gateCOMMON_SUBDIRS= \ 367c478bd9Sstevel@tonic-gate codereview \ 3723259b79Srotondo codesign \ 387c478bd9Sstevel@tonic-gate cscope-fast \ 397c478bd9Sstevel@tonic-gate ctf \ 407c478bd9Sstevel@tonic-gate depcheck \ 417c478bd9Sstevel@tonic-gate env \ 427c478bd9Sstevel@tonic-gate findunref \ 437c478bd9Sstevel@tonic-gate gk \ 447c478bd9Sstevel@tonic-gate install.bin \ 4534c98957Smeem lintdump \ 4610d63b7dSRichard Lowe make \ 4710d63b7dSRichard Lowe ndrgen \ 4810d63b7dSRichard Lowe onbld \ 4910d63b7dSRichard Lowe pmodes \ 507c478bd9Sstevel@tonic-gate protocmp \ 517c478bd9Sstevel@tonic-gate protolist \ 527c478bd9Sstevel@tonic-gate scripts 537c478bd9Sstevel@tonic-gate 547c478bd9Sstevel@tonic-gate# 557c478bd9Sstevel@tonic-gate# special versions of commands for use only in build 567c478bd9Sstevel@tonic-gate# 57df8bdeb3SjohnzUNSHIPPED_SUBDIRS = \ 5895c635efSGarrett D'Amore elfsign \ 5945ba3153SMarcel Telka mandoc \ 6045ba3153SMarcel Telka zic 617c478bd9Sstevel@tonic-gate 627c478bd9Sstevel@tonic-gatesparc_SUBDIRS= \ 63b31b5de1SJerry Gilliam chk4ubin \ 647c478bd9Sstevel@tonic-gate stabs \ 657c478bd9Sstevel@tonic-gate tokenize 667c478bd9Sstevel@tonic-gate 677c478bd9Sstevel@tonic-gatei386_SUBDIRS= \ 68ae115bc7Smrj aw \ 69*12ae924aSRobert Mustacchi cpcgen \ 70ae115bc7Smrj elfextract \ 71ae115bc7Smrj mbh_patch 727c478bd9Sstevel@tonic-gate 737c478bd9Sstevel@tonic-gateLINTSUBDIRS= \ 747c478bd9Sstevel@tonic-gate codereview \ 757c478bd9Sstevel@tonic-gate ctf \ 767c478bd9Sstevel@tonic-gate cw \ 777c478bd9Sstevel@tonic-gate findunref \ 7834c98957Smeem lintdump \ 79d0e51869Samw ndrgen \ 807c478bd9Sstevel@tonic-gate protocmp \ 817c478bd9Sstevel@tonic-gate protolist 827c478bd9Sstevel@tonic-gate 83df8bdeb3SjohnzSUBDIRS= \ 84df8bdeb3Sjohnz $($(MACH)_SUBDIRS) \ 85df8bdeb3Sjohnz $(COMMON_SUBDIRS) \ 86df8bdeb3Sjohnz $(UNSHIPPED_SUBDIRS) 877c478bd9Sstevel@tonic-gate 887c478bd9Sstevel@tonic-gateinclude Makefile.tools 897c478bd9Sstevel@tonic-gate 907c478bd9Sstevel@tonic-gateROOTDIRS= \ 912e02daeeSRainer Orth $(ROOTOPT) \ 927c478bd9Sstevel@tonic-gate $(ROOTONBLD) \ 937c478bd9Sstevel@tonic-gate $(ROOTONBLD)/bin \ 947c478bd9Sstevel@tonic-gate $(ROOTONBLD)/bin/$(MACH) \ 957c478bd9Sstevel@tonic-gate $(ROOTONBLD)/lib \ 967c478bd9Sstevel@tonic-gate $(ROOTONBLD)/lib/$(MACH) \ 9710d63b7dSRichard Lowe $(ROOTONBLD)/lib/$(MACH)/64 \ 9875ce41a5SAli Bahrami $(ROOTONBLD)/lib/perl \ 9987ab3622SRichard Lowe $(ROOTONBLD)/lib/python2.6 \ 10087ab3622SRichard Lowe $(ROOTONBLD)/lib/python2.6/onbld \ 10187ab3622SRichard Lowe $(ROOTONBLD)/lib/python2.6/onbld/Checks \ 10287ab3622SRichard Lowe $(ROOTONBLD)/lib/python2.6/onbld/hgext \ 10387ab3622SRichard Lowe $(ROOTONBLD)/lib/python2.6/onbld/Scm \ 1047c478bd9Sstevel@tonic-gate $(ROOTONBLD)/env \ 1057c478bd9Sstevel@tonic-gate $(ROOTONBLD)/etc \ 10675ce41a5SAli Bahrami $(ROOTONBLD)/etc/exception_lists \ 10710d63b7dSRichard Lowe $(ROOTONBLD)/share \ 1087c478bd9Sstevel@tonic-gate $(ROOTONBLD)/gk \ 1097c478bd9Sstevel@tonic-gate $(ROOTONBLD)/man \ 110a970c705SYuri Pankov $(ROOTONBLD)/man/man1 1117c478bd9Sstevel@tonic-gate 1127c478bd9Sstevel@tonic-gateall := TARGET= install 1137c478bd9Sstevel@tonic-gateinstall := TARGET= install 1147c478bd9Sstevel@tonic-gateclean := TARGET= clean 1157c478bd9Sstevel@tonic-gateclobber := TARGET= clobber 1167c478bd9Sstevel@tonic-gatelint := TARGET= lint 1177c478bd9Sstevel@tonic-gate_msg := TARGET= _msg 1187c478bd9Sstevel@tonic-gate 1197c478bd9Sstevel@tonic-gate.KEEP_STATE: 1207c478bd9Sstevel@tonic-gate 121ead1f93eSLiane Praza# 122ead1f93eSLiane Praza# Only create directories in the tools proto area when doing an actual 123ead1f93eSLiane Praza# build, not a clean or clobber. 124ead1f93eSLiane Praza# 125ead1f93eSLiane PrazaDOROOTDIRS= $(ROOTDIRS) 126ead1f93eSLiane Prazaclobber:= DOROOTDIRS= 127ead1f93eSLiane Prazaclean:= DOROOTDIRS= 128ead1f93eSLiane Praza 12998157a70Sakolball install: $(SUBDIRS) 1307c478bd9Sstevel@tonic-gate 131df8bdeb3Sjohnzclean: $(SUBDIRS) 1327c478bd9Sstevel@tonic-gate 133df8bdeb3Sjohnzclobber: $(SUBDIRS) 1347c478bd9Sstevel@tonic-gate $(RM) -rf $(TOOLS_PROTO) 1357c478bd9Sstevel@tonic-gate 1367c478bd9Sstevel@tonic-gatelint: $(LINTSUBDIRS) 1377c478bd9Sstevel@tonic-gate 1387c478bd9Sstevel@tonic-gate_msg: $(MSGSUBDIRS) 1397c478bd9Sstevel@tonic-gate 140ead1f93eSLiane Praza.PARALLEL: $(SUBDIRS) $(CLOSED_SUBDIRS) 14198157a70Sakolb 14203113b45Sakolb$(SUBDIRS) $(CLOSED_SUBDIRS): $(BOOT_SUBDIRS) 14303113b45Sakolb 14487ab3622SRichard Lowe$(BOOT_SUBDIRS) $(SUBDIRS): $$(DOROOTDIRS) $(ROOTONBLDLIBPY) FRC 1457c478bd9Sstevel@tonic-gate @cd $@; pwd; $(MAKE) $(TARGET) 1467c478bd9Sstevel@tonic-gate 1477c478bd9Sstevel@tonic-gate$(ROOTDIRS): 1487c478bd9Sstevel@tonic-gate $(INS.dir) 149ead1f93eSLiane Praza 15087ab3622SRichard Lowe$(ROOTONBLDLIBPY): $(ROOTDIRS) 1516066d16eSPiotr Jasiukajtis $(RM) -r $@; $(SYMLINK) python2.6 $@ 15287ab3622SRichard Lowe 15310d63b7dSRichard Lowemake: ctf 15410d63b7dSRichard Lowe 155ead1f93eSLiane PrazaFRC: 156