Print this page
10080 smatch Makefile changes for usr/src/cmd
Split |
Close |
Expand all |
Collapse all |
--- old/usr/src/cmd/nl/Makefile
+++ new/usr/src/cmd/nl/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 (c) 2018, Joyent, Inc.
26 +#
25 27 # Message catalog requires no special processing because messages
26 28 # only occur in ./nl.c, not in ../expr/compile.c.
27 29
28 30 PROG= nl
29 31 XPG4PROG= nl
30 32
31 33 NLOBJ= nlobjs/$(PROG).o nlobjs/compile.o
32 34 XPG4NLOBJ= nlobjs.xpg4/$(PROG).o nlobjs.xpg4/compile.o
33 35
34 36 OBJS = $(NLOBJ) $(XPG4NLOBJ)
35 37 SRCS = nl.c ../expr/compile.c
36 38
37 39 include ../Makefile.cmd
38 40
39 41 LDLIBS += -lgen
40 42 CFLAGS += $(CCVERBOSE)
41 43 CERRWARN += -_gcc=-Wno-uninitialized
42 44 CERRWARN += -_gcc=-Wno-unused-variable
45 +
46 +# not linted
47 +SMATCH=off
48 +
43 49 $(XPG4):= CPPFLAGS += -DXPG4
44 50
45 51 MAPFILE.INT = ../expr/mapfile-intf
46 52 LDFLAGS += $(MAPFILE.INT:%=-M%)
47 53
48 54 .KEEP_STATE:
49 55
50 56 all: $(PROG) $(XPG4)
51 57
52 58 install: all $(ROOTPROG) $(ROOTXPG4PROG)
53 59
54 60 $(PROG): nlobjs $(NLOBJ) $(MAPFILE.INT)
55 61 $(LINK.c) $(NLOBJ) -o $@ $(LDLIBS)
56 62 $(POST_PROCESS)
57 63
58 64 $(XPG4): nlobjs.xpg4 $(XPG4NLOBJ) $(MAPFILE.INT)
59 65 $(LINK.c) $(XPG4NLOBJ) -o $@ $(LDLIBS)
60 66 $(POST_PROCESS)
61 67
62 68 nlobjs/%.o: %.c
63 69 $(COMPILE.c) -o $@ $<
64 70
65 71 nlobjs/%.o: ../expr/%.c
66 72 $(COMPILE.c) -o $@ $<
67 73
68 74 nlobjs.xpg4/%.o: %.c
69 75 $(COMPILE.c) -o $@ $<
70 76
71 77 nlobjs.xpg4/%.o: ../expr/%.c
72 78 $(COMPILE.c) -o $@ $<
73 79
74 80 nlobjs:
75 81 -@mkdir -p $@
76 82
77 83 nlobjs.xpg4:
78 84 -@mkdir -p $@
79 85
80 86 clean:
81 87 $(RM) $(OBJS)
82 88
83 89 lint: lint_PROG
84 90
85 91 include ../Makefile.targ
86 92
↓ open down ↓ |
34 lines elided |
↑ open up ↑ |
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX