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