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