Print this page
10080 smatch Makefile changes for usr/src/cmd
Split |
Close |
Expand all |
Collapse all |
--- old/usr/src/cmd/keyserv/Makefile
+++ new/usr/src/cmd/keyserv/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 SBINPROG = keyserv newkey
27 28 BINPROG = keylogout keylogin domainname chkey
28 29
29 30 MANIFEST= keyserv.xml
30 31
31 32 PROG= $(SBINPROG) $(BINPROG)
32 33
33 34 HDRS= key_prot.h
34 35
35 36 DEFAULTFILES = keyserv.dfl
36 37
37 38 KEYSERVOBJS = keyserv.o
38 39 KEYLOGOUTOBJS = keylogout.o
39 40 KEYLOGINOBJS = keylogin.o
40 41 CHKEYOBJS = chkey.o
41 42 NEWKEYOBJS = newkey.o
42 43 UPDATEOBJS = update.o
43 44
44 45 DOMAINNAMEOBJS = domainname.o
45 46 K_OBJS = setkey.o detach.o key_generic.o keyserv_cache.o
46 47 CHANGE_OBJS = update.o chkey_common.o
47 48 OUTSIDE_UTIL_OBJS = selfcheck.o
48 49
49 50 OBJS = $(KEYSERVOBJS) $(KEYLOGOUTOBJS) $(KEYLOGINOBJS) $(CHKEYOBJS) \
50 51 $(NEWKEYOBJS) $(UPDATEOBJS) $(DOMAINNAMEOBJS) \
51 52 $(K_OBJS) $(CHANGE_OBJS)
52 53 SRCS = $(OBJS:.o=.c)
53 54
54 55 SED= sed
55 56
56 57 include ../Makefile.cmd
57 58
58 59 IBINPROG= $(BINPROG:%=$(ROOTBIN)/%)
59 60 ISBINPROG= $(SBINPROG:%=$(ROOTUSRSBIN)/%)
60 61
61 62 ROOTMANIFESTDIR= $(ROOTSVCNETWORKRPC)
62 63
63 64 $(ROOTBIN)/chkey := FILEMODE= 4555
64 65
65 66 $(ROOTKEYSERVDFLT) := FILEMODE= 444
66 67
↓ open down ↓ |
32 lines elided |
↑ open up ↑ |
67 68 CPPFLAGS += -I. -I$(SRC)/lib/libnsl/include -I$(SRC)/lib/libsldap/common \
68 69 -D_REENTRANT
69 70
70 71 CERRWARN += -_gcc=-Wno-implicit-function-declaration
71 72 CERRWARN += -_gcc=-Wno-parentheses
72 73 CERRWARN += -_gcc=-Wno-uninitialized
73 74 CERRWARN += -_gcc=-Wno-unused-variable
74 75 CERRWARN += -_gcc=-Wno-address
75 76 CERRWARN += -_gcc=-Wno-unused-function
76 77
78 +# not linted
79 +SMATCH=off
80 +
77 81 LDLIBS += -lnsl
78 82 chkey := LDLIBS += -lsldap
79 83 keyserv := LDLIBS += -lmp
80 84 newkey := LDLIBS += -lsldap -lsocket
81 85
82 86 .KEEP_STATE:
83 87
84 88 all: $(PROG)
85 89
86 90 keyserv: $(K_OBJS) $(KEYSERVOBJS)
87 91 $(LINK.c) $(K_OBJS) $(KEYSERVOBJS) -o $@ $(LDLIBS)
88 92 $(POST_PROCESS)
89 93
90 94 keylogout: $(KEYLOGOUTOBJS)
91 95 $(LINK.c) $(KEYLOGOUTOBJS) -o $@ $(LDLIBS)
92 96 $(POST_PROCESS)
93 97
94 98 keylogin: $(KEYLOGINOBJS)
95 99 $(LINK.c) $(KEYLOGINOBJS) -o $@ $(LDLIBS)
96 100 $(POST_PROCESS)
97 101
98 102 chkey: $(CHKEYOBJS) $(CHANGE_OBJS)
99 103 $(LINK.c) $(CHANGE_OBJS) $(CHKEYOBJS) -o $@ $(LDLIBS)
100 104 $(POST_PROCESS)
101 105
102 106 newkey:$(CHANGE_OBJS) $(NEWKEYOBJS) $(OUTSIDE_UTIL_OBJS)
103 107 $(LINK.c) $(CHANGE_OBJS) $(NEWKEYOBJS) $(OUTSIDE_UTIL_OBJS) \
104 108 -o $@ $(LDLIBS)
105 109 $(POST_PROCESS)
106 110
107 111 update: $(UPDATEOBJS)
108 112 $(LINK.c) $(UPDATEOBJS) -o $@ $(LDLIBS)
109 113 $(POST_PROCESS)
110 114
111 115 domainname: $(DOMAINNAMEOBJS)
112 116 $(LINK.c) $(DOMAINNAMEOBJS) -o $@ $(LDLIBS)
113 117 $(POST_PROCESS)
114 118
115 119 selfcheck.o: ../fs.d/nfs/lib/selfcheck.c
116 120 $(COMPILE.c) ../fs.d/nfs/lib/selfcheck.c
117 121
118 122 install: all $(DIRS) $(IBINPROG) $(ISBINPROG) $(ROOTETCDEFAULTFILES) \
119 123 $(ROOTMANIFEST)
120 124
121 125 clean:
122 126 $(RM) $(OBJS) $(OUTSIDE_UTIL_OBJS)
123 127
124 128 lint: lint_SRCS
125 129
126 130 check: $(CHKMANIFEST)
127 131
128 132 key_prot.h : $(ROOT)/usr/include/rpcsvc/key_prot.x
129 133 $(RPCGEN) -h $(ROOT)/usr/include/rpcsvc/key_prot.x > key_prot.h
130 134
131 135 include ../Makefile.targ
↓ open down ↓ |
45 lines elided |
↑ open up ↑ |
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX