Print this page
11528 Makefile.noget can get gone
11529 Use -Wno-maybe-initialized
Split |
Close |
Expand all |
Collapse all |
--- old/usr/src/lib/krb5/kadm5/clnt/Makefile.com
+++ new/usr/src/lib/krb5/kadm5/clnt/Makefile.com
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 LIBRARY= libkadm5clnt.a
28 28 VERS= .1
29 29
30 30 CLNT_OBJS = clnt_policy.o \
31 31 client_rpc.o \
32 32 client_principal.o \
33 33 client_init.o \
34 34 clnt_privs.o \
35 35 clnt_chpass_util.o \
36 36 logger.o \
37 37 changepw.o \
38 38 chpw.o
39 39
40 40 SHARED_OBJS = \
41 41 alt_prof.o \
42 42 chpass_util.o \
43 43 kadm_rpc_xdr.o \
44 44 misc_free.o \
45 45 kadm_host_srv_names.o \
46 46 str_conv.o
47 47
48 48 OBJECTS= $(CLNT_OBJS) $(SHARED_OBJS)
49 49
50 50 ISRCHDR= ../iprop.h
51 51 KRB5IPROPDIR= $(SRC)/cmd/krb5/iprop
52 52
53 53 # include library definitions
54 54 include ../../../Makefile.lib
55 55
56 56 SRCS= $(CLNT_OBJS:%.o=../%.c) \
57 57 $(SHARED_OBJS:%.o=../../%.c)
58 58
59 59 LIBS= $(DYNLIB)
60 60
61 61 include $(SRC)/lib/gss_mechs/mech_krb5/Makefile.mech_krb5
62 62
63 63 POFILE = $(LIBRARY:%.a=%.po)
64 64 POFILES = generic.po
65 65
66 66 #override liblink
67 67 INS.liblink= -$(RM) $@; $(SYMLINK) $(LIBLINKS)$(VERS) $@
68 68
69 69 CPPFLAGS += -I.. -I../.. -I../../.. -I$(SRC)/lib/gss_mechs/mech_krb5/include \
70 70 -I$(SRC)/lib/krb5 \
71 71 -I$(SRC)/lib/gss_mechs/mech_krb5/include/krb5 \
72 72 -I$(SRC)/uts/common/gssapi/ \
73 73 -I$(SRC)/uts/common/gssapi/include/ \
74 74 -I$(SRC)/uts/common/gssapi/mechs/krb5/include \
75 75 -I$(SRC)/lib/gss_mechs/mech_krb5/krb5/os \
76 76 -I$(KRB5IPROPDIR) \
77 77 -DHAVE_STDLIB_H -DUSE_SOLARIS_SHARED_LIBRARIES \
↓ open down ↓ |
77 lines elided |
↑ open up ↑ |
78 78 -DHAVE_LIBSOCKET=1 -DHAVE_LIBNSL=1 -DSETRPCENT_TYPE=void \
79 79 -DENDRPCENT_TYPE=void -DHAVE_SYS_ERRLIST=1 -DNEED_SYS_ERRLIST=1 \
80 80 -DHAVE_SYSLOG_H=1 -DHAVE_OPENLOG=1 -DHAVE_SYSLOG=1 -DHAVE_CLOSELOG=1 \
81 81 -DHAVE_STRFTIME=1 -DHAVE_VSPRINTF=1 -DUSE_KADM5_API_VERSION=2
82 82
83 83 CFLAGS += $(CCVERBOSE) -I..
84 84
85 85 CERRWARN += -_gcc=-Wno-unused-function
86 86 CERRWARN += -_gcc=-Wno-unused-variable
87 87 CERRWARN += -_gcc=-Wno-parentheses
88 -CERRWARN += -_gcc=-Wno-uninitialized
88 +CERRWARN += $(CNOWARN_UNINIT)
89 89
90 90 SMOFF += all_func_returns,indenting,no_if_block
91 91
92 92 LDLIBS += -lc
93 93
94 94 .KEEP_STATE:
95 95
96 96 all: $(LIBS)
97 97
98 98 # Rpcgen-erate iprop.h from the iprop.x spec file
99 99 $(ISRCHDR): $(KRB5IPROPDIR)/iprop.x
100 100 $(RM) $@
101 101 $(RPCGEN) -h $(KRB5IPROPDIR)/iprop.x > $@
102 102
103 103 # Explicitly state the dependancy on iprop.h
104 104 $(LIBS): $(ISRCHDR)
105 105
106 106 CLEANFILES += $(ISRCHDR)
107 107
108 108 lint: lintcheck
109 109
110 110 # include library targets
111 111 include ../../../Makefile.targ
112 112
113 113 pics/%.o: ../../%.c
114 114 $(COMPILE.c) -o $@ $<
115 115 $(POST_PROCESS_O)
116 116
117 117 FRC:
118 118
119 119 generic.po: FRC
120 120 $(RM) messages.po
121 121 $(XGETTEXT) $(XGETFLAGS) `$(GREP) -l gettext ../*.[ch] ../../*.[ch]`
122 122 $(SED) "/^domain/d" messages.po > $@
123 123 $(RM) messages.po
↓ open down ↓ |
25 lines elided |
↑ open up ↑ |
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX