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