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/srv/Makefile.com
+++ new/usr/src/lib/krb5/kadm5/srv/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= libkadm5srv.a
28 28 VERS= .1
29 29
30 30 SRV_OBJS = svr_policy.o \
31 31 svr_principal.o \
32 32 server_acl.o \
33 33 server_kdb.o \
34 34 server_misc.o \
35 35 server_init.o \
36 36 server_dict.o \
37 37 svr_iters.o \
38 38 svr_chpass_util.o \
39 39 adb_xdr.o \
40 40 xdr_alloc.o \
41 41 logger.o \
42 42 chgpwd.o
43 43
44 44 SHARED_OBJS = \
45 45 misc_free.o \
46 46 kadm_rpc_xdr.o \
47 47 chpass_util.o \
48 48 alt_prof.o \
49 49 kadm_host_srv_names.o \
50 50 str_conv.o
51 51
52 52 OBJECTS= $(SHARED_OBJS) $(SRV_OBJS)
53 53
54 54 # include library definitions
55 55 include ../../../Makefile.lib
56 56
57 57 SRCS= $(SRV_OBJS:%.o=../%.c) \
58 58 $(SHARED_OBJS:%.o=../../%.c)
59 59
60 60 KRB5LIB= $(ROOT)/usr/lib/krb5
61 61 LIBS= $(DYNLIB)
62 62
63 63
64 64 include $(SRC)/lib/gss_mechs/mech_krb5/Makefile.mech_krb5
65 65
66 66 POFILE = $(LIBRARY:%.a=%.po)
67 67 POFILES = generic.po
68 68
69 69 #override liblink
70 70 INS.liblink= -$(RM) $@; $(SYMLINK) $(LIBLINKS)$(VERS) $@
71 71
72 72 CPPFLAGS += -I.. -I../.. -I../../.. \
73 73 -I$(SRC)/lib/krb5/kdb \
74 74 -I$(SRC)/cmd/krb5/iprop \
75 75 -I$(SRC)/lib/gss_mechs/mech_krb5/include \
76 76 -I$(SRC)/lib/gss_mechs/mech_krb5/include/krb5 \
77 77 -I$(SRC)/uts/common/gssapi/ \
78 78 -I$(SRC)/uts/common/gssapi/include/ \
79 79 -I$(SRC)/uts/common/gssapi/mechs/krb5/include \
80 80 -I$(SRC)/lib/gss_mechs/mech_krb5/krb5/os \
81 81 -DHAVE_STDLIB_H -DUSE_SOLARIS_SHARED_LIBRARIES \
82 82 -DHAVE_LIBSOCKET=1 -DHAVE_LIBNSL=1 -DSETRPCENT_TYPE=void \
83 83 -DENDRPCENT_TYPE=void -DHAVE_SYS_ERRLIST=1 -DNEED_SYS_ERRLIST=1 \
84 84 -DHAVE_SYSLOG_H=1 -DHAVE_OPENLOG=1 -DHAVE_SYSLOG=1 -DHAVE_CLOSELOG=1 \
↓ open down ↓ |
84 lines elided |
↑ open up ↑ |
85 85 -DHAVE_STEP=1 -DHAVE_RE_COMP=1 -DHAVE_RE_EXEC=1 -DHAVE_REGCOMP=1 \
86 86 -DHAVE_REGEXEC=1 -DHAVE_STRFTIME=1 -DHAVE_VSPRINTF=1 \
87 87 -DUSE_KADM5_API_VERSION=2
88 88
89 89 CFLAGS += $(CCVERBOSE) -I..
90 90
91 91 CERRWARN += -_gcc=-Wno-unused-function
92 92 CERRWARN += -_gcc=-Wno-unused-variable
93 93 CERRWARN += -_gcc=-Wno-parentheses
94 94 CERRWARN += -_gcc=-Wno-type-limits
95 -CERRWARN += -_gcc=-Wno-uninitialized
95 +CERRWARN += $(CNOWARN_UNINIT)
96 96
97 97 SMOFF += all_func_returns,indenting
98 98
99 99 .KEEP_STATE:
100 100
101 101 all: $(LIBS)
102 102
103 103 lint: lintcheck
104 104
105 105 # include library targets
106 106 include ../../../Makefile.targ
107 107
108 108 pics/%.o: ../../%.c
109 109 $(COMPILE.c) -o $@ $<
110 110 $(POST_PROCESS_O)
111 111
112 112 FRC:
113 113
114 114 generic.po: FRC
115 115 $(RM) messages.po
116 116 $(XGETTEXT) $(XGETFLAGS) `$(GREP) -l gettext ../*.[ch] ../../*.[ch]`
117 117 $(SED) "/^domain/d" messages.po > $@
118 118 $(RM) messages.po
↓ open down ↓ |
13 lines elided |
↑ open up ↑ |
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX