Print this page
12312 fix unused lib dependencies
Split |
Close |
Expand all |
Collapse all |
--- old/usr/src/cmd/krb5/kwarn/Makefile
+++ new/usr/src/cmd/krb5/kwarn/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.
15 15 # If applicable, add the following below this CDDL HEADER, with the
↓ open down ↓ |
15 lines elided |
↑ open up ↑ |
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 #
23 23 # Copyright 2008 Sun Microsystems, Inc. All rights reserved.
24 24 # Use is subject to license terms.
25 25 #
26 -# Copyright (c) 2018, Joyent, Inc.
26 +# Copyright 2020 Joyent, Inc.
27 27
28 28 TESTPROG = kwarndtest
29 29
30 30 PROG= ktkt_warnd
31 31 MANIFEST= ktkt_warn.xml
32 32
33 33 KWARNDOBJS = kwarnd.o kwarnd_svc.o kwarnd_proc.o kwarnd_generic.o kwarnd_send.o
34 34 KWARNTOBJS = kwarndtest.o
35 35
36 36 G_OBJS = kwarnd_xdr.o
37 37
38 38 OBJS = $(KWARNDOBJS) $(KWARNTOBJS) $(G_OBJS)
39 39 SRCS = $(OBJS:.o=.c)
40 40 RSRC = kwarnd_xdr.c kwarnd_svc.c kwarnd.h
41 41
42 42 CLOBBERFILES += $(TESTPROG)
43 43
44 44 include ../../Makefile.cmd
45 45 include $(SRC)/lib/gss_mechs/mech_krb5/Makefile.mech_krb5
46 46
47 47 ROOTMANIFESTDIR= $(ROOTSVCNETWORKSECURITY)
48 48
49 49 POFILE = $(PROG).po
50 50 POFILES = generic.po
51 51
52 52 COPTFLAG += $(XESS) #-I$(KINCDIR)
53 53 CPPFLAGS += -D_REENTRANT
54 54
55 55 CERRWARN += -_gcc=-Wno-unused-variable
56 56 CERRWARN += -_gcc=-Wno-unused-function
57 57 CERRWARN += -_gcc=-Wno-implicit-function-declaration
58 58 CERRWARN += -_gcc=-Wno-parentheses
59 59
↓ open down ↓ |
23 lines elided |
↑ open up ↑ |
60 60 # not linted
61 61 SMATCH=off
62 62
63 63 CPPFLAGS += -I../../lib/gss_mechs/mech_krb5/include \
64 64 -I$(SRC)/lib/gss_mechs/mech_krb5 \
65 65 -I$(SRC)/lib/gss_mechs/mech_krb5/include \
66 66 -I$(SRC)/uts/common/gssapi/mechs/krb5/include
67 67
68 68 ktkt_warnd := MAPFILES = $(MAPFILE.INT) $(MAPFILE.NGB)
69 69 ktkt_warnd := LDFLAGS += $(KRUNPATH) $(MAPFILES:%=-M%)
70 +ktkt_warnd := LDLIBS += -lnsl
70 71
71 72 LDFLAGS += $(KRUNPATH)
72 -LDLIBS += $(KMECHLIB) -lnsl
73 +LDLIBS += $(KMECHLIB)
73 74
74 75 .KEEP_STATE:
75 76
76 77 all: $(PROG) $(TESTPROG)
77 78
78 79 $(PROG): $(G_OBJS) $(KWARNDOBJS) $$(MAPFILES)
79 80 $(LINK.c) $(KWARNDOBJS) $(G_OBJS) -o $@ $(LDLIBS)
80 81 $(POST_PROCESS)
81 82
82 83 # the client entry points (kwarn_*_warning) are now avail in mech_krb5.so
83 84 $(TESTPROG): $(KWARNTOBJS)
84 85 $(LINK.c) $(KWARNTOBJS) -o $@ $(LDLIBS)
85 86 $(POST_PROCESS)
86 87
87 88 # Rules to generate derived rpcgen files from kwarnd.x spec file.
88 89
89 90 kwarnd.h: kwarnd.x
90 91 $(RM) $@
91 92 $(RPCGEN) -M -h kwarnd.x > $@
92 93
93 94 kwarnd_svc.c: kwarnd.x
94 95 $(RM) $@
95 96 $(RPCGEN) -M -m kwarnd.x > $@
96 97
97 98 kwarnd_xdr.c: kwarnd.x
98 99 $(RM) $@
99 100 $(RPCGEN) -M -c kwarnd.x > $@
100 101
101 102 $(OBJS): kwarnd.h
102 103
103 104 # note that nightly depends on having all of the derived
104 105 # .c files built here on 'make install', even though this
105 106 # module doesn't use all of those files.
106 107 install: $(KRB5LIBPROG) $(RSRC) $(ROOTMANIFEST)
107 108
108 109 check: $(CHKMANIFEST)
109 110
110 111 clean:
111 112 $(RM) $(OBJS) $(RSRC)
112 113
113 114 lint: lint_SRCS
114 115
115 116 include ../../Makefile.targ
116 117
117 118 #additional dependencies
118 119
119 120 $(LIBRARY) : $(OBJS)
120 121 $(DYNLIB) : $(PICS)
121 122
122 123 FRC:
123 124
124 125 $(POFILE): $(DERIVED_FILES) .WAIT $(POFILES)
125 126 $(RM) $@
126 127 $(CAT) $(POFILES) > $@
127 128
128 129 generic.po: FRC
129 130 $(RM) messages.po
130 131 $(XGETTEXT) $(XGETFLAGS) `$(GREP) -l gettext *.[ch]`
131 132 $(SED) "/^domain/d" messages.po > $@
132 133 $(RM) messages.po
↓ open down ↓ |
50 lines elided |
↑ open up ↑ |
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX