Print this page
10080 smatch Makefile changes for usr/src/cmd
Split |
Close |
Expand all |
Collapse all |
--- old/usr/src/cmd/krb5/kwarn/Makefile
+++ new/usr/src/cmd/krb5/kwarn/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
↓ open down ↓ |
15 lines elided |
↑ open up ↑ |
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 #
23 23 # Copyright 2008 Sun Microsystems, Inc. All rights reserved.
24 24 # Use is subject to license terms.
25 25 #
26 +# Copyright (c) 2018, Joyent, Inc.
26 27
27 28 TESTPROG = kwarndtest
28 29
29 30 PROG= ktkt_warnd
30 31 MANIFEST= ktkt_warn.xml
31 32
32 33 KWARNDOBJS = kwarnd.o kwarnd_svc.o kwarnd_proc.o kwarnd_generic.o kwarnd_send.o
33 34 KWARNTOBJS = kwarndtest.o
34 35
35 36 G_OBJS = kwarnd_xdr.o
36 37
37 38 OBJS = $(KWARNDOBJS) $(KWARNTOBJS) $(G_OBJS)
38 39 SRCS = $(OBJS:.o=.c)
39 40 RSRC = kwarnd_xdr.c kwarnd_svc.c kwarnd.h
40 41
41 42 CLOBBERFILES += $(TESTPROG)
42 43
43 44 include ../../Makefile.cmd
44 45 include $(SRC)/lib/gss_mechs/mech_krb5/Makefile.mech_krb5
45 46
46 47 ROOTMANIFESTDIR= $(ROOTSVCNETWORKSECURITY)
47 48
48 49 POFILE = $(PROG).po
↓ open down ↓ |
13 lines elided |
↑ open up ↑ |
49 50 POFILES = generic.po
50 51
51 52 COPTFLAG += $(XESS) #-I$(KINCDIR)
52 53 CPPFLAGS += -D_REENTRANT
53 54
54 55 CERRWARN += -_gcc=-Wno-unused-variable
55 56 CERRWARN += -_gcc=-Wno-unused-function
56 57 CERRWARN += -_gcc=-Wno-implicit-function-declaration
57 58 CERRWARN += -_gcc=-Wno-parentheses
58 59
60 +# not linted
61 +SMATCH=off
62 +
59 63 CPPFLAGS += -I../../lib/gss_mechs/mech_krb5/include \
60 64 -I$(SRC)/lib/gss_mechs/mech_krb5 \
61 65 -I$(SRC)/lib/gss_mechs/mech_krb5/include \
62 66 -I$(SRC)/uts/common/gssapi/mechs/krb5/include
63 67
64 68 ktkt_warnd := MAPFILES = $(MAPFILE.INT) $(MAPFILE.NGB)
65 69 ktkt_warnd := LDFLAGS += $(KRUNPATH) $(MAPFILES:%=-M%)
66 70
67 71 LDFLAGS += $(KRUNPATH)
68 72 LDLIBS += $(KMECHLIB) -lnsl
69 73
70 74 .KEEP_STATE:
71 75
72 76 all: $(PROG) $(TESTPROG)
73 77
74 78 $(PROG): $(G_OBJS) $(KWARNDOBJS) $$(MAPFILES)
75 79 $(LINK.c) $(KWARNDOBJS) $(G_OBJS) -o $@ $(LDLIBS)
76 80 $(POST_PROCESS)
77 81
78 82 # the client entry points (kwarn_*_warning) are now avail in mech_krb5.so
79 83 $(TESTPROG): $(KWARNTOBJS)
80 84 $(LINK.c) $(KWARNTOBJS) -o $@ $(LDLIBS)
81 85 $(POST_PROCESS)
82 86
83 87 # Rules to generate derived rpcgen files from kwarnd.x spec file.
84 88
85 89 kwarnd.h: kwarnd.x
86 90 $(RM) $@
87 91 $(RPCGEN) -M -h kwarnd.x > $@
88 92
89 93 kwarnd_svc.c: kwarnd.x
90 94 $(RM) $@
91 95 $(RPCGEN) -M -m kwarnd.x > $@
92 96
93 97 kwarnd_xdr.c: kwarnd.x
94 98 $(RM) $@
95 99 $(RPCGEN) -M -c kwarnd.x > $@
96 100
97 101 $(OBJS): kwarnd.h
98 102
99 103 # note that nightly depends on having all of the derived
100 104 # .c files built here on 'make install', even though this
101 105 # module doesn't use all of those files.
102 106 install: $(KRB5LIBPROG) $(RSRC) $(ROOTMANIFEST)
103 107
104 108 check: $(CHKMANIFEST)
105 109
106 110 clean:
107 111 $(RM) $(OBJS) $(RSRC)
108 112
109 113 lint: lint_SRCS
110 114
111 115 include ../../Makefile.targ
112 116
113 117 #additional dependencies
114 118
115 119 $(LIBRARY) : $(OBJS)
116 120 $(DYNLIB) : $(PICS)
117 121
118 122 FRC:
119 123
120 124 $(POFILE): $(DERIVED_FILES) .WAIT $(POFILES)
121 125 $(RM) $@
122 126 $(CAT) $(POFILES) > $@
123 127
124 128 generic.po: FRC
125 129 $(RM) messages.po
126 130 $(XGETTEXT) $(XGETFLAGS) `$(GREP) -l gettext *.[ch]`
127 131 $(SED) "/^domain/d" messages.po > $@
128 132 $(RM) messages.po
↓ open down ↓ |
60 lines elided |
↑ open up ↑ |
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX