Print this page
10080 smatch Makefile changes for usr/src/cmd
Split |
Close |
Expand all |
Collapse all |
--- old/usr/src/cmd/fs.d/udfs/fsdb/Makefile
+++ new/usr/src/cmd/fs.d/udfs/fsdb/Makefile
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.
↓ open down ↓ |
14 lines elided |
↑ open up ↑ |
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 -# Copyright 2017, Joyent Inc.
25 +# Copyright (c) 2018, Joyent, Inc.
26 26 #
27 27
28 28 FSTYPE= udfs
29 29 LIBPROG= fsdb
30 30
31 31 include ../../Makefile.fstype
32 32
33 33 # fsdb has a name clash with main() and libl.so.1. However, fsdb must
34 34 # still export a number of "yy*" (libl) interfaces. Reduce all other symbols
35 35 # to local scope.
36 36 MAPFILES += $(MAPFILE.INT) $(MAPFILE.LEX) $(MAPFILE.NGB)
37 37 MAPOPTS = $(MAPFILES:%=-M%)
38 38
39 39 CPPFLAGS += -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64
40 40 LDLIBS += -lmalloc -ll -ladm
41 41 LDFLAGS += $(MAPOPTS)
42 42 YFLAGS = "-d"
43 43
↓ open down ↓ |
8 lines elided |
↑ open up ↑ |
44 44 LINTFLAGS += -erroff=E_STATIC_UNUSED
45 45 LINTFLAGS64 += -erroff=E_STATIC_UNUSED
46 46
47 47 CERRWARN += -_gcc=-Wno-implicit-function-declaration
48 48 CERRWARN += -_gcc=-Wno-unused-label
49 49 CERRWARN += -_gcc=-Wno-unused-variable
50 50 CERRWARN += -_gcc=-Wno-uninitialized
51 51 CERRWARN += -_gcc=-Wno-unused-value
52 52 CERRWARN += -_gcc=-Wno-unused-function
53 53
54 +# not linted
55 +SMATCH=off
56 +
54 57 SRCS= fsdb.c ud_lib.c
55 58
56 59 fsdb : fsdb_yacc.o fsdb_lex.o ud_lib.o fsdb.o $(MAPFILES)
57 60 $(LINK.c) -o $@ fsdb.o fsdb_yacc.o fsdb_lex.o \
58 61 ud_lib.o $(LDLIBS)
59 62 $(POST_PROCESS)
60 63
61 64 fsdb.o : fsdb.c
62 65 $(COMPILE.c) -o $@ fsdb.c
63 66 $(POST_PROCESS_O)
64 67
65 68 ud_lib.o : ud_lib.c ud_lib.h
66 69 $(COMPILE.c) -o $@ ud_lib.c
67 70 $(POST_PROCESS_O)
68 71
69 72 ud_lib.c : ../fstyp/ud_lib.c
70 73 $(RM) $@
71 74 $(CP) ../fstyp/ud_lib.c $@
72 75
73 76 ud_lib.h : ../fstyp/ud_lib.h
74 77 $(RM) $@
75 78 $(CP) ../fstyp/ud_lib.h $@
76 79
77 80 y.tab.c : fsdb_yacc.y
78 81 $(YACC.y) fsdb_yacc.y
79 82
80 83 fsdb_yacc.o : y.tab.c
81 84 $(COMPILE.c) -o $@ y.tab.c
82 85 $(POST_PROCESS_O)
83 86
84 87 lex.yy.c : fsdb_lex.l
85 88 $(LEX) -e fsdb_lex.l
86 89
87 90 fsdb_lex.o : lex.yy.c
88 91 $(COMPILE.c) -o $@ lex.yy.c
89 92 $(POST_PROCESS_O)
90 93
91 94 clean :
92 95 $(RM) ud_lib.c ud_lib.h fsdb.o ud_lib.o fsdb_yacc.o fsdb_lex.o
93 96 $(RM) fsdb_yacc.c fsdb_lex.c y.tab.c y.tab.h lex.yy.c
94 97
95 98 # for messaging catalog
96 99 #
97 100 POFILE= fsdb.po
98 101
99 102 # for messaging catalog
100 103 #
101 104 catalog: $(POFILE)
102 105
103 106 CATSRCS= $(SRCS) lex.yy.c y.tab.c
104 107
105 108 $(POFILE): $(CATSRCS) ud_lib.h
106 109 $(RM) $@
107 110 $(COMPILE.cpp) $(CATSRCS) > $(POFILE).i
108 111 $(XGETTEXT) $(XGETFLAGS) $(POFILE).i
109 112 $(SED) "/^domain/d" messages.po > $@
110 113 $(RM) $(POFILE).i messages.po
111 114
112 115 lint: y.tab.c lex.yy.c ud_lib.c ud_lib.h
113 116 $(LINT.c) -mu $(SRCS)
114 117
115 118 putback :
116 119 -cstyle -p fsdb.c
117 120 -keywords fsdb.c
118 121 -keywords Makefile
119 122
↓ open down ↓ |
56 lines elided |
↑ open up ↑ |
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX