Print this page
11528 Makefile.noget can get gone
11529 Use -Wno-maybe-initialized
Split |
Close |
Expand all |
Collapse all |
--- old/usr/src/tools/ctf/cvt/Makefile.com
+++ new/usr/src/tools/ctf/cvt/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 2006 Sun Microsystems, Inc. All rights reserved.
23 23 # Use is subject to license terms.
24 24 #
25 25
26 26 include ../../Makefile.ctf
27 27
28 28 .KEEP_STATE:
29 29 .PARALLEL:
30 30
31 31 PROG=ctfconvert ctfmerge
32 32
33 33 GENSRCS= \
34 34 alist.c \
35 35 altexec.c \
36 36 barrier.c \
37 37 ctf.c \
38 38 fifo.c \
39 39 hash.c \
40 40 iidesc.c \
41 41 input.c \
42 42 list.c \
43 43 memory.c \
44 44 merge.c \
45 45 output.c \
46 46 stack.c \
47 47 strtab.c \
48 48 symbol.c \
49 49 tdata.c \
50 50 traverse.c \
51 51 util.c
52 52
53 53 CVTSRCS=$(GENSRCS) \
54 54 ctfconvert.c \
55 55 dwarf.c \
56 56 stabs.c \
57 57 fixup_tdescs.c \
58 58 st_parse.c
59 59 CVTOBJS=$(CVTSRCS:%.c=%.o)
60 60 CVTLINTFILES = $(CVTSRCS:%.c=%.ln)
61 61
62 62 MRGSRCS=$(GENSRCS) \
63 63 ctfmerge.c
64 64 MRGOBJS=$(MRGSRCS:%.c=%.o)
65 65 MRGLINTFILES = $(MRGSRCS:%.c=%.ln)
66 66
67 67 SRCS=$(CVTSRCS) $(MRGSRCS) $(CMPSRCS)
68 68 OBJS=$(SRCS:%.c=%.o)
69 69 LINTFILES=$(SRCS:%.c=%.ln)
70 70
71 71 DWARFLDFLAGS = \
72 72 -L$(ROOTONBLDLIBMACH) \
73 73 '-R$$ORIGIN/../../lib/$(MACH)' \
↓ open down ↓ |
73 lines elided |
↑ open up ↑ |
74 74 -ldwarf
75 75 DWARFCPPFLAGS = -I$(SRC)/lib/libdwarf/common
76 76
77 77 LDFLAGS += -L$(NATIVE_ADJUNCT)/lib
78 78 LDLIBS += -lz -lelf
79 79 CPPFLAGS += -D_REENTRANT
80 80 CFLAGS += $(CTF_FLAGS)
81 81 LINTFLAGS += -mnux
82 82
83 83 CERRWARN += -_gcc=-Wno-unused
84 -CERRWARN += -_gcc=-Wno-uninitialized
84 +CERRWARN += $(CNOWARN_UNINIT)
85 85 CERRWARN += -_gcc=-Wno-switch
86 86
87 87 CSTD = $(CSTD_GNU99)
88 88
89 89 ctfconvert := LDFLAGS += $(DWARFLDFLAGS)
90 90
91 91 dwarf.o dwarf.ln := CPPFLAGS += $(DWARFCPPFLAGS)
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX