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