Print this page
10080 smatch Makefile changes for usr/src/cmd
Split |
Close |
Expand all |
Collapse all |
--- old/usr/src/cmd/fs.d/nfs/mount/Makefile
+++ new/usr/src/cmd/fs.d/nfs/mount/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.
↓ open down ↓ |
11 lines elided |
↑ open up ↑ |
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
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 # Copyright (c) 1990, 2010, Oracle and/or its affiliates. All rights reserved.
22 -# Copyright 2017, Joyent, Inc. All rights reserved.
22 +# Copyright 2018, Joyent, Inc. All rights reserved.
23 23 #
24 24 # cmd/fs.d/nfs/mount/Makefile
25 25
26 26 FSTYPE= nfs
27 27 LIBPROG= mount
28 28 ROOTFS_PROG= $(LIBPROG)
29 29
30 30 # duplicate ROOTLIBFSTYPE value needed for installation rule
31 31 # we must define this before including Makefile.fstype
32 32 ROOTLIBFSTYPE = $(ROOT)/usr/lib/fs/$(FSTYPE)
33 33 $(ROOTLIBFSTYPE)/%: $(ROOTLIBFSTYPE) %
34 34 $(RM) $@; $(SYMLINK) ../../../../etc/fs/$(FSTYPE)/$(LIBPROG) $@
35 35
36 36 include ../../Makefile.fstype
37 37
38 38 COMMON= $(FSLIB) nfs_sec.o replica.o nfs_subr.o selfcheck.o smfcfg.o
39 39 OBJS= $(LIBPROG).o $(COMMON) webnfs_client.o webnfs_xdr.o
40 40 SRCS= $(LIBPROG).c $(FSLIBSRC) ../lib/nfs_sec.c ../lib/replica.c \
41 41 ../lib/nfs_subr.c webnfs_xdr.c webnfs_client.c ../lib/selfcheck.c \
42 42 ../lib/smfcfg.c
↓ open down ↓ |
10 lines elided |
↑ open up ↑ |
43 43
44 44 UNCHECKED_HDRS= webnfs.h
45 45
46 46 CERRWARN += -_gcc=-Wno-parentheses
47 47 CERRWARN += -_gcc=-Wno-switch
48 48 CERRWARN += -_gcc=-Wno-unused-variable
49 49 CERRWARN += -_gcc=-Wno-uninitialized
50 50 CERRWARN += -_gcc=-Wno-address
51 51 CERRWARN += -_gcc=-Wno-unused-function
52 52
53 +# unknown type for func
54 +SMATCH=off
55 +
53 56 #
54 57 # Message catalog
55 58 #
56 59 POFILE= mount.po
57 60
58 61 LDLIBS += -lrpcsvc -lnsl -lsocket -lscf
59 62 CPPFLAGS += -I. -I../.. -I../lib
60 63 CFLAGS += $(CCVERBOSE)
61 64
62 65 nfs_sec.o := CPPFLAGS += -DWNFS_SEC_NEGO
63 66
64 67 ROOTETCPROG = $(LIBPROG:%=$(ROOTETCFSTYPE)/%)
65 68 CLOBBERFILES += $(LIBPROG)
66 69
67 70 .KEEP_STATE:
68 71
69 72 all: $(ROOTFS_PROG)
70 73
71 74 $(LIBPROG): webnfs.h $(OBJS)
72 75 $(LINK.c) -o $@ $(OBJS) $(LDLIBS)
73 76 $(POST_PROCESS)
74 77
75 78 nfs_sec.o: ../lib/nfs_sec.c
76 79 $(COMPILE.c) ../lib/nfs_sec.c
77 80
78 81 replica.o: ../lib/replica.c
79 82 $(COMPILE.c) ../lib/replica.c
80 83
81 84 nfs_subr.o: ../lib/nfs_subr.c
82 85 $(COMPILE.c) ../lib/nfs_subr.c
83 86
84 87 selfcheck.o: ../lib/selfcheck.c
85 88 $(COMPILE.c) ../lib/selfcheck.c
86 89
87 90 nfs_tbind.o: ../lib/nfs_tbind.c
88 91 $(COMPILE.c) ../lib/nfs_tbind.c
89 92
90 93 smfcfg.o: ../lib/smfcfg.c
91 94 $(COMPILE.c) ../lib/smfcfg.c
92 95
93 96 webnfs_xdr.c: webnfs.x
94 97 $(RPCGEN) -M -C -c -o $@ webnfs.x
95 98
96 99 webnfs_client.c: webnfs.x
97 100 $(RPCGEN) -M -C -l -o $@ webnfs.x
98 101
99 102 webnfs.h: webnfs.x
100 103 $(RPCGEN) -M -C -h -o $@ webnfs.x
101 104
102 105 webnfs.x: ../lib/webnfs.x
103 106 $(RM) webnfs.x
104 107 cp ../lib/webnfs.x .
105 108
106 109 #
107 110 # message catalog
108 111 #
109 112 catalog: $(POFILE)
110 113
111 114 $(POFILE): $(SRCS) webnfs.h
112 115 $(RM) $@
113 116 $(COMPILE.cpp) $(SRCS) > $(POFILE).i
114 117 $(XGETTEXT) $(XGETFLAGS) $(POFILE).i
115 118 sed "/^domain/d" messages.po > $@
116 119 $(RM) $(POFILE).i messages.po
117 120
118 121 install: $(ROOTETCPROG)
119 122
120 123 lint: webnfs.h webnfs_xdr.c webnfs_client.c lint_SRCS
121 124
122 125 clean:
123 126 $(RM) $(OBJS) webnfs.x webnfs.h webnfs_xdr.c webnfs_client.c
↓ open down ↓ |
61 lines elided |
↑ open up ↑ |
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX