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/libconv/Makefile.com
+++ new/usr/src/cmd/sgs/libconv/Makefile.com
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 #
23 23 # Copyright (c) 1994, 2010, Oracle and/or its affiliates. All rights reserved.
24 24 # Copyright 2018 Joyent, Inc.
25 25 # Copyright 2019 OmniOS Community Edition (OmniOSce) Association.
26 26 #
27 27
28 28 LIBRARY = libconv.a
29 29
30 30 COMOBJS32 = cap_machelf32.o dynamic_machelf32.o \
31 31 globals_machelf32.o sections_machelf32.o \
32 32 symbols_machelf32.o symbols_sparc_machelf32.o
33 33
34 34 COMOBJS64 = cap_machelf64.o dynamic_machelf64.o \
35 35 globals_machelf64.o sections_machelf64.o \
36 36 symbols_machelf64.o symbols_sparc_machelf64.o
37 37
38 38 COMOBJS= arch.o audit.o \
39 39 c_literal.o \
40 40 cap.o config.o \
41 41 corenote.o data.o \
42 42 deftag.o demangle.o \
43 43 dl.o dwarf.o \
44 44 dwarf_ehe.o dynamic.o \
45 45 elf.o entry.o \
46 46 globals.o group.o \
47 47 lddstub.o map.o \
48 48 phdr.o relocate.o \
49 49 relocate_i386.o relocate_amd64.o \
50 50 relocate_sparc.o sections.o \
51 51 segments.o strproc.o \
52 52 symbols.o syminfo.o \
53 53 tokens.o time.o \
54 54 version.o
55 55
56 56 ELFCAP_OBJS= elfcap.o
57 57
58 58 ASOBJS= vernote.o
59 59
60 60 BLTOBJS= arch_msg.o audit_msg.o \
61 61 c_literal_msg.o \
62 62 cap_msg.o config_msg.o \
63 63 corenote_msg.o data_msg.o \
64 64 deftag_msg.o demangle_msg.o \
65 65 dl_msg.o dwarf_msg.o \
66 66 dwarf_ehe_msg.o dynamic_msg.o \
67 67 elf_msg.o entry_msg.o \
68 68 globals_msg.o group_msg.o \
69 69 map_msg.o lddstub_msg.o \
70 70 phdr_msg.o relocate_amd64_msg.o \
71 71 relocate_i386_msg.o relocate_sparc_msg.o \
72 72 sections_msg.o segments_msg.o \
73 73 symbols_msg.o symbols_sparc_msg.o \
74 74 syminfo_msg.o time_msg.o \
75 75 version_msg.o
76 76
77 77
78 78 OBJECTS = $(COMOBJS) $(COMOBJS32) $(COMOBJS64) $(ELFCAP_OBJS) \
79 79 $(ASOBJS) $(BLTOBJS)
80 80
81 81 #
↓ open down ↓ |
81 lines elided |
↑ open up ↑ |
82 82 # This library is unusual since it's a static archive of PIC objects.
83 83 # Since static archives should never contain CTF data (regardless of
84 84 # whether the object code is position-independent), we disable CTF.
85 85 #
86 86 NOCTFOBJS = $(OBJECTS)
87 87 CTFMERGE_LIB = :
88 88
89 89 include $(SRC)/lib/Makefile.lib
90 90 include $(SRC)/cmd/sgs/Makefile.com
91 91
92 +SRCDIR = $(SRC)/cmd/sgs/libconv
93 +
92 94 CERRWARN += -_gcc=-Wno-type-limits
93 95 CERRWARN += -_gcc=-Wno-switch
94 96
95 97 # not linted
96 98 SMATCH=off
97 99
98 100 CTFCONVERT_O=
99 101
100 -README_REVISION=../../packages/common/readme_revision
101 -ONLDREADME= ../../packages/common/SUNWonld-README
102 +README_REVISION= $(SGSHOME)/tools/readme_revision
103 +ONLDREADME= $(SGSHOME)/tools/SUNWonld-README
102 104
103 105 PICS= $(OBJECTS:%=pics/%)
104 106
105 -CPPFLAGS += -I$(SRCBASE)/lib/libc/inc -I$(ELFCAP) \
107 +CPPFLAGS += -I$(SRC)/lib/libc/inc -I$(ELFCAP) \
106 108 -I$(SRC)/common/sgsrtcid
107 109
108 110 ARFLAGS= cr
109 111
110 112 AS_CPPFLAGS= -P -D_ASM $(CPPFLAGS)
111 113
112 114 BLTDATA= $(BLTOBJS:%.o=%.c) $(BLTOBJS:%.o=%.h) report_bufsize.h
113 115
114 116 MSGSRCS= $(COMOBJS:%.o=../common/%.c) \
115 117 $(COMOBJS_NOMSG:%.o=../common/%.c) \
116 118 $(ELFCOM_OBJS:%.o=$(ELFCAP)/%.c)
117 119
118 120 SGSMSGTARG= $(BLTOBJS:%_msg.o=../common/%.msg)
119 121
120 122 CLEANFILES += $(BLTDATA) bld_vernote vernote.s
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX