Print this page
11528 Makefile.noget can get gone
11529 Use -Wno-maybe-initialized
Split |
Close |
Expand all |
Collapse all |
--- old/usr/src/cmd/krb5/kadmin/kclient/Makefile
+++ new/usr/src/cmd/krb5/kadmin/kclient/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 # Copyright (c) 2003, 2010, Oracle and/or its affiliates. All rights reserved.
22 22 #
23 23 # Makefile for Kerberos client-install utility.
24 24 #
25 25 # Copyright (c) 2018, Joyent, Inc.
26 26
27 27 PROG= ksetpw \
28 28 kdyndns \
29 29 ksmb \
30 30 kconf
31 31
32 32 SHFILES= kclient
33 33 SECFILES= pam_krb5_first \
34 34 pam_krb5_only \
35 35 pam_krb5_optional
36 36 CLOBBERFILES += $(SHFILES)
37 37
38 38 KRB5SBINSHFILES=$(SHFILES:%=$(KRB5SBIN)/%)
39 39
40 40 USRLIBSEC= $(ROOT)/usr/lib/security
41 41 SEC= $(SECFILES:%=$(USRLIBSEC)/%)
42 42 $(SEC):= FILEMODE = $(LIBFILEMODE)
43 43
44 44 KS_OBJS= ksetpw.o
45 45 KD_OBJS= kdyndns.o
46 46 KSMB_OBJS= ksmb.o
47 47 KC_OBJS= kconf.o
48 48
49 49 OBJS= $(KS_OBJS) $(KD_OBJS) $(KSMB_OBJS) $(KC_OBJS)
50 50
51 51 SSRCS= kclient.sh
52 52 SRCS= $(OBJS:%.o=%.c)
53 53
↓ open down ↓ |
53 lines elided |
↑ open up ↑ |
54 54 include ../../../Makefile.cmd
55 55 include $(SRC)/lib/gss_mechs/mech_krb5/Makefile.mech_krb5
56 56
57 57 POFILE= $(SSRCS:%.sh=%.po)
58 58
59 59 CPPFLAGS += -I$(SRC)/uts/common/gssapi/include \
60 60 -I$(SRC)/lib/krb5 -I$(SRC)/lib/gss_mechs/mech_krb5/include \
61 61 -I$(SRC)/uts/common/gssapi/include \
62 62 -I$(SRC)/uts/common/gssapi/mechs/krb5/include
63 63
64 -CERRWARN += -_gcc=-Wno-uninitialized
64 +CERRWARN += $(CNOWARN_UNINIT)
65 65 CERRWARN += -_gcc=-Wno-parentheses
66 66 CERRWARN += -_gcc=-Wno-unused-function
67 67
68 68 # not linted
69 69 SMATCH=off
70 70
71 71 ksetpw:= LDFLAGS += $(KRUNPATH)
72 72 kdyndns:= LDFLAGS += -R/usr/lib/smbsrv
73 73 ksmb:= LDFLAGS += -R/usr/lib/smbsrv
74 74 kconf:= LDFLAGS += $(KRUNPATH)
75 75
76 76 KS_LDLIBS = $(LDLIBS) $(KMECHLIB)
77 77 KD_LDLIBS = $(LDLIBS) -L$(ROOT)/usr/lib/smbsrv -lsmbns
78 78 KSMB_LDLIBS = $(LDLIBS) -L$(ROOT)/usr/lib/smbsrv -lsmb
79 79 KC_LDLIBS = $(LDLIBS) $(KMECHLIB)
80 80
81 81 .KEEP_STATE:
82 82
83 83 all: $(PROG) $(SHFILES) $(SEC)
84 84
85 85 install: all $(KRB5SBIN) $(KRB5SBINSHFILES) $(KRB5LIBSHFILES) $(KRB5LIBPROG)
86 86
87 87 kdyndns: $(KD_OBJS)
88 88 $(LINK.c) $(KD_OBJS) -o $@ $(KD_LDLIBS)
89 89 $(POST_PROCESS)
90 90
91 91 ksmb: $(KSMB_OBJS)
92 92 $(LINK.c) $(KSMB_OBJS) -o $@ $(KSMB_LDLIBS)
93 93 $(POST_PROCESS)
94 94
95 95 ksetpw: $(KS_OBJS)
96 96 $(LINK.c) $(KS_OBJS) -o $@ $(KS_LDLIBS)
97 97 $(POST_PROCESS)
98 98
99 99 kconf: $(KC_OBJS)
100 100 $(LINK.c) $(KC_OBJS) -o $@ $(KC_LDLIBS)
101 101 $(POST_PROCESS)
102 102
103 103 $(KRB5SBIN):
104 104 $(INS.dir)
105 105
106 106 $(USRLIBSEC)/%: %
107 107 $(INS.file)
108 108
109 109 clean:
110 110 $(RM) $(OBJS)
111 111
112 112 lint: lint_SRCS
113 113
114 114 include ../../../Makefile.targ
↓ open down ↓ |
40 lines elided |
↑ open up ↑ |
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX