Print this page
12312 fix unused lib dependencies
Split |
Close |
Expand all |
Collapse all |
--- old/usr/src/cmd/ypcmd/yppasswd/Makefile
+++ new/usr/src/cmd/ypcmd/yppasswd/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
↓ open down ↓ |
13 lines elided |
↑ open up ↑ |
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
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 (c) 1994, 2010, Oracle and/or its affiliates. All rights reserved.
23 23 #
24 -# Copyright (c) 2018, Joyent, Inc.
24 +# Copyright 2020 Joyent, Inc.
25 25
26 26 NETYPPROG = rpc.yppasswdd
27 27 DEFAULTFILES = yppasswdd.dfl
28 28 PROG = $(NETYPPROG)
29 29
30 30 MANIFEST = passwd.xml
31 31
32 32 include ../../Makefile.cmd
33 33
34 34 ROOTMANIFESTDIR = $(ROOTSVCNETWORKNIS)
35 35
36 36 #installed directories
37 37 RPCSVC= $(ROOT)/usr/include/rpcsvc
↓ open down ↓ |
3 lines elided |
↑ open up ↑ |
38 38 NETSVC = $(ROOTLIB)/netsvc
39 39 NETYP = $(NETSVC)/yp
40 40 ROOTDIRS = $(NETSVC) $(NETYP)
41 41
42 42 # include library definitions
43 43 #LDLIBS += -lrpcsvc -lnsl -lcrypt -lintl -lgen
44 44 LDLIBS += -lnsl -lnisdb -lc
45 45 MAPFILES = $(MAPFILE.INT) $(MAPFILE.NGB)
46 46 LDFLAGS += $(MAPFILES:%=-M%)
47 47
48 +ZGUIDANCE = -zguidance=nounused
49 +
48 50 # Pick up includes from library
49 51 CPPFLAGS += -I$(SRC)/lib/libnisdb/yptol
50 52
51 53 # This file is now in the $(SRC)/head/rpcsvc directory.
52 54 #HDRFILE= yppasswd.h
53 55 #IHDRFILE= $(HDRFILE:%=$(RPCSVC)/%)
54 56
55 57 INETYPPROG= $(NETYPPROG:%=$(NETYP)/%)
56 58
57 59 COMMONOBJ = yppasswdxdr.o yplckpwdf.o
58 60 RPCYPPASSWDDOBJ = yppasswdd.o changepasswd.o
59 61
60 62 CERRWARN += -_gcc=-Wno-implicit-function-declaration
61 63 CERRWARN += -_gcc=-Wno-parentheses
62 64 CERRWARN += $(CNOWARN_UNINIT)
63 65
64 66 # not linted
65 67 SMATCH=off
66 68
67 69 #
68 70 # Objects shared between all the major components
69 71 #
70 72 SHAREDOBJ= ../shared/utils.o ../shared/lockmap.o ../shared/ancil.o
71 73
72 74 OBJS = $(RPCYPPASSWDDOBJ) \
73 75 $(COMMONOBJ)
74 76 # $(YPPWCONVOBJ) $(YPPASSMGMTOBJ)
75 77
76 78 SRCS = $(OBJS:%.o=%.c)
77 79
78 80 #conditional assignments
79 81 $(INETSVC) := FILEMODE=555
80 82
81 83 $(ETCDFLTFILE) := FILEMODE=0444
82 84
83 85 #install rules
84 86
85 87 .KEEP_STATE:
86 88
87 89 all: $(PROG)
88 90
89 91 rpc.yppasswdd: $(RPCYPPASSWDDOBJ) $(COMMONOBJ) $(MAPFILES)
90 92 $(LINK.cc) -o $@ $(RPCYPPASSWDDOBJ) \
91 93 $(SHAREDOBJ) $(COMMONOBJ) $(LDLIBS)
92 94 $(POST_PROCESS)
93 95
94 96 install: all $(ROOTDIRS) $(IBINPROG) $(INETYPPROG) $(ROOTETCDEFAULTFILES) \
95 97 $(ROOTMANIFEST)
↓ open down ↓ |
38 lines elided |
↑ open up ↑ |
96 98
97 99 $(ROOTDIRS):
98 100 $(INS.dir)
99 101
100 102 $(NETYP)/%: %
101 103 $(INS.file)
102 104
103 105 clean:
104 106 $(RM) $(OBJS)
105 107
106 -lint: lint_SRCS
107 -
108 108 check: $(CHKMANIFEST)
109 109
110 110 cstyle:
111 111 ${CSTYLE} ${SRCS}
112 112
113 113 # include library targets
114 114 include ../../Makefile.targ
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX