Print this page
10080 smatch Makefile changes for usr/src/cmd
Split |
Close |
Expand all |
Collapse all |
--- old/usr/src/cmd/krb5/kadmin/dbutil/Makefile
+++ new/usr/src/cmd/krb5/kadmin/dbutil/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 PROG= kdb5_util
7 8
8 9 OBJS = kdb5_util.o \
9 10 kdb5_create.o kadm5_create.o string_table.o kdb5_stash.o \
10 11 kdb5_destroy.o ovload.o strtok.o dump.o
11 12
12 13 SRCS = $(OBJS:.o=.c)
13 14
14 15 CLOBBERFILES += $(TESTPROG)
15 16
16 17 ISRCHDR= iprop.h
17 18 KRB5IPROPDIR= $(SRC)/cmd/krb5/iprop
18 19
19 20 include ../../../Makefile.cmd
20 21 include $(SRC)/lib/gss_mechs/mech_krb5/Makefile.mech_krb5
21 22
22 23 POFILE = $(PROG).po
23 24 POFILES = generic.po
24 25
25 26 CPPFLAGS += -I. -I$(SRC)/lib/gss_mechs/mech_krb5/include/kerberosIV \
26 27 -I$(SRC)/lib/gss_mechs/mech_krb5/include \
27 28 -I$(SRC)/lib/gss_mechs/mech_krb5/include/krb5 \
28 29 -I$(SRC)/lib/krb5 \
29 30 -I$(SRC)/uts/common/gssapi/include \
30 31 -I$(SRC)/uts/common/gssapi/mechs/krb5/include \
31 32 -I$(KRB5IPROPDIR) \
32 33 -DHAVE_LIBSOCKET=1 -DHAVE_LIBNSL=1 -DHAVE_GETCWD=1 \
↓ open down ↓ |
18 lines elided |
↑ open up ↑ |
33 34 -DHAVE_STRSTR=1 -DHAVE_COMPILE=1 -DHAVE_STEP=1 \
34 35 -DHAVE_KRB_DB_H=1 -DHAVE_KDC_H=1 -DKDB4_DISABLE \
35 36 -DUSE_KADM5_API_VERSION=2
36 37 COPTFLAG += $(XESS) #-I$(KINCDIR)
37 38
38 39 CERRWARN += -_gcc=-Wno-parentheses
39 40 CERRWARN += -_gcc=-Wno-unused-variable
40 41 CERRWARN += -_gcc=-Wno-unused-function
41 42 CERRWARN += -_gcc=-Wno-implicit-function-declaration
42 43
44 +# not linted
45 +SMATCH=off
46 +
43 47 LDFLAGS += $(KRUNPATH) $(KERBRUNPATH)
44 48 LDLIBS += -L $(ROOT_KLIBDIR) -L $(KRB5LIB) -lkadm5srv -lkdb \
45 49 -lmech_krb5 -lnsl
46 50
47 51 .KEEP_STATE:
48 52
49 53 all: $(PROG)
50 54
51 55 # Rpcgen-erate iprop.h from the iprop.x spec file
52 56 $(ISRCHDR): $(KRB5IPROPDIR)/iprop.x
53 57 $(RM) $@
54 58 $(RPCGEN) -h $(KRB5IPROPDIR)/iprop.x > $@
55 59
56 60 # Explicitly state the dependency on iprop.h
57 61 $(OBJS): $(ISRCHDR)
58 62
59 63 $(PROG): $(OBJS)
60 64 $(LINK.c) $(OBJS) -o $@ $(LDLIBS)
61 65 $(POST_PROCESS)
62 66
63 67 install: $(KRB5SBINPROG)
64 68
65 69 clean:
66 70 $(RM) $(OBJS) $(ISRCHDR)
67 71
68 72 lint: lint_SRCS
69 73
70 74 include ../../../Makefile.targ
71 75
72 76 $(POFILE): $(DERIVED_FILES) .WAIT $(POFILES)
73 77 $(RM) $@
74 78 $(CAT) $(POFILES) > $@
75 79
76 80 generic.po: FRC
77 81 $(RM) messages.po
78 82 $(XGETTEXT) $(XGETFLAGS) `$(GREP) -l gettext *.[ch]`
79 83 $(SED) "/^domain/d" messages.po > $@
80 84 $(RM) messages.po
81 85
82 86 FRC:
↓ open down ↓ |
30 lines elided |
↑ open up ↑ |
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX