Print this page
gag Studio warnings that only occur with an adjunct proto
Studio has no equivalent to -isystem, and no option to its -errhdr that
seems equivalent. As such, we have to gag the warnings that are induced
from the 3rd party headers when those headers are found via the adjunct,
as they will not match Studio's seemingly hard-coded exception on
`/usr/include`
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
26 26 PROG = latencytop
27 27 OBJS = latencytop.o display.o dwrapper.o klog.o stat.o table.o util.o
28 28 SRCS = $(OBJS:%.o=../common/%.c)
29 29
30 30 include ../../Makefile.cmd
31 31
32 32 CFLAGS += $(CCVERBOSE)
33 33 CFLAGS64 += $(CCVERBOSE)
34 34
↓ open down ↓ |
34 lines elided |
↑ open up ↑ |
35 35 CERRWARN += -_gcc=-Wno-uninitialized
36 36
37 37 CPPFLAGS += -DEMBED_CONFIGS -I$(ADJUNCT_PROTO)/usr/include/glib-2.0 \
38 38 -I$(ADJUNCT_PROTO)/usr/lib/glib-2.0/include
39 39 C99MODE = $(C99_ENABLE)
40 40 LDLIBS += -lcurses -ldtrace
41 41 all install := LDLIBS += -lglib-2.0
42 42
43 43 LINTFLAGS += -erroff=E_NAME_USED_NOT_DEF2
44 44 LINTFLAGS += -erroff=E_FUNC_RET_ALWAYS_IGNOR2
45 +LINTFLAGS += -erroff=E_STATIC_UNUSED
45 46 LINTFLAGS64 += -erroff=E_NAME_USED_NOT_DEF2
46 47 LINTFLAGS64 += -erroff=E_FUNC_RET_ALWAYS_IGNOR2
48 +LINTFLAGS64 += -erroff=E_STATIC_UNUSED
47 49
48 50 FILEMODE = 0555
49 51
50 -ELFWRAP = elfwrap
51 52 WRAPOBJ = latencytop_wrap.o
52 53
53 54 CLEANFILES += $(OBJS) $(WRAPOBJ) ./latencytop_d ./latencytop_trans
54 55
55 56 .KEEP_STATE:
56 57
57 58 all: $(PROG)
58 59
59 60 install: $(SUBDIRS)
60 61 -$(RM) $(ROOTPROG)
61 62 -$(LN) $(ISAEXEC) $(ROOTPROG)
62 63
63 64 $(PROG): $(OBJS) $(WRAPOBJ)
64 65 $(LINK.c) -o $@ $(OBJS) $(WRAPOBJ) $(LDLIBS)
65 66 $(POST_PROCESS)
66 67
67 68 $(WRAPOBJ): latencytop_d latencytop_trans
68 69 $(ELFWRAP) $(WRAPOPT) -o $(WRAPOBJ) latencytop_d latencytop_trans
69 70
70 71 latencytop_d:
71 72 cp ../common/latencytop.d ./latencytop_d
72 73
73 74 latencytop_trans:
74 75 cp ../common/latencytop.trans ./latencytop_trans
75 76
76 77 clean:
77 78 $(RM) $(CLEANFILES)
78 79
79 80 lint: lint_SRCS
80 81
81 82 %.o: ../common/%.c
82 83 $(COMPILE.c) $<
83 84
84 85 include ../../Makefile.targ
↓ open down ↓ |
24 lines elided |
↑ open up ↑ |
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX