Print this page
11528 Makefile.noget can get gone
11529 Use -Wno-maybe-initialized
Split |
Close |
Expand all |
Collapse all |
--- old/usr/src/cmd/mdb/Makefile.libstandctf
+++ new/usr/src/cmd/mdb/Makefile.libstandctf
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 2007 Sun Microsystems, Inc. All rights reserved.
23 23 # Use is subject to license terms.
24 24 #
25 25 # Copyright 2018 Joyent, Inc.
26 26 #
27 27
28 28 .KEEP_STATE:
29 29
30 30 CTF_COMMON_SRCS = \
31 31 ctf_create.c \
32 32 ctf_decl.c \
33 33 ctf_error.c \
34 34 ctf_hash.c \
35 35 ctf_labels.c \
36 36 ctf_lookup.c \
37 37 ctf_open.c \
38 38 ctf_types.c \
39 39 ctf_util.c
40 40
41 41 CTF_STUB_SRCS = \
42 42 ctf_subr.c
43 43
44 44 MAPFILE = ../../../common/libstandctf/mapfile
45 45
46 46 $(NOT_RELEASE_BUILD)CPPFLAGS += -DDEBUG
47 47 CPPFLAGS += -I$(SRC)/common/ctf -I../../../common -DCTF_OLD_VERSIONS -D_MDB \
48 48 -Dvsnprintf=ctf_vsnprintf -Dassfail=kmdb_prom_assfail
49 49
50 50 CSTD = $(CSTD_GNU99)
51 51 C99LMODE = -Xc99=%all
52 52
53 53 #
54 54 # kmdb is a kernel module, so we'll use the kernel's build flags.
↓ open down ↓ |
54 lines elided |
↑ open up ↑ |
55 55 CFLAGS64 += $(STAND_FLAGS_64)
56 56
57 57 LDFLAGS = $(ZNOVERSION) $(BREDUCE) -M $(MAPFILE) -dy -r
58 58
59 59 LIB = libstandctf.so
60 60 OBJS = $(CTF_COMMON_SRCS:%.c=%.o) $(CTF_STUB_SRCS:%.c=%.o)
61 61 LINTFILES = $(OBJS:%.o=%.ln)
62 62
63 63 LINTFLAGS += -n -errtags=yes
64 64
65 -CERRWARN += -_gcc=-Wno-uninitialized
65 +CERRWARN += $(CNOWARN_UNINIT)
66 66
67 67 .NO_PARALLEL:
68 68 .PARALLEL: $(OBJS)
69 69
70 70 install all: $(LIB)
71 71
72 72 $(LIB): $(OBJS) $(MAPFILE)
73 73 $(LD) $(LDFLAGS) -o $@ $(OBJS)
74 74
75 75 clobber clean:
76 76 $(RM) $(LIB) $(OBJS) $(LINTFILES)
77 77
78 78 lint: $(LINTFILES)
79 79 $(LINT) $(LINTFLAGS) $(LINTFILES)
80 80
81 81 #
82 82 # Dynamic rules for object construction
83 83 #
84 84
85 85 %.o: ../../../common/libstandctf/%.c
86 86 $(COMPILE.c) $<
87 87 $(CTFCONVERT_O)
88 88
89 89 %.o: $(SRC)/common/ctf/%.c
90 90 $(COMPILE.c) $<
91 91 $(CTFCONVERT_O)
92 92
93 93 #
94 94 # Lint
95 95 #
96 96
97 97 %.ln: ../../../common/libstandctf/%.c
98 98 $(LINT.c) -c $<
99 99
100 100 %.ln: $(SRC)/common/ctf/%.c
101 101 $(LINT.c) -c $<
↓ open down ↓ |
26 lines elided |
↑ open up ↑ |
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX