Print this page
11461 should use a native link-editor during the build
11463 SUNWonld has passed its use-by date
11464 cmd/sgs/tools should contain tools, not common code
11465 sgsmsg should be built with the rest of the build tools
Split |
Close |
Expand all |
Collapse all |
--- old/usr/src/tools/Makefile.tools
+++ new/usr/src/tools/Makefile.tools
1 1 #
2 2 # CDDL HEADER START
3 3 #
4 4 # The contents of this file are subject to the terms of the
5 5 # Common Development and Distribution License (the "License").
6 6 # You may not use this file except in compliance with the License.
7 7 #
8 8 # You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
9 9 # or http://www.opensolaris.org/os/licensing.
10 10 # See the License for the specific language governing permissions
11 11 # and limitations under the License.
12 12 #
13 13 # When distributing Covered Code, include this CDDL HEADER in each
14 14 # file and include the License file at usr/src/OPENSOLARIS.LICENSE.
15 15 # If applicable, add the following below this CDDL HEADER, with the
16 16 # fields enclosed by brackets "[]" replaced with your own identifying
17 17 # information: Portions Copyright [yyyy] [name of copyright owner]
18 18 #
19 19 # CDDL HEADER END
20 20 #
21 21 #
22 22 # Copyright (c) 1999, 2010, Oracle and/or its affiliates. All rights reserved.
23 23 #
24 24 # Definitions common to tool source.
25 25 #
26 26 include $(SRC)/Makefile.master
27 27
28 28 FILEMODE= 0555
29 29
30 30 TOOLS= $(SRC)/tools
31 31 TOOLS_PROTO= $(TOOLS)/proto/root_$(MACH)-nd
32 32 ROOTOPT= $(TOOLS_PROTO)/opt
33 33 ROOTONBLD= $(ROOTOPT)/onbld
34 34 ROOTONBLDBIN= $(ROOTONBLD)/bin
35 35 ROOTONBLDBINMACH= $(ROOTONBLD)/bin/$(MACH)
36 36 ROOTONBLDETC= $(ROOTONBLD)/etc
37 37 ROOTONBLDLIB= $(ROOTONBLD)/lib
38 38 ROOTONBLDLIBMACH= $(ROOTONBLD)/lib/$(MACH)
39 39 ROOTONBLDLIBMACH64= $(ROOTONBLD)/lib/$(MACH)/64
40 40 ROOTONBLDLIBPERL= $(ROOTONBLD)/lib/perl
41 41 ROOTONBLDLIBPY= $(ROOTONBLD)/lib/python
42 42 ROOTONBLDENV= $(ROOTONBLD)/env
43 43 ROOTONBLDMAN= $(ROOTONBLD)/man
44 44 ROOTONBLDMAN1ONBLD= $(ROOTONBLD)/man/man1onbld
45 45 ROOTONBLDETCABI= $(ROOTONBLD)/etc/abi
46 46 ROOTONBLDETCEXCEPT= $(ROOTONBLD)/etc/exception_lists
47 47 ROOTONBLDSHARE= $(ROOTONBLD)/share
↓ open down ↓ |
47 lines elided |
↑ open up ↑ |
48 48
49 49 CC = $(NATIVECC)
50 50 CCC = $(NATIVECCC)
51 51 CFLAGS = $(NATIVE_CFLAGS)
52 52 CPPFLAGS= -D_TS_ERRNO
53 53 ELFSIGN_O= $(TRUE)
54 54 LDLIBS=
55 55 LDFLAGS= $(MAPFILE.NES:%=-M%) $(MAPFILE.NED:%=-M%) \
56 56 $(MAPFILE.PGA:%=-M%)
57 57
58 +# Unset CW_LINKER so we run the default. We don't set LD here to avoid taking
59 +# the journey through LD_ALTEXEC unnecessarily.
60 +CW_LINKER=
61 +
58 62 ROOTONBLDPROG= $(PROG:%=$(ROOTONBLDBIN)/%)
59 63 ROOTONBLDMACHPROG= $(PROG:%=$(ROOTONBLDBINMACH)/%)
60 64 ROOTONBLDSHFILES= $(SHFILES:%=$(ROOTONBLDBIN)/%)
61 65 ROOTONBLDMAKEFILES= $(MAKEFILES:%=$(ROOTONBLDBIN)/%)
62 66 ROOTONBLDMACHSHFILES= $(SHFILES:%=$(ROOTONBLDBINMACH)/%)
63 67 ROOTONBLDMACHBINARIES= $(BINARIES:%=$(ROOTONBLDBINMACH)/%)
64 68 ROOTONBLDETCFILES= $(ETCFILES:%=$(ROOTONBLDETC)/%)
65 69 ROOTONBLDENVFILES= $(ENVFILES:%=$(ROOTONBLDENV)/%)
66 70 ROOTONBLDPERLFILES= $(PERLFILES:%=$(ROOTONBLDBIN)/%)
67 71 ROOTONBLDPERLMODULES= $(PERLMODULES:%=$(ROOTONBLDLIBPERL)/%)
68 72 ROOTONBLDPYFILES= $(PYFILES:%=$(ROOTONBLDBIN)/%)
69 73 ROOTONBLDMAN1ONBLDFILES=$(MAN1ONBLDFILES:%=$(ROOTONBLDMAN1ONBLD)/%)
70 74 ROOTONBLDABIAUDITFILES= $(ABI_AUDITFILES:%=$(ROOTONBLDETCABI)/%)
71 75 ROOTONBLDEXCEPTFILES= $(EXCEPTFILES:%=$(ROOTONBLDETCEXCEPT)/%)
72 76
73 77 # Break a chicken-and-egg dependency cycle for the tools build
74 78 SCCSCHECK=@echo would sccscheck
75 79
76 80 $(ROOTONBLDETCABI)/%: %
77 81 $(INS.file)
78 82
79 83 $(ROOTONBLDETCEXCEPT)/%: $(CODEMGR_WS)/exception_lists/%
80 84 $(INS.file)
81 85
82 86 $(ROOTONBLDBIN)/%: %
83 87 $(INS.file)
84 88
85 89 $(ROOTONBLDBINMACH)/%: %
86 90 $(INS.file)
87 91
88 92 $(ROOTONBLDETC)/%: %
89 93 $(INS.file)
90 94
91 95 $(ROOTONBLDLIBPERL)/%: %
92 96 $(INS.file)
93 97
94 98 $(ROOTONBLDMAN1ONBLD)/%: %
95 99 $(INS.file)
96 100
97 101 $(ROOTONBLDENV)/%: %
98 102 $(INS.file)
↓ open down ↓ |
31 lines elided |
↑ open up ↑ |
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX