1# 2# CDDL HEADER START 3# 4# The contents of this file are subject to the terms of the 5# Common Development and Distribution License (the "License"). 6# You may not use this file except in compliance with the License. 7# 8# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE 9# or http://www.opensolaris.org/os/licensing. 10# See the License for the specific language governing permissions 11# and limitations under the License. 12# 13# When distributing Covered Code, include this CDDL HEADER in each 14# file and include the License file at usr/src/OPENSOLARIS.LICENSE. 15# If applicable, add the following below this CDDL HEADER, with the 16# fields enclosed by brackets "[]" replaced with your own identifying 17# information: Portions Copyright [yyyy] [name of copyright owner] 18# 19# CDDL HEADER END 20# 21# 22# Copyright 2008 Sun Microsystems, Inc. All rights reserved. 23# Use is subject to license terms. 24# 25 26include ../Makefile.master 27 28# Bootstrap problem -- 29# 'cw' must be built before anything else can be built. 30 31BOOT_SUBDIRS= \ 32 cw 33 34COMMON_SUBDIRS= \ 35 abi \ 36 bfuld \ 37 codereview \ 38 codesign \ 39 cscope-fast \ 40 ctf \ 41 depcheck \ 42 env \ 43 fastfs \ 44 findunref \ 45 hostid \ 46 ndrgen \ 47 onbld \ 48 pmodes \ 49 gk \ 50 install.bin \ 51 lintdump \ 52 protocmp \ 53 protolist \ 54 scripts 55 56# 57# special versions of commands for use only in build 58# 59UNSHIPPED_SUBDIRS = \ 60 elfsign 61 62sparc_SUBDIRS= \ 63 stabs \ 64 tokenize 65 66i386_SUBDIRS= \ 67 aw \ 68 elfextract \ 69 mbh_patch 70 71LINTSUBDIRS= \ 72 codereview \ 73 ctf \ 74 cw \ 75 findunref \ 76 lintdump \ 77 ndrgen \ 78 protocmp \ 79 protolist 80 81SUBDIRS= \ 82 $($(MACH)_SUBDIRS) \ 83 $(COMMON_SUBDIRS) \ 84 $(UNSHIPPED_SUBDIRS) 85 86# 87# Packages built here 88# 89COMMON_PKG_SUBDIRS= \ 90 SUNWonbld 91 92sparc_PKG_SUBDIRS= 93 94i386_PKG_SUBDIRS= \ 95 SUNWmrtools 96 97PKG_SUBDIRS= $($(MACH)_PKG_SUBDIRS) $(COMMON_PKG_SUBDIRS) 98 99include Makefile.tools 100 101ROOTDIRS= \ 102 $(ROOTONBLD) \ 103 $(ROOTONBLD)/bin \ 104 $(ROOTONBLD)/bin/$(MACH) \ 105 $(ROOTONBLD)/lib \ 106 $(ROOTONBLD)/lib/$(MACH) \ 107 $(ROOTONBLD)/lib/python \ 108 $(ROOTONBLD)/lib/python/onbld \ 109 $(ROOTONBLD)/lib/python/onbld/Checks \ 110 $(ROOTONBLD)/lib/python/onbld/hgext \ 111 $(ROOTONBLD)/lib/python/onbld/Scm \ 112 $(ROOTONBLD)/env \ 113 $(ROOTONBLD)/etc \ 114 $(ROOTONBLD)/etc/abi \ 115 $(ROOTONBLD)/gk \ 116 $(ROOTONBLD)/man \ 117 $(ROOTONBLD)/man/man1 118 119all := TARGET= install 120install := TARGET= install 121clean := TARGET= clean 122clobber := TARGET= clobber 123lint := TARGET= lint 124_msg := TARGET= _msg 125 126.KEEP_STATE: 127 128all install: $(SUBDIRS) 129 130clean: $(SUBDIRS) 131 132clobber: $(SUBDIRS) 133 $(RM) -rf $(TOOLS_PROTO) 134 135pkg: install .WAIT $(PKG_SUBDIRS) 136 137lint: $(LINTSUBDIRS) 138 139_msg: $(MSGSUBDIRS) 140 141.PARALLEL: $(SUBDIRS) $(PKG_SUBDIRS) $(CLOSED_SUBDIRS) 142 143$(SUBDIRS) $(CLOSED_SUBDIRS): $(BOOT_SUBDIRS) 144 145$(BOOT_SUBDIRS) $(SUBDIRS): $(ROOTDIRS) FRC 146 @cd $@; pwd; $(MAKE) $(TARGET) 147 148$(PKG_SUBDIRS): FRC 149 @cd $@; pwd; $(MAKE) install 150 151FRC: 152 153$(ROOTDIRS): 154 $(INS.dir) 155