Print this page
10080 smatch Makefile changes for usr/src/cmd
Split |
Close |
Expand all |
Collapse all |
--- old/usr/src/cmd/krb5/krb5kdc/Makefile
+++ new/usr/src/cmd/krb5/krb5kdc/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= krb5kdc
7 8 MANIFEST= krb5kdc.xml
8 9
9 10 OBJS = \
10 11 dispatch.o\
11 12 do_as_req.o\
12 13 do_tgs_req.o\
13 14 extern.o\
14 15 kdc_preauth.o\
15 16 kdc_util.o\
16 17 main.o\
17 18 network.o\
18 19 policy.o\
19 20 replay.o \
20 21 sock2p.o
21 22
22 23 SRCS = $(OBJS:.o=.c)
23 24
24 25 DEFS = -DHAVE_LIBSOCKET=1 -DHAVE_LIBNSL=1 \
25 26 -DHAVE_SYSLOG_H=1 -DHAVE_STDARG_H=1 \
26 27 -DHAVE_SYS_SELECT_H=1 -DHAVE_OPENLOG=1 \
27 28 -DHAVE_SYSLOG=1 -DHAVE_CLOSELOG=1 -DHAVE_STRFTIME=1\
28 29 -DHAVE_VSPRINTF=1 -DHAVE_COMPILE=1 -DHAVE_STEP=1 \
29 30 -DHAVE_NETINET_IN_H=1 -DHAVE_INET_NTOP=1 \
30 31 -DHAVE_SYS_SOCKIO_H=1 -DHAVE_SYS_SELECT_H=1
31 32
32 33 CLOBBERFILES += $(RSRC)
33 34
34 35 include ../../Makefile.cmd
35 36 include $(SRC)/lib/gss_mechs/mech_krb5/Makefile.mech_krb5
36 37
37 38 POFILE = $(PROG).po
38 39 POFILES = generic.po
39 40
40 41 ROOTMANIFESTDIR= $(ROOTSVCNETWORKSECURITY)
41 42
42 43 CFLAGS += $(CCOPTS) $(DEFS) $(LOCALINCLUDE)
43 44 # The SET macros in network.c will be mis-optimized if GCC believes it
44 45 # may rely on undefined signed overflow behaviour.
45 46 CFLAGS += -_gcc=-fno-strict-overflow
46 47
47 48 CPPFLAGS += \
48 49 -I$(SRC)/lib/gss_mechs/mech_krb5/include \
↓ open down ↓ |
34 lines elided |
↑ open up ↑ |
49 50 -I$(SRC)/lib/gss_mechs/mech_krb5/include/krb5\
50 51 -I$(SRC)/uts/common/gssapi/mechs/krb5/include \
51 52 -DHAVE_SYSLOG_H=1
52 53
53 54 CERRWARN += -_gcc=-Wno-unused-variable
54 55 CERRWARN += -_gcc=-Wno-unused-function
55 56 CERRWARN += -_gcc=-Wno-type-limits
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 LDFLAGS += $(KRUNPATH) $(KERBRUNPATH)
60 64 LDLIBS += -L$(ROOT_KLIBDIR) -L$(KRB5LIB) \
61 65 -lmech_krb5 -lkdb -lkadm5srv -lnsl -lsocket -lbsm -lc
62 66
63 67 .KEEP_STATE:
64 68
65 69 all: $(PROG)
66 70
67 71 $(PROG): $(OBJS)
68 72 $(LINK.c) $(OBJS) -o $@ $(LDLIBS)
69 73 $(POST_PROCESS)
70 74
71 75 $(KRB5LIBPROG):= FILEMODE = 500
72 76
73 77 install: $(KRB5LIBPROG) $(ROOTSVCMETHOD) $(ROOTMANIFEST)
74 78
75 79 check: $(CHKMANIFEST)
76 80
77 81 clean:
78 82 $(RM) $(OBJS)
79 83
80 84 lint: lint_SRCS
81 85
82 86 include ../../Makefile.targ
83 87
84 88 $(POFILE): $(DERIVED_FILES) .WAIT $(POFILES)
85 89 $(RM) $@
86 90 $(CAT) $(POFILES) > $@
87 91
88 92 generic.po: FRC
89 93 $(RM) messages.po
90 94 $(XGETTEXT) $(XGETFLAGS) `$(GREP) -l gettext *.[ch]`
91 95 $(SED) "/^domain/d" messages.po > $@
92 96 $(RM) messages.po
93 97
94 98 FRC:
↓ open down ↓ |
26 lines elided |
↑ open up ↑ |
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX