Print this page
10080 smatch Makefile changes for usr/src/cmd
Split |
Close |
Expand all |
Collapse all |
--- old/usr/src/cmd/krb5/kadmin/server/Makefile
+++ new/usr/src/cmd/krb5/kadmin/server/Makefile
1 1 #
2 2 # Copyright 2009 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= kadmind
7 8 MANIFEST= kadmin.xml
8 9
9 10 OBJS = kadm_rpc_svc.o server_stubs.o ovsec_kadmd.o misc.o server_glue_v1.o \
10 11 ipropd_svc.o
11 12
12 13 DERIVED_OBJS= iprop_xdr.o
13 14
14 15 SRCS= $(OBJS:.o=.c)
15 16 SRCS+= $(DERIVED_OBJS:.o=.c)
16 17
17 18 # Definitions needed to rpcgen iprop-related files
18 19 ISRC= iprop.h iprop_xdr.c
19 20 KRB5IPROPDIR= $(SRC)/cmd/krb5/iprop
20 21 CMD= grep -v "usr/src/cmd/krb5/iprop" > $@
21 22
22 23 CLOBBERFILES += $(TESTPROG)
23 24
24 25 include ../../../Makefile.cmd
25 26 include $(SRC)/lib/gss_mechs/mech_krb5/Makefile.mech_krb5
26 27
27 28 POFILE = $(PROG).po
28 29 POFILES = generic.po
29 30
30 31 ROOTMANIFESTDIR= $(ROOTSVCNETWORKSECURITY)
31 32
32 33 DEFS = -DHAVE_LIBSOCKET=1 -DHAVE_LIBNSL=1 -DHAVE_COMPILE=1 -DHAVE_STEP=1 -DKRB5_KRB4_COMPAT
33 34
34 35 CPPFLAGS += -I. -I$(SRC)/uts/common/gssapi/mechs/krb5/include \
35 36 -I$(SRC)/uts/common/gssapi \
36 37 -I$(SRC)/lib/krb5 \
37 38 -I$(SRC)/lib/krb5/kadm5 \
38 39 -I$(SRC)/lib/krb5/kadm5/srv \
39 40 -I$(SRC)/lib/gss_mechs/mech_krb5/include \
↓ open down ↓ |
25 lines elided |
↑ open up ↑ |
40 41 -I$(KRB5IPROPDIR) \
41 42 -I$(SRC)/uts/common/gssapi/include/ $(DEFS)
42 43
43 44 COPTFLAG += $(XESS) #-I$(KINCDIR)
44 45
45 46 CERRWARN += -_gcc=-Wno-implicit-function-declaration
46 47 CERRWARN += -_gcc=-Wno-unused-variable
47 48 CERRWARN += -_gcc=-Wno-parentheses
48 49 CERRWARN += -_gcc=-Wno-unused-function
49 50
51 +# not linted
52 +SMATCH=off
53 +
50 54 LDFLAGS += $(KRUNPATH) $(KERBRUNPATH)
51 55 LDLIBS += -lgss -L$(KRB5LIB) \
52 56 -lmech_krb5 -lkadm5srv -lkdb -lnsl -lresolv -lbsm -lpam -lsocket
53 57
54 58 .KEEP_STATE:
55 59
56 60 all: $(PROG)
57 61
58 62 $(PROG): $(OBJS) $(DERIVED_OBJS)
59 63 $(LINK.c) $(OBJS) $(DERIVED_OBJS) -o $@ $(LDLIBS)
60 64 $(POST_PROCESS)
61 65
62 66 # Rules to rpcgen-erate derived files from the iprop.x spec file
63 67 iprop.h: $(KRB5IPROPDIR)/iprop.x
64 68 $(RM) $@
65 69 $(RPCGEN) -h $(KRB5IPROPDIR)/iprop.x > $@
66 70
67 71 iprop_xdr.c: iprop.h $(KRB5IPROPDIR)/iprop.x
68 72 $(RM) $@
69 73 $(RPCGEN) -c $(KRB5IPROPDIR)/iprop.x | $(CMD)
70 74
71 75 # Explicitly state the dependancy on iprop.h
72 76 $(OBJS): iprop.h
73 77
74 78 $(KRB5LIBPROG):= FILEMODE = 0500
75 79
76 80 install: $(KRB5LIBPROG) $(ROOTSVCMETHOD) $(ROOTMANIFEST)
77 81
78 82 check: $(CHKMANIFEST)
79 83
80 84 clean:
81 85 $(RM) $(OBJS) $(DERIVED_OBJS) $(ISRC)
82 86
83 87 lint: lint_SRCS
84 88
85 89 include ../../../Makefile.targ
86 90
87 91 $(POFILE): $(DERIVED_FILES) .WAIT $(POFILES)
88 92 $(RM) $@
89 93 $(CAT) $(POFILES) > $@
90 94
91 95 generic.po: FRC
92 96 $(RM) messages.po
93 97 $(XGETTEXT) $(XGETFLAGS) `$(GREP) -l gettext *.[ch]`
94 98 $(SED) "/^domain/d" messages.po > $@
95 99 $(RM) messages.po
96 100
97 101 FRC:
↓ open down ↓ |
38 lines elided |
↑ open up ↑ |
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX