Print this page
10080 smatch Makefile changes for usr/src/cmd
Split |
Close |
Expand all |
Collapse all |
--- old/usr/src/cmd/krb5/kdestroy/Makefile
+++ new/usr/src/cmd/krb5/kdestroy/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= kdestroy
7 8
8 9 OBJS = kdestroy.o krpc_sys.o
9 10
10 11 SRCS = kdestroy.c krpc_sys.c
11 12
12 13 include ../../Makefile.cmd
13 14 include $(SRC)/lib/gss_mechs/mech_krb5/Makefile.mech_krb5
14 15
15 16 CERRWARN += -_gcc=-Wno-implicit-function-declaration
16 17 CERRWARN += -_gcc=-Wno-parentheses
17 18
19 +# not linted
20 +SMATCH=off
21 +
18 22 POFILE = kdestroy.po
19 23 POFILES = generic.po
20 24
21 25 CPPFLAGS += -I../../../lib/gss_mechs/mech_krb5/include \
22 26 -I$(SRC)/uts/common/gssapi/mechs/krb5/include
23 27
24 28
25 29 i386_CPPFLAGS =
26 30 sparc_CPPFLAGS += -D$(MACH)
27 31
28 32 LDFLAGS += $(KRUNPATH)
29 33 LDLIBS += $(KMECHLIB)
30 34
31 35 .KEEP_STATE:
32 36 all: $(PROG)
33 37
34 38 krpc_sys.o: krpc_sys.c
35 39 $(COMPILE.c) -o $@ krpc_sys.c
36 40 $(POST_PROCESS_O)
37 41
38 42 $(PROG): $(OBJS)
39 43 $(LINK.c) $(OBJS) -o $@ $(LDLIBS)
40 44 $(POST_PROCESS)
41 45
42 46 install: $(KRB5PROG)
43 47
44 48 clean:
45 49 $(RM) $(OBJS)
46 50
47 51 lint: lint_SRCS
48 52
49 53 include ../../Makefile.targ
50 54
51 55 $(POFILE): $(DERIVED_FILES) .WAIT $(POFILES)
52 56 $(RM) $@
53 57 $(CAT) $(POFILES) > $@
54 58
55 59 generic.po:
56 60 $(RM) messages.po
57 61 $(XGETTEXT) $(XGETFLAGS) `($(GREP) -l gettext *.[ch] || echo /dev/null)`
58 62 $(SED) "/^domain/d" messages.po > $@
59 63 $(RM) messages.po
60 64
↓ open down ↓ |
33 lines elided |
↑ open up ↑ |
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX