getconf: don't include xpg4 bits, gcc7 includes xpg6 bits for us
[unleashed.git] / usr / src / tools / Makefile
blobe6775713c6b28fe942153675860491c6bbd743af
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 COMMON_SUBDIRS= \
32 codereview \
33 ctf \
34 makesoftcore \
35 ndrgen \
36 onbld \
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/man1
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 DOROOTONBLDLIBPY= $(ROOTONBLDLIBPY)
90 clobber:= DOROOTONBLDLIBPY=
91 clean:= DOROOTONBLDLIBPY=
93 all install: $(SUBDIRS)
95 clean: $(SUBDIRS)
97 clobber: $(SUBDIRS)
98 $(RM) -rf $(TOOLS_PROTO)
100 _msg: $(MSGSUBDIRS)
102 .PARALLEL: $(SUBDIRS)
104 $(BOOT_SUBDIRS) $(SUBDIRS): $$(DOROOTDIRS) $$(DOROOTONBLDLIBPY) FRC
105 @cd $@; pwd; $(MAKE) $(TARGET)
107 # Assume we don't have the install.bin available yet
108 $(ROOTDIRS):
109 $(MKDIR) -p -m $(DIRMODE) $@
111 $(ROOTONBLDLIBPY): $(ROOTDIRS)
112 $(RM) -r $@; $(SYMLINK) python$(PYTHON_VERSION) $@
114 FRC: