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/slave/Makefile
+++ new/usr/src/cmd/krb5/slave/Makefile
1 1 #
2 2 # Copyright 2008 Sun Microsystems, Inc. All rights reserved.
3 3 # Use is subject to license terms.
4 4 #
5 5 # Copyright (c) 2018, Joyent, Inc.
6 6
7 7 PROG1=kprop
8 8 PROG2=kpropd
9 9 PROG3=kprop_script
10 10 PROG=$(PROG1) $(PROG2) $(PROG3)
11 11 MANIFEST= krb5_prop.xml
12 12
13 13 OBJS = \
14 14 kprop.o\
15 15 utils.o\
16 16 kpropd.o \
17 17 kpropd_rpc.o \
18 18 iprop_xdr.o
19 19
20 20 COMMONOBJS= utils.o
21 21 COMMONSRCS= utils.c
22 22 CLIENTOBJS= kprop.o
23 23 CLIENTSRCS= kprop.c
24 24 SERVEROBJS= kpropd.o kpropd_rpc.o
25 25 SERVERSRCS= kpropd.c kpropd_rpc.c
26 26 DERIVED_OBJS= iprop_xdr.o
27 27 DERIVED_SRCS= iprop_xdr.c
28 28 SRCS = $(OBJS:.o=.c)
29 29
30 30 # Definitions needed to rpcgen iprop-related files
31 31 ISRC= iprop.h iprop_xdr.c
32 32 KRB5IPROPDIR= $(SRC)/cmd/krb5/iprop
33 33 CMD= grep -v "usr/src/cmd/krb5/iprop" > $@
34 34
35 35 DEFS = -DHAVE_LIBSOCKET=1 -DHAVE_LIBNSL=1 \
36 36 -DHAVE_COMPILE=1 \
37 37 -DHAVE_STEP=1
38 38
39 39 CLOBBERFILES += $(RSRC)
40 40
41 41 include ../../Makefile.cmd
42 42 include $(SRC)/lib/gss_mechs/mech_krb5/Makefile.mech_krb5
43 43
44 44 ROOTMANIFESTDIR= $(ROOTSVCNETWORKSECURITY)
45 45
46 46 TEXT_DOMAIN = SUNW_OST_OSCMD
47 47 POFILE = kprop.po
48 48 POFILES = generic.po
49 49
50 50 CFLAGS += $(XESS) $(CCOPTS) $(DEFS) $(LOCALINCLUDE)
51 51 CPPFLAGS += -I. \
52 52 -I$(KRB5IPROPDIR) \
↓ open down ↓ |
52 lines elided |
↑ open up ↑ |
53 53 -I$(SRC)/lib/gss_mechs/mech_krb5/include \
54 54 -I$(SRC)/lib/gss_mechs/mech_krb5/include/krb5\
55 55 -I$(SRC)/lib/krb5 \
56 56 -I$(SRC)/lib/krb5/kadm5 \
57 57 -I$(SRC)/uts/common/gssapi/mechs/krb5/include
58 58
59 59 CERRWARN += -_gcc=-Wno-unused-variable
60 60 CERRWARN += -_gcc=-Wno-unused-function
61 61 CERRWARN += -_gcc=-Wno-implicit-function-declaration
62 62 CERRWARN += -_gcc=-Wno-parentheses
63 -CERRWARN += -_gcc=-Wno-uninitialized
63 +CERRWARN += $(CNOWARN_UNINIT)
64 64 CERRWARN += -_gcc=-Wno-unused-value
65 65 CERRWARN += -_gcc=-Wno-address
66 66
67 67 # not linted
68 68 SMATCH=off
69 69
70 70 LDFLAGS += $(KRUNPATH) $(KERBRUNPATH)
71 71 LDLIBS += -lmech_krb5 -lsocket
72 72 $(PROG1) := LDLIBS += -L$(KRB5LIB) -lkadm5srv
73 73 $(PROG2) := LDLIBS += -L$(KRB5LIB) -lnsl -lkdb -lkadm5clnt
74 74
75 75 .KEEP_STATE:
76 76
77 77 all: $(PROG)
78 78
79 79 $(PROG1): $(CLIENTOBJS) $(COMMONOBJS)
80 80 $(LINK.c) $(CLIENTOBJS) $(COMMONOBJS) -o $@ $(DEPLIBS) $(LDFLAGS) $(LDARGS) $(LDLIBS)
81 81 $(POST_PROCESS)
82 82
83 83 $(PROG2): $(SERVEROBJS) $(DERIVED_OBJS) $(COMMONOBJS) $(DEPLIBS)
84 84 $(LINK.c) $(SERVEROBJS) $(DERIVED_OBJS) $(COMMONOBJS) -o $@ $(DEPLIBS) $(LDFLAGS) $(LDARGS) $(LDLIBS)
85 85 $(POST_PROCESS)
86 86
87 87 # Rules to rpcgen-erate derived files from the iprop.x spec file
88 88 iprop.h: $(KRB5IPROPDIR)/iprop.x
89 89 $(RM) $@
90 90 $(RPCGEN) -h $(KRB5IPROPDIR)/iprop.x > $@
91 91
92 92 iprop_xdr.c: iprop.h $(KRB5IPROPDIR)/iprop.x
93 93 $(RM) $@
94 94 $(RPCGEN) -c $(KRB5IPROPDIR)/iprop.x | $(CMD)
95 95
96 96 # Make dependencies explicit so make sees it.
97 97 $(KRB5LIB)/$(PROG3): $(PROG3)
98 98 $(OBJS): iprop.h
99 99
100 100 install: $(KRB5LIBPROG) $(ROOTSVCMETHOD) $(ROOTMANIFEST)
101 101
102 102 check: $(CHKMANIFEST)
103 103
104 104 install_h:
105 105 clean:
106 106 $(RM) $(CLIENTOBJS) $(SERVEROBJS) $(DERIVED_OBJS) $(COMMONOBJS) $(PROG) $(ISRC)
107 107
108 108 lint:
109 109 $(LINT.c) $(CLIENTSRCS) $(COMMONSRCS) $(LDLIBS)
110 110 $(LINT.c) $(SERVERSRCS) $(DERIVED_SRCS) $(COMMONSRCS) $(LDLIBS)
111 111
112 112 include ../../Makefile.targ
113 113
114 114 $(POFILE): $(DERIVED_FILES) .WAIT $(POFILES)
115 115 $(RM) $@
116 116 $(CAT) $(POFILES) > $@
117 117
118 118 generic.po: FRC
119 119 $(RM) messages.po
120 120 $(XGETTEXT) $(XGETFLAGS) `$(GREP) -l gettext *.[ch]`
121 121 $(SED) "/^domain/d" messages.po > $@
122 122 $(RM) messages.po
123 123
124 124 FRC:
↓ open down ↓ |
51 lines elided |
↑ open up ↑ |
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX