Print this page
11528 Makefile.noget can get gone
11529 Use -Wno-maybe-initialized
Split |
Close |
Expand all |
Collapse all |
--- old/usr/src/cmd/latencytop/Makefile.com
+++ new/usr/src/cmd/latencytop/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 (c) 2008-2009, Intel Corporation.
23 23 # All Rights Reserved.
24 24 #
25 25 # Copyright (c) 2018, Joyent, Inc.
↓ open down ↓ |
25 lines elided |
↑ open up ↑ |
26 26
27 27 PROG = latencytop
28 28 OBJS = latencytop.o display.o dwrapper.o klog.o stat.o table.o util.o
29 29 SRCS = $(OBJS:%.o=../common/%.c)
30 30
31 31 include ../../Makefile.cmd
32 32
33 33 CFLAGS += $(CCVERBOSE)
34 34 CFLAGS64 += $(CCVERBOSE)
35 35
36 -CERRWARN += -_gcc=-Wno-uninitialized
36 +CERRWARN += $(CNOWARN_UNINIT)
37 37
38 38 SMOFF += all_func_returns
39 39
40 40 CPPFLAGS += -DEMBED_CONFIGS -I$(ADJUNCT_PROTO)/usr/include/glib-2.0 \
41 41 -I$(ADJUNCT_PROTO)/usr/lib/glib-2.0/include
42 42 CSTD = $(CSTD_GNU99)
43 43 LDLIBS += -lcurses -ldtrace
44 44 all install := LDLIBS += -lglib-2.0
45 45
46 46 LINTFLAGS += -erroff=E_NAME_USED_NOT_DEF2
47 47 LINTFLAGS += -erroff=E_FUNC_RET_ALWAYS_IGNOR2
48 48 LINTFLAGS += -erroff=E_FUNC_RET_MAYBE_IGNORED2
49 49 LINTFLAGS64 += -erroff=E_NAME_USED_NOT_DEF2
50 50 LINTFLAGS64 += -erroff=E_FUNC_RET_ALWAYS_IGNOR2
51 51 LINTFLAGS64 += -erroff=E_FUNC_RET_MAYBE_IGNORED2
52 52
53 53 FILEMODE = 0555
54 54
55 55 ELFWRAP = elfwrap
56 56 WRAPOBJ = latencytop_wrap.o
57 57
58 58 CLEANFILES += $(OBJS) $(WRAPOBJ) ./latencytop_d ./latencytop_trans
59 59
60 60 .KEEP_STATE:
61 61
62 62 all: $(PROG)
63 63
64 64 install: $(SUBDIRS)
65 65 -$(RM) $(ROOTPROG)
66 66 -$(LN) $(ISAEXEC) $(ROOTPROG)
67 67
68 68 $(PROG): $(OBJS) $(WRAPOBJ)
69 69 $(LINK.c) -o $@ $(OBJS) $(WRAPOBJ) $(LDLIBS)
70 70 $(POST_PROCESS)
71 71
72 72 $(WRAPOBJ): latencytop_d latencytop_trans
73 73 $(ELFWRAP) $(WRAPOPT) -o $(WRAPOBJ) latencytop_d latencytop_trans
74 74
75 75 latencytop_d:
76 76 cp ../common/latencytop.d ./latencytop_d
77 77
78 78 latencytop_trans:
79 79 cp ../common/latencytop.trans ./latencytop_trans
80 80
81 81 clean:
82 82 $(RM) $(CLEANFILES)
83 83
84 84 lint: lint_SRCS
85 85
86 86 %.o: ../common/%.c
87 87 $(COMPILE.c) $<
88 88
89 89 include ../../Makefile.targ
↓ open down ↓ |
43 lines elided |
↑ open up ↑ |
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX