8999 SMBIOS: cleanup 32-bit specific code
[unleashed.git] / usr / src / tools / Makefile
blobf2d7fcafb9ca0bdffeb493e18ae836fa5dc7c314
2 # CDDL HEADER START
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.
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.
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]
19 # CDDL HEADER END
23 # Copyright (c) 1999, 2010, Oracle and/or its affiliates. All rights reserved.
24 # Copyright 2014 Garrett D'Amore <garrett@damore.org>
25 # Copyright 2016 Toomas Soome <tsoome@me.com>
26 # Copyright (c) 2016, Chris Fraire <cfraire@me.com>.
29 include ../Makefile.master
31 # Bootstrap problem --
32 # 'cw' must be built before anything else can be built.
34 BOOT_SUBDIRS= \
37 COMMON_SUBDIRS= \
38 codereview \
39 codesign \
40 cscope-fast \
41 ctf \
42 env \
43 findunref \
44 install.bin \
45 lintdump \
46 make \
47 ndrgen \
48 onbld \
49 protocmp \
50 protolist \
51 scripts
54 # special versions of commands for use only in build
56 UNSHIPPED_SUBDIRS = \
57 localedef \
58 mandoc \
59 tic \
60 vtfontcvt \
61 zic
63 sparc_SUBDIRS= \
64 chk4ubin \
65 stabs \
66 tokenize
68 i386_SUBDIRS= \
69 aw \
70 elfextract \
71 mbh_patch \
72 btxld
74 LINTSUBDIRS= \
75 codereview \
76 ctf \
77 cw \
78 findunref \
79 lintdump \
80 ndrgen \
81 protocmp \
82 protolist
84 SUBDIRS= \
85 $($(MACH)_SUBDIRS) \
86 $(COMMON_SUBDIRS) \
87 $(UNSHIPPED_SUBDIRS)
89 include Makefile.tools
91 ROOTDIRS= \
92 $(ROOTOPT) \
93 $(ROOTONBLD) \
94 $(ROOTONBLD)/bin \
95 $(ROOTONBLD)/bin/$(MACH) \
96 $(ROOTONBLD)/lib \
97 $(ROOTONBLD)/lib/$(MACH) \
98 $(ROOTONBLD)/lib/$(MACH)/64 \
99 $(ROOTONBLD)/lib/perl \
100 $(ROOTONBLD)/lib/python$(PYTHON_VERSION) \
101 $(ROOTONBLD)/lib/python$(PYTHON_VERSION)/onbld \
102 $(ROOTONBLD)/lib/python$(PYTHON_VERSION)/onbld/Checks \
103 $(ROOTONBLD)/lib/python$(PYTHON_VERSION)/onbld/Scm \
104 $(ROOTONBLD)/env \
105 $(ROOTONBLD)/etc \
106 $(ROOTONBLD)/etc/exception_lists \
107 $(ROOTONBLD)/share \
108 $(ROOTONBLD)/man \
109 $(ROOTONBLD)/man/man1onbld
111 all := TARGET= install
112 install := TARGET= install
113 clean := TARGET= clean
114 clobber := TARGET= clobber
115 lint := TARGET= lint
116 _msg := TARGET= _msg
118 .KEEP_STATE:
121 # Only create directories in the tools proto area when doing an actual
122 # build, not a clean or clobber.
124 DOROOTDIRS= $(ROOTDIRS)
125 clobber:= DOROOTDIRS=
126 clean:= DOROOTDIRS=
128 DOROOTONBLDLIBPY= $(ROOTONBLDLIBPY)
129 clobber:= DOROOTONBLDLIBPY=
130 clean:= DOROOTONBLDLIBPY=
132 all install: $(SUBDIRS)
134 clean: $(SUBDIRS)
136 clobber: $(SUBDIRS)
137 $(RM) -rf $(TOOLS_PROTO)
139 lint: $(LINTSUBDIRS)
141 _msg: $(MSGSUBDIRS)
143 .PARALLEL: $(SUBDIRS) $(CLOSED_SUBDIRS)
145 $(SUBDIRS) $(CLOSED_SUBDIRS): $(BOOT_SUBDIRS)
147 $(BOOT_SUBDIRS) $(SUBDIRS): $$(DOROOTDIRS) $$(DOROOTONBLDLIBPY) FRC
148 @cd $@; pwd; $(MAKE) $(TARGET)
150 $(ROOTDIRS):
151 $(INS.dir)
153 $(ROOTONBLDLIBPY): $(ROOTDIRS)
154 $(RM) -r $@; $(SYMLINK) python$(PYTHON_VERSION) $@
156 make: ctf
158 FRC: