Print this page
10080 smatch Makefile changes for usr/src/cmd
Split |
Close |
Expand all |
Collapse all |
--- old/usr/src/cmd/krb5/kadmin/kpasswd/Makefile
+++ new/usr/src/cmd/krb5/kadmin/kpasswd/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= kpasswd
7 8
8 9 OBJS = tty_kpasswd.o kpasswd.o
9 10 SRCS = $(OBJS:.o=.c)
10 11
11 12 CLOBBERFILES += $(TESTPROG)
12 13
13 14 include ../../../Makefile.cmd
14 15 include $(SRC)/lib/gss_mechs/mech_krb5/Makefile.mech_krb5
15 16
16 17 POFILE = $(PROG).po
17 18 POFILES = generic.po
18 19
19 20 #
20 21 # Override $ROOTLIB
21 22 #
22 23 KRB5LIBDIR= $(ROOT)$(KERBLIBDIR)
23 24
24 25 CPPFLAGS += -I$(SRC)/lib/gss_mechs/mech_krb5/include \
25 26 -I$(SRC)/uts/common/gssapi/include/ \
26 27 -I$(SRC)/uts/common/gssapi/mechs/krb5/include \
27 28 -I$(SRC)/lib/krb5 \
↓ open down ↓ |
13 lines elided |
↑ open up ↑ |
28 29 -DHAVE_LIBSOCKET=1 -DHAVE_LIBNSL=1 -DHAVE_UNISTD_H=1 \
29 30 -DHAVE_SYS_TIMEB_H=1 -DHAVE_ALLOCA_H=1 -DHAVE_FTIME=1 \
30 31 -DHAVE_TIMEZONE -DUSE_KADM5_API_VERSION=2
31 32
32 33 COPTFLAG += $(XESS) #-I$(KINCDIR)
33 34
34 35 CERRWARN += -_gcc=-Wno-parentheses
35 36 CERRWARN += -_gcc=-Wno-unused-variable
36 37 CERRWARN += -_gcc=-Wno-unused-function
37 38
39 +# not linted
40 +SMATCH=off
41 +
38 42 LDFLAGS += $(KRUNPATH) $(KERBRUNPATH)
39 43 LDLIBS += -L $(KRB5LIBDIR)
40 44 LDLIBS += $(KMECHLIB) $(KCLNTLIB)
41 45
42 46 .KEEP_STATE:
43 47
44 48 all: $(PROG)
45 49
46 50 $(PROG): $(OBJS)
47 51 $(LINK.c) $(OBJS) -o $@ $(LDLIBS)
48 52 $(POST_PROCESS)
49 53
50 54 install: $(KRB5PROG)
51 55
52 56 clean:
53 57 $(RM) $(OBJS)
54 58
55 59 lint: lint_SRCS
56 60
57 61 include ../../../Makefile.targ
58 62
59 63 $(POFILE): $(DERIVED_FILES) .WAIT $(POFILES)
60 64 $(RM) $@
61 65 $(CAT) $(POFILES) > $@
62 66 $(RM) generic.po
63 67
64 68 generic.po:
65 69 $(RM) messages.po
66 70 $(XGETTEXT) $(XGETFLAGS) `$(GREP) -l gettext *.[ch]`
67 71 $(SED) "/^domain/d" messages.po > $@
68 72 $(RM) messages.po
69 73
↓ open down ↓ |
22 lines elided |
↑ open up ↑ |
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX