Print this page
10080 smatch Makefile changes for usr/src/cmd
Split |
Close |
Expand all |
Collapse all |
--- old/usr/src/cmd/oamuser/lib/Makefile
+++ new/usr/src/cmd/oamuser/lib/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 2009 Sun Microsystems, Inc. All rights reserved.
23 23 # Use is subject to license terms.
24 24 #
25 +# Copyright (c) 2018, Joyent, Inc.
25 26
26 27 LIBRARY= lib.a
27 28
28 29 DATEFILE= ugdates
29 30 DATEFILESRC= ugdates.dat
30 31 TXT= $(DATEFILESRC)
31 32
32 33 OBJECTS= putgrent.o \
33 34 errmsg.o \
34 35 file.o \
35 36 vgid.o \
36 37 vgname.o \
37 38 vgroup.o \
38 39 vuid.o \
39 40 vlogin.o \
40 41 vproj.o \
41 42 dates.o \
42 43 vexpire.o \
43 44 putprojent.o \
44 45 vprojid.o \
45 46 vprojname.o
46 47
47 48 # include library definitions
48 49 include ../../Makefile.cmd
49 50 include ../../../lib/Makefile.lib
50 51
51 52 SRCDIR = .
52 53
53 54 GREP= grep
54 55 FILEMODE= $(LIBFILEMODE)
55 56
56 57 PRODUCT= $(LIBRARY) $(DATEFILE)
57 58
58 59 # Must retain `lib', since default expands to nothing
↓ open down ↓ |
24 lines elided |
↑ open up ↑ |
59 60 LLINTLIB= llib-l$(LIBRARY:lib%.a=lib).ln
60 61
61 62 CLEANFILES= $(LLINTLIB)
62 63 CLOBBERFILES= $(DATEFILE)
63 64
64 65 GENERAL= ../inc
65 66 CPPFLAGS= -I. -I$(GENERAL) $(CPPFLAGS.master)
66 67 CERRWARN += -_gcc=-Wno-parentheses
67 68 CERRWARN += -_gcc=-Wno-type-limits
68 69 CERRWARN += -_gcc=-Wno-unused-variable
70 +# not linted
71 +SMATCH=off
72 +
69 73 ARFLAGS= cr
70 74 AROBJS= `$(LORDER) $(OBJS) | $(TSORT)`
71 75 LINTFLAGS= -u
72 76
73 77 ROOTUSRSADM= $(ROOT)/usr/sadm
74 78 ROOTUSRSADMFILE=$(DATEFILE:%=$(ROOTUSRSADM)/%)
75 79
76 80 CLOBBERFILES += $(LIBRARY)
77 81
78 82 .KEEP_STATE:
79 83
80 84 all: $(PRODUCT) $(TXT)
81 85
82 86 $(DATEFILE): $(DATEFILESRC)
83 87 $(GREP) -v "^#ident" $(DATEFILESRC) > $(DATEFILE)
84 88
85 89 install: all $(DATEFILE) $(ROOTUSRSADMFILE)
86 90
87 91 $(ROOTUSRSADM)/%: %
88 92 $(INS.file)
89 93
90 94 lint: $(LLINTLIB)
91 95
92 96 $(LLINTLIB): $(SRCS)
93 97 $(LINT.c) -o $(LIBRARY:lib%.a=lib) $(SRCS) > $(LINTOUT) 2>&1
94 98
95 99 include ../../../lib/Makefile.targ
↓ open down ↓ |
17 lines elided |
↑ open up ↑ |
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX