Print this page
10080 smatch Makefile changes for usr/src/cmd
Split |
Close |
Expand all |
Collapse all |
--- old/usr/src/cmd/awk/Makefile
+++ new/usr/src/cmd/awk/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, Version 1.0 only
6 6 # (the "License"). You may not use this file except in compliance
7 7 # with the License.
8 8 #
9 9 # You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
10 10 # or http://www.opensolaris.org/os/licensing.
11 11 # See the License for the specific language governing permissions
12 12 # and limitations under the License.
13 13 #
14 14 # When distributing Covered Code, include this CDDL HEADER in each
15 15 # file and include the License file at usr/src/OPENSOLARIS.LICENSE.
16 16 # If applicable, add the following below this CDDL HEADER, with the
↓ open down ↓ |
16 lines elided |
↑ open up ↑ |
17 17 # fields enclosed by brackets "[]" replaced with your own identifying
18 18 # information: Portions Copyright [yyyy] [name of copyright owner]
19 19 #
20 20 # CDDL HEADER END
21 21 #
22 22 #
23 23 #
24 24 # Copyright 2005 Sun Microsystems, Inc. All rights reserved.
25 25 # Use is subject to license terms.
26 26 #
27 +# Copyright (c) 2018, Joyent, Inc.
27 28
28 29 # NOTE: awk is oawk.
29 30
30 31 PROG= nawk
31 32
32 33 OBJ1= b.o lib.o main.o parse.o proctab.o run.o tran.o
33 34 OBJ2= awk.g.o awk.lx.o
34 35 OBJS= $(OBJ2) $(OBJ1)
35 36 SRCS= $(OBJ1:%.o=%.c)
36 37
37 38 include ../Makefile.cmd
38 39
39 40 CERRWARN += -_gcc=-Wno-implicit-function-declaration
40 41 CERRWARN += -_gcc=-Wno-unused-label
41 42 CERRWARN += -_gcc=-Wno-parentheses
42 43 CERRWARN += -_gcc=-Wno-unused-variable
43 44 CERRWARN += -_gcc=-Wno-uninitialized
44 45
46 +# not linted
47 +SMATCH=off
48 +
45 49 #
46 50 # Message catalog
47 51 #
48 52 POFILES= $(OBJS:%.o=%.po)
49 53 POFILE= awk.po
50 54 XGETFLAGS += -a -x awk.xcl
51 55 #
52 56
53 57 CPPFLAGS += -D_FILE_OFFSET_BITS=64
54 58 YFLAGS += -d
55 59 LDLIBS += -lm
56 60 LINTFLAGS += -u
57 61 CLEANFILES= maketab proctab.c awk.g.c awk.lx.c y.tab.h
58 62
59 63 .KEEP_STATE:
60 64
61 65 all: $(PROG)
62 66
63 67 $(PROG): $(OBJS)
64 68 $(LINK.c) $(OBJS) -o $@ $(LDLIBS)
65 69 $(POST_PROCESS)
66 70
67 71 #
68 72 # message catalog
69 73 #
70 74
71 75 $(POFILE): y.tab.h $(POFILES)
72 76 $(RM) $@
73 77 cat $(POFILES) > $@
74 78 #
75 79
76 80 proctab.c: maketab
77 81 rm -f $@; ./maketab > $@
78 82
79 83 maketab: maketab.c
80 84 $(NATIVECC) $(NATIVE_CFLAGS) maketab.c -o $@ $(LDLIBS)
81 85
82 86 install: all $(ROOTPROG) $(ROOTLINK)
83 87
84 88 clean:
85 89 $(RM) $(OBJS) $(CLEANFILES)
86 90
87 91 lint: awk.g.c lint_SRCS
88 92
89 93 awk.g.c + y.tab.h: awk.g.y
90 94
91 95 awk.g.o: awk.g.c
92 96
93 97 awk.lx.c: awk.lx.l
94 98
95 99 proctab.o: proctab.c
96 100 $(COMPILE.c) proctab.c
97 101 $(POST_PROCESS_O)
98 102
99 103 include ../Makefile.targ
↓ open down ↓ |
45 lines elided |
↑ open up ↑ |
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX