Print this page
10080 smatch Makefile changes for usr/src/cmd
Split |
Close |
Expand all |
Collapse all |
--- old/usr/src/cmd/fwflash/Makefile.com
+++ new/usr/src/cmd/fwflash/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
↓ open down ↓ |
13 lines elided |
↑ open up ↑ |
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 # Copyright 2009 Sun Microsystems, Inc. All rights reserved.
22 22 # Use is subject to license terms.
23 23 #
24 -# cmd/fwflash/Makefile.com
24 +# Copyright (c) 2018, Joyent, Inc.
25 25 #
26 -#
27 26 # common rules for $SRC/cmd/fwflash
28 27
29 28 CLOSED= $(SRC)/../closed
30 29
31 30 CERRWARN += -_gcc=-Wno-parentheses
32 31 CERRWARN += -_gcc=-Wno-uninitialized
33 32 CERRWARN += -_gcc=-Wno-address
34 33
34 +# not linted
35 +SMATCH=off
36 +
35 37 ROOTUSR= $(ROOT)/usr
36 38 ROOTUSRINCLD= $(ROOTUSR)/include
37 39 ROOTUSRINCLDFWFLASH= $(ROOTUSRINCLD)/fwflash
38 40 ROOTUSRLIB= $(ROOTUSR)/lib
39 41 ROOTUSRLIBFWFLASH= $(ROOTUSRLIB)/fwflash
40 42 ROOTUSRLIBFWFLASHIDF= $(ROOTUSRLIBFWFLASH)/identify
41 43 ROOTUSRLIBFWFLASHVRF= $(ROOTUSRLIBFWFLASH)/verify
42 44 ROOTUSRSBIN= $(ROOTUSR)/sbin
43 45
44 46 $(ROOTUSR):
45 47 $(INS.dir)
46 48
47 49 $(ROOTUSRINCLD): $(ROOTUSR)
48 50 $(INS.dir)
49 51
50 52 $(ROOTUSRINCLDFWFLASH):
51 53 $(INS.dir)
52 54
53 55 $(ROOTUSRINCLDFWFLASH)/%: $(ROOTUSRINCLDFWFLASH) %
54 56 $(INS.file)
55 57
56 58 $(ROOTUSRLIB):
57 59 $(INS.dir)
58 60
59 61 $(ROOTUSRLIBFWFLASH): $(ROOTUSRLIB)
60 62 $(INS.dir)
61 63
62 64 $(ROOTUSRLIBFWFLASH)/%: $(ROOTUSRLIB) %
63 65 $(INS.dir)
64 66
65 67 $(ROOTUSRLIBFWFLASHIDF): $(ROOTUSRLIBFWFLASH)
66 68 $(INS.dir)
67 69
68 70 $(ROOTUSRLIBFWFLASHIDF)/%: $(ROOTUSRLIBFWFLASHIDF) %
69 71 $(INS.file)
70 72
71 73 $(ROOTUSRLIBFWFLASHVRF): $(ROOTUSRLIBFWFLASH)
72 74 $(INS.dir)
73 75
74 76 $(ROOTUSRLIBFWFLASHVRF)/%: $(ROOTUSRLIBFWFLASHVRF) %
75 77 $(INS.file)
76 78
77 79 $(ROOTUSRSBIN): $(ROOTUSR)
78 80 $(INS.dir)
79 81
80 82 $(ROOTUSRSBIN)/%: %
81 83 $(INS.file)
82 84
83 85
84 86
85 87 %.ln: $(SRCDIR)/%.c
86 88 $(LINT.c) $(LINTFLAGS) -c $<
87 89
88 90 %.po: $(SRCDIR)/%.c
89 91 $(RM) messages.po
90 92 $(XGETTEXT) $(XGETFLAGS) \
91 93 `($(GREP) -l gettext $< || echo /dev/null)`
92 94 $(SED) "/^domain/d" messages.po > $@
93 95 $(RM) messages.po
94 96
95 97 $(POFILE): $(POFILES)
96 98 $(RM) $@
97 99 cat $(POFILES) >$@
98 100
99 101 LINTFLAGS += -D_POSIX_PTHREAD_SEMANTICS -erroff=E_CONSTANT_CONDITION \
100 102 -erroff=E_SUPPRESSION_DIRECTIVE_UNUSED
↓ open down ↓ |
56 lines elided |
↑ open up ↑ |
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX