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/cmd/sgs/libelf/Makefile.targ.64
+++ new/usr/src/cmd/sgs/libelf/Makefile.targ.64
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) 1997, 2010, Oracle and/or its affiliates. All rights reserved.
23 23 # Copyright 2019 OmniOS Community Edition (OmniOSce) Association.
24 24 #
25 25
26 26 objs/%.o \
27 27 pics/%.o: %.c
28 28 $(COMPILE.c) -o $@ $<
29 29 $(POST_PROCESS_O)
30 30
31 31 objs/%64.o \
32 32 pics/%64.o: ../common/%.c
33 33 $(COMPILE.c) -D_ELF64 -o $@ $<
34 34 $(POST_PROCESS_O)
35 35
36 36 objs/%.o \
37 37 pics/%.o: ../misc/%.c
↓ open down ↓ |
37 lines elided |
↑ open up ↑ |
38 38 $(COMPILE.c) -DELF -o $@ $<
39 39 $(POST_PROCESS_O)
40 40
41 41 objs/%.o \
42 42 pics/%.o: ../common/%.c
43 43 $(COMPILE.c) -o $@ $<
44 44 $(POST_PROCESS_O)
45 45
46 46 all: $(BLTSRCS) .WAIT $(LIBS) $(LIBLINKS)
47 47
48 -install: all .WAIT $(ROOTFS_LIBS64) $(ROOTFS_LINKS64)
49 -
50 48 delete:
51 49 $(RM) $(DYNLIB)
52 50
53 51 $(LIBLINKS):
54 52 $(RM) $(LIBLINKS)
55 53 $(SYMLINK) $(DYNLIB) $(LIBLINKS)
56 54
57 55 CLOBBERFILES += $(LIBLINKS)
58 56
59 57 # include common library targets
60 58 #
61 59 include $(SRC)/lib/Makefile.targ
62 60 include $(SRC)/cmd/sgs/Makefile.targ
63 61
64 62 xlate.c: ../common/xlate.m4
65 63 $(M4) < ../common/xlate.m4 > xlate.c
66 64
67 65 xlate64.c: ../common/xlate64.m4
68 66 $(M4) < ../common/xlate64.m4 > xlate64.c
69 67
70 68 objs/msg.o \
71 69 pics/msg.o: msg.c
72 70
73 71 objs/error.o \
74 72 pics/error.o: msg.h
75 73
76 74 objs/ar.o \
77 75 pics/ar.o: msg.h
78 76
79 77 objs/xlate.o \
80 78 pics/xlate.o: xlate.c
81 79
↓ open down ↓ |
22 lines elided |
↑ open up ↑ |
82 80
83 81 # Derived source and header files (messaging). Make sure that the sgsmsg
84 82 # command is constructed - libelf might not be built with the whole sgs.
85 83
86 84 catalog: $(BLTMESG)
87 85
88 86 chkmsg: $(LIBSRCS)
89 87 sh $(CHKMSG) $(CHKMSGFLAGS) $(LIBSRCS)
90 88
91 89 $(BLTDEFS) + \
92 -$(BLTDATA): $(SGSMSG) $(SGSMSGTARG)
90 +$(BLTDATA): $(SGSMSGTARG)
93 91 $(SGSMSG) $(SGSMSGFLAGS2) $(SGSMSGTARG)
94 92
95 -$(BLTMESG): $(SGSMSG) $(SGSMSGALL) xlate.c xlate64.c
93 +$(BLTMESG): $(SGSMSGALL) xlate.c xlate64.c
96 94 $(SGSMSG) $(SGSMSGFLAGS1) $(SGSMSGALL)
97 -
98 -$(SGSMSG): FRC
99 - @ cd $(SGSTOOLS)/$(MACH); pwd; $(MAKE) catalog
100 - @ pwd
101 95
102 96 #
103 97 # 64-bit overrides
104 98 #
105 99 include ../../Makefile.sub.64
106 100
107 101 FRC:
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX