kill _FILE_OFFSET_BITS
[unleashed.git] / usr / src / tools / Makefile
blobf6f32cac130a530363b3ad5e26ed5eccfd807491
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 i386_SUBDIRS= \
42 elfextract \
43 btxld
45 SUBDIRS= \
46 $($(MACH)_SUBDIRS) \
47 $(COMMON_SUBDIRS)
49 include Makefile.tools
51 ROOTDIRS= \
52 $(ROOTOPT) \
53 $(ROOTONBLD) \
54 $(ROOTONBLD)/bin \
55 $(ROOTONBLD)/bin/$(MACH) \
56 $(ROOTONBLD)/lib \
57 $(ROOTONBLD)/lib/$(MACH) \
58 $(ROOTONBLD)/lib/perl \
59 $(ROOTONBLD)/lib/python$(PYTHON_VERSION) \
60 $(ROOTONBLD)/lib/python$(PYTHON_VERSION)/onbld \
61 $(ROOTONBLD)/lib/python$(PYTHON_VERSION)/onbld/Checks \
62 $(ROOTONBLD)/lib/python$(PYTHON_VERSION)/onbld/Scm \
63 $(ROOTONBLD)/etc \
64 $(ROOTONBLD)/etc/exception_lists \
65 $(ROOTONBLD)/man \
66 $(ROOTONBLD)/man/man1
68 all := TARGET= install
69 install := TARGET= install
70 clean := TARGET= clean
71 clobber := TARGET= clobber
72 _msg := TARGET= _msg
74 .KEEP_STATE:
77 # Only create directories in the tools proto area when doing an actual
78 # build, not a clean or clobber.
80 DOROOTDIRS= $(ROOTDIRS)
81 clobber:= DOROOTDIRS=
82 clean:= DOROOTDIRS=
84 DOROOTONBLDLIBPY= $(ROOTONBLDLIBPY)
85 clobber:= DOROOTONBLDLIBPY=
86 clean:= DOROOTONBLDLIBPY=
88 all install: $(SUBDIRS)
90 clean: $(SUBDIRS)
92 clobber: $(SUBDIRS)
93 $(RM) -rf $(TOOLS_PROTO)
95 _msg: $(MSGSUBDIRS)
97 .PARALLEL: $(SUBDIRS)
99 $(BOOT_SUBDIRS) $(SUBDIRS): $$(DOROOTDIRS) $$(DOROOTONBLDLIBPY) FRC
100 @cd $@; pwd; $(MAKE) $(TARGET)
102 # Assume we don't have the install.bin available yet
103 $(ROOTDIRS):
104 $(MKDIR) -p -m $(DIRMODE) $@
106 $(ROOTONBLDLIBPY): $(ROOTDIRS)
107 $(RM) -r $@; $(SYMLINK) python$(PYTHON_VERSION) $@
109 FRC: