Print this page
11528 Makefile.noget can get gone
11529 Use -Wno-maybe-initialized
Split |
Close |
Expand all |
Collapse all |
--- old/usr/src/cmd/sgs/libelf/Makefile.com
+++ new/usr/src/cmd/sgs/libelf/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 # Copyright 2015 Gary Mills
23 23 # Copyright (c) 1990, 2010, Oracle and/or its affiliates. All rights reserved.
24 24 # Copyright (c) 2018, Joyent, Inc.
25 25 # Copyright 2019 OmniOS Community Edition (OmniOSce) Association.
26 26 #
27 27
28 28 LIBRARY= libelf.a
29 29 VERS= .1
30 30
31 31 MACHOBJS=
32 32 COMOBJS= ar.o begin.o cntl.o cook.o \
33 33 data.o end.o fill.o flag.o \
34 34 getarhdr.o getarsym.o getbase.o getdata.o \
35 35 getehdr.o getident.o getphdr.o getscn.o \
36 36 getshdr.o \
37 37 getphnum.o getshnum.o getshstrndx.o \
38 38 hash.o input.o kind.o \
39 39 ndxscn.o newdata.o newehdr.o newphdr.o \
40 40 newscn.o next.o nextscn.o output.o \
41 41 rand.o rawdata.o rawfile.o rawput.o \
42 42 strptr.o update.o error.o gelf.o \
43 43 clscook.o checksum.o
44 44 CLASSOBJS= clscook64.o newehdr64.o newphdr64.o update64.o \
45 45 checksum64.o
46 46 BLTOBJS= msg.o xlate.o xlate64.o
47 47 MISCOBJS= String.o args.o demangle.o nlist.o \
48 48 nplist.o
49 49 MISCOBJS64= nlist.o
50 50
51 51 OBJECTS= $(BLTOBJS) $(MACHOBJS) $(COMOBJS) $(CLASSOBJS) $(MISCOBJS)
52 52
53 53 include $(SRC)/lib/Makefile.lib
54 54
55 55 # Use the value of M4 set in Makefile.master via Makefile.lib
56 56
57 57 DEMOFILES= Makefile 00README acom.c dcom.c \
58 58 pcom.c tpcom.c dispsyms.c
59 59 DEMOFILESRCDIR= ../demo
60 60 ROOTDEMODIRBASE=$(ROOT)/usr/demo/ELF
↓ open down ↓ |
60 lines elided |
↑ open up ↑ |
61 61 ROOTDEMODIRS= $(ROOTDEMODIRBASE)
62 62
63 63 include $(SRC)/cmd/sgs/Makefile.com
64 64
65 65 MAPFILES = ../common/mapfile-vers
66 66
67 67 DYNFLAGS += $(VERSREF)
68 68 LDLIBS += $(CONVLIBDIR) $(CONV_LIB) -lc
69 69
70 70 CERRWARN += -_gcc=-Wno-parentheses
71 -CERRWARN += -_gcc=-Wno-uninitialized
71 +CERRWARN += $(CNOWARN_UNINIT)
72 72
73 73 SMOFF += indenting
74 74
75 75 BUILD.AR= $(RM) $@ ; \
76 76 $(AR) q $@ `$(LORDER) $(OBJECTS:%=$(DIR)/%)| $(TSORT)`
77 77 $(POST_PROCESS_A)
78 78
79 79
80 80 BLTDEFS= msg.h
81 81 BLTDATA= msg.c
82 82 BLTMESG= $(SGSMSGDIR)/libelf
83 83
84 84 BLTFILES= $(BLTDEFS) $(BLTDATA) $(BLTMESG)
85 85
86 86 SGSMSGCOM= ../common/libelf.msg
87 87 SGSMSG32= ../common/libelf.32.msg
88 88 SGSMSGTARG= $(SGSMSGCOM)
89 89 SGSMSGALL= $(SGSMSGCOM) $(SGSMSG32)
90 90
91 91 SGSMSGFLAGS1= $(SGSMSGFLAGS) -m $(BLTMESG)
92 92 SGSMSGFLAGS2= $(SGSMSGFLAGS) -h $(BLTDEFS) -d $(BLTDATA) -n libelf_msg
93 93
94 94 BLTSRCS= $(BLTOBJS:%.o=%.c)
95 95 LIBSRCS= $(COMOBJS:%.o=../common/%.c) $(MISCOBJS:%.o=../misc/%.c) \
96 96 $(MACHOBJS:%.o=%.c) $(BLTSRCS)
97 97
98 98 ROOTFS_DYNLIB= $(DYNLIB:%=$(ROOTFS_LIBDIR)/%)
99 99
100 100 ROOTFS_DYNLIB64= $(DYNLIB:%=$(ROOTFS_LIBDIR64)/%)
101 101
102 102 $(ROOTFS_DYNLIB) := FILEMODE= 755
103 103 $(ROOTFS_DYNLIB64) := FILEMODE= 755
104 104
105 105 LIBS = $(DYNLIB)
106 106
107 107 CLEANFILES += $(BLTSRCS) $(BLTFILES)
108 108
109 109 .PARALLEL: $(LIBS)
↓ open down ↓ |
28 lines elided |
↑ open up ↑ |
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX