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 # 23 # Copyright (c) 1999, 2010, Oracle and/or its affiliates. All rights reserved. 24 # 25 26 include ../Makefile.master 27 28 # Bootstrap problem -- 29 # 'cw' must be built before anything else can be built. 30 31 BOOT_SUBDIRS= \ 32 cw 33 34 COMMON_SUBDIRS= \ 35 codereview \ 36 cscope-fast \ 37 ctf \ 38 depcheck \ 39 env \ 40 findunref \ 41 ndrgen \ 42 onbld \ 43 pmodes \ 44 gk \ 45 install.bin \ 46 lintdump \ 47 protocmp \ 48 protolist \ 49 scripts 50 51 # 52 # special versions of commands for use only in build 53 # 54 UNSHIPPED_SUBDIRS = \ 55 elfsign 56 57 sparc_SUBDIRS= \ 58 chk4ubin \ 59 stabs \ 60 tokenize 61 62 i386_SUBDIRS= \ 63 aw \ 64 elfextract \ 65 mbh_patch 66 67 LINTSUBDIRS= \ 68 codereview \ 69 ctf \ 70 cw \ 71 findunref \ 72 lintdump \ 73 ndrgen \ 74 protocmp \ 75 protolist 76 77 SUBDIRS= \ 78 $($(MACH)_SUBDIRS) \ 79 $(COMMON_SUBDIRS) \ 80 $(UNSHIPPED_SUBDIRS) 81 82 include Makefile.tools 83 84 ROOTDIRS= \ 85 $(ROOTOPT) \ 86 $(ROOTONBLD) \ 87 $(ROOTONBLD)/bin \ 88 $(ROOTONBLD)/bin/$(MACH) \ 89 $(ROOTONBLD)/lib \ 90 $(ROOTONBLD)/lib/$(MACH) \ 91 $(ROOTONBLD)/lib/perl \ 92 $(ROOTONBLD)/lib/python2.6 \ 93 $(ROOTONBLD)/lib/python2.6/onbld \ 94 $(ROOTONBLD)/lib/python2.6/onbld/Checks \ 95 $(ROOTONBLD)/lib/python2.6/onbld/hgext \ 96 $(ROOTONBLD)/lib/python2.6/onbld/Scm \ 97 $(ROOTONBLD)/env \ 98 $(ROOTONBLD)/etc \ 99 $(ROOTONBLD)/etc/exception_lists \ 100 $(ROOTONBLD)/gk \ 101 $(ROOTONBLD)/man \ 102 $(ROOTONBLD)/man/man1 103 104 all := TARGET= install 105 install := TARGET= install 106 clean := TARGET= clean 107 clobber := TARGET= clobber 108 lint := TARGET= lint 109 _msg := TARGET= _msg 110 111 .KEEP_STATE: 112 113 # 114 # Only create directories in the tools proto area when doing an actual 115 # build, not a clean or clobber. 116 # 117 DOROOTDIRS= $(ROOTDIRS) 118 clobber:= DOROOTDIRS= 119 clean:= DOROOTDIRS= 120 121 all install: $(SUBDIRS) 122 123 clean: $(SUBDIRS) 124 125 clobber: $(SUBDIRS) 126 $(RM) -rf $(TOOLS_PROTO) 127 128 lint: $(LINTSUBDIRS) 129 130 _msg: $(MSGSUBDIRS) 131 132 .PARALLEL: $(SUBDIRS) $(CLOSED_SUBDIRS) 133 134 $(SUBDIRS) $(CLOSED_SUBDIRS): $(BOOT_SUBDIRS) 135 136 $(BOOT_SUBDIRS) $(SUBDIRS): $$(DOROOTDIRS) $(ROOTONBLDLIBPY) FRC 137 @cd $@; pwd; $(MAKE) $(TARGET) 138 139 $(ROOTDIRS): 140 $(INS.dir) 141 142 $(ROOTONBLDLIBPY): $(ROOTDIRS) 143 $(RM) -r $@; $(SYMLINK) python2.6 $@ 144 145 FRC: