dmake: do not set MAKEFLAGS=k
[unleashed/tickless.git] / usr / src / tools / Makefile
blobb02178ee1aa8b6b0f72e2dd9dc7c127ebffdce1b
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>
28 include ../Makefile.master
30 COMMON_SUBDIRS= \
31 codereview \
32 ctf \
33 depcheck \
34 ndrgen \
35 onbld \
36 pmodes \
37 protocmp \
38 protolist \
39 scripts
41 sparc_SUBDIRS= \
42 chk4ubin \
43 stabs \
44 tokenize
46 i386_SUBDIRS= \
47 elfextract \
48 btxld
50 SUBDIRS= \
51 $($(MACH)_SUBDIRS) \
52 $(COMMON_SUBDIRS)
54 include Makefile.tools
56 ROOTDIRS= \
57 $(ROOTOPT) \
58 $(ROOTONBLD) \
59 $(ROOTONBLD)/bin \
60 $(ROOTONBLD)/bin/$(MACH) \
61 $(ROOTONBLD)/lib \
62 $(ROOTONBLD)/lib/$(MACH) \
63 $(ROOTONBLD)/lib/perl \
64 $(ROOTONBLD)/lib/python$(PYTHON_VERSION) \
65 $(ROOTONBLD)/lib/python$(PYTHON_VERSION)/onbld \
66 $(ROOTONBLD)/lib/python$(PYTHON_VERSION)/onbld/Checks \
67 $(ROOTONBLD)/lib/python$(PYTHON_VERSION)/onbld/Scm \
68 $(ROOTONBLD)/etc \
69 $(ROOTONBLD)/etc/exception_lists \
70 $(ROOTONBLD)/man \
71 $(ROOTONBLD)/man/man1onbld
73 all := TARGET= install
74 install := TARGET= install
75 clean := TARGET= clean
76 clobber := TARGET= clobber
77 _msg := TARGET= _msg
79 .KEEP_STATE:
82 # Only create directories in the tools proto area when doing an actual
83 # build, not a clean or clobber.
85 DOROOTDIRS= $(ROOTDIRS)
86 clobber:= DOROOTDIRS=
87 clean:= DOROOTDIRS=
89 all install: $(SUBDIRS)
91 clean: $(SUBDIRS)
93 clobber: $(SUBDIRS)
94 $(RM) -rf $(TOOLS_PROTO)
96 _msg: $(MSGSUBDIRS)
98 .PARALLEL: $(SUBDIRS)
100 $(SUBDIRS): $$(DOROOTDIRS) $(ROOTONBLDLIBPY) FRC
101 @cd $@; pwd; $(MAKE) $(TARGET)
103 $(ROOTDIRS):
104 $(INS.dir)
106 $(ROOTONBLDLIBPY): $(ROOTDIRS)
107 $(RM) -r $@; $(SYMLINK) python$(PYTHON_VERSION) $@
109 FRC: