Print this page
10080 smatch Makefile changes for usr/src/cmd
Split |
Close |
Expand all |
Collapse all |
--- old/usr/src/cmd/krb5/ldap_util/Makefile
+++ new/usr/src/cmd/krb5/ldap_util/Makefile
1 1 #
2 2 # CDDL HEADER START
3 3 #
4 4 # The contents of this file are subject to the terms of the
5 5 # Common Development and Distribution License (the "License").
6 6 # You may not use this file except in compliance with the License.
7 7 #
8 8 # You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
9 9 # or http://www.opensolaris.org/os/licensing.
10 10 # See the License for the specific language governing permissions
11 11 # and limitations under the License.
12 12 #
13 13 # When distributing Covered Code, include this CDDL HEADER in each
14 14 # file and include the License file at usr/src/OPENSOLARIS.LICENSE.
↓ open down ↓ |
14 lines elided |
↑ open up ↑ |
15 15 # If applicable, add the following below this CDDL HEADER, with the
16 16 # fields enclosed by brackets "[]" replaced with your own identifying
17 17 # information: Portions Copyright [yyyy] [name of copyright owner]
18 18 #
19 19 # CDDL HEADER END
20 20 #
21 21 #
22 22 # Copyright 2008 Sun Microsystems, Inc. All rights reserved.
23 23 # Use is subject to license terms.
24 24 #
25 +# Copyright (c) 2018, Joyent, Inc.
25 26
26 27 PROG= kdb5_ldap_util
27 28
28 29 OBJS = \
29 30 kdb5_ldap_list.o \
30 31 kdb5_ldap_policy.o \
31 32 kdb5_ldap_realm.o \
32 33 kdb5_ldap_services.o \
33 34 kdb5_ldap_util.o
34 35
35 36 GETDATE = $(SRC)/cmd/krb5/kadmin/cli/getdate.o
36 37
37 38 SRCS = $(OBJS:.o=.c)
38 39
39 40 DEFS = -DHAVE_LIBSOCKET=1 -DHAVE_LIBNSL=1 -DHAVE_PWD_H=1 -DHAVE_COMPILE=1 -DHAVE_STEP=1
40 41
41 42 include $(SRC)/cmd/Makefile.cmd
42 43 include $(SRC)/lib/gss_mechs/mech_krb5/Makefile.mech_krb5
43 44
44 45 TEXT_DOMAIN = SUNW_OST_OSCMD
45 46 POFILE = kdb5_ldap_util.po
46 47 POFILES = generic.po
47 48
48 49 DEFS = -DHAVE_PWD_H -DUSE_KADM5_API_VERSION=2
49 50
50 51 CPPFLAGS += \
51 52 -I$(SRC)/lib/gss_mechs/mech_krb5 \
52 53 -I$(SRC)/lib/gss_mechs/mech_krb5/include \
53 54 -I$(SRC)/lib/gss_mechs/mech_krb5/include/krb5 \
54 55 -I$(SRC)/lib/krb5 \
55 56 -I$(SRC)/lib/krb5/kdb \
56 57 -I$(SRC)/lib/krb5/plugins/kdb/ldap/libkdb_ldap \
57 58 -I$(SRC)/cmd/krb5/kadmin/cli \
↓ open down ↓ |
23 lines elided |
↑ open up ↑ |
58 59 -I$(SRC)/uts/common/gssapi/mechs/krb5/include \
59 60 -I$(SRC)/uts/common/gssapi/mechs/krb5/include/krb5 \
60 61 -I../kwarn \
61 62 $(DEFS)
62 63
63 64 CERRWARN += -_gcc=-Wno-unused-variable
64 65 CERRWARN += -_gcc=-Wno-unused-label
65 66 CERRWARN += -_gcc=-Wno-unused-function
66 67 CERRWARN += -_gcc=-Wno-implicit-function-declaration
67 68
69 +# not linted
70 +SMATCH=off
71 +
68 72 LDFLAGS += $(KRUNPATH) $(KERBRUNPATH)
69 73 LDLIBS += -L $(ROOT_KLIBDIR) -L $(KRB5LIB) -lkadm5srv -lkdb -lkdb_ldap \
70 74 -lmech_krb5
71 75
72 76 .KEEP_STATE:
73 77
74 78 all: $(PROG)
75 79
76 80 $(PROG): $(OBJS) $(GETDATE)
77 81 $(LINK.c) $(OBJS) $(GETDATE) -o $@ $(LDLIBS)
78 82 $(POST_PROCESS)
79 83
80 84 install: $(KRB5SBINPROG)
81 85
82 86 clean:
83 87 $(RM) $(OBJS)
84 88
85 89 lint: lint_SRCS
86 90
87 91 include $(SRC)/cmd/Makefile.targ
88 92
89 93 $(POFILE): $(DERIVED_FILES) .WAIT $(POFILES)
90 94 $(RM) $@
91 95 $(CAT) $(POFILES) > $@
92 96
93 97 generic.po:
94 98 $(RM) messages.po
95 99 $(XGETTEXT) $(XGETFLAGS) `($(GREP) -l gettext *.[ch] || echo /dev/null)`
96 100 $(SED) "/^domain/d" messages.po > $@
97 101 $(RM) messages.po
↓ open down ↓ |
20 lines elided |
↑ open up ↑ |
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX