Print this page
5468 Missing dependencies in lib/Makefile
5709 Add binary compatibility with Solaris 10 update 10.
Split |
Close |
Expand all |
Collapse all |
--- old/usr/src/cmd/rexd/Makefile
+++ new/usr/src/cmd/rexd/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.
↓ open down ↓ |
14 lines elided |
↑ open up ↑ |
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 2007 Sun Microsystems, Inc. All rights reserved.
23 23 # Use is subject to license terms.
24 24 #
25 +# Copyright 2015 RackTop Systems.
26 +#
25 27
26 28 PROG= rpc.rexd on
27 29 # where under
28 30 #RPCGEN= rpcgen
29 31 REXDPROG= rpc.rexd
30 32 ONPROG = on
31 33
32 34 MANIFEST= rex.xml
33 35
34 36 include ../Makefile.cmd
35 37
36 38 CERRWARN += -_gcc=-Wno-implicit-function-declaration
37 39 CERRWARN += -_gcc=-Wno-parentheses
38 40 CERRWARN += -_gcc=-Wno-unused-variable
39 41 CERRWARN += -_gcc=-Wno-address
40 42 CERRWARN += -_gcc=-Wno-unused-function
41 43 CERRWARN += -_gcc=-Wno-extra
42 44
43 45 ROOTMANIFESTDIR= $(ROOTSVCNETWORKRPC)
44 46
45 47 SRCS= $(PROG:%=%.c)
46 48
47 49 #OBJS= errprintf.o mount_nfs.o rex_xdr.o unix_login.o mntent.o
48 50 TYPEOBJS= nfs_subr.o
49 51 OBJS= errprintf.o mount_nfs.o rex.o unix_login.o mntent.o $(TYPEOBJS)
50 52 REXDOBJS= rpc.rexd.o errprintf.o mount_nfs.o rex.o unix_login.o mntent.o
51 53 ONOBJS= on.o sharetab.o where.o rex.o mntent.o
52 54 #WHEREOBJS= sharetab.o where.o where_main.o mntent.o
53 55 CLEANOBJS= exportent.o sharetab.o on.o rpc.rexd.o where.o
54 56 #under.o where.o where_main.o
55 57 #UNDEROBJS= errprintf.o sharetab.o mount_nfs.o
56 58
57 59 ROOTREXD= $(ROOTUSRSBIN)
58 60 ROOTON= $(ROOTBIN)
59 61 ROOTREXDPROG= $(REXDPROG:%=$(ROOTREXD)/%)
60 62 ROOTONPROG= $(ONPROG:%=$(ROOTON)/%)
61 63
62 64 CPPFLAGS = -I. $(CPPFLAGS.master)
63 65
64 66 LDLIBS += -lsocket -lnsl
65 67 rpc.rexd := LDLIBS += -lrpcsvc -lbsm -lpam
66 68
67 69 TYPESRCS= ../nfs/lib/nfs_subr.c
68 70
69 71 # install rule
70 72 # don't re-install directories created by Targetdirs
71 73 #$(ROOTREXD)/%: %
72 74 # $(INS.file)
73 75 #$(ROOTON)/%: %
74 76 # $(INS.file)
75 77
76 78 .KEEP_STATE:
77 79
78 80 all: $(PROG)
79 81
80 82 rpc.rexd: $$@.o $(OBJS)
81 83 $(LINK.c) -o $@ $@.o $(OBJS) $(LDLIBS)
82 84 $(POST_PROCESS)
83 85
84 86 on: $(ONOBJS)
85 87 $(LINK.c) -o $@ $(ONOBJS) $(LDLIBS)
86 88 $(POST_PROCESS)
87 89
88 90 #under: $$@.o $(UNDEROBJS)
89 91 # $(LINK.c) -o $@ $@.o $(UNDEROBJS) $(LDLIBS)
90 92 #
91 93 #where: $(WHEREOBJS)
92 94 # $(LINK.c) -o $@ $(WHEREOBJS) $(LDLIBS)
93 95 #
94 96 install: all $(ROOTREXDPROG) $(ROOTONPROG) $(ROOTMANIFEST)
95 97
96 98 $(ROOTREXD): rpc.rexd
97 99 $(INS.dir)
98 100 $(ROOTON): on
99 101 $(INS.dir)
100 102
101 103 check: $(CHKMANIFEST)
102 104
103 105 clean:
104 106 $(RM) $(OBJS) $(CLEANOBJS) $(PROG)
↓ open down ↓ |
70 lines elided |
↑ open up ↑ |
105 107
106 108 lint: lint_SRCS
107 109
108 110 include ../Makefile.targ
109 111
110 112 # derived source files and explicit dependencies
111 113
112 114 #rex_xdr.o \
113 115 #rex_svc.o \
114 116 #rex_clnt.o: rex.h rex.c
115 -# $(LINK.c) -c -o $@ rex.c
117 +# $(LINK.c) -c -o $@ rex.c $(LDLIBS)
116 118
117 119 on.o: rex.h
118 120
119 121 rpc.rexd.o: rex.h
120 122
121 123 unix_login.o: rex.h
122 124
123 125 rex.o: rex.h
124 126
125 127 nfs_subr.o: ../fs.d/nfs/lib/nfs_subr.c
126 128 $(COMPILE.c) ../fs.d/nfs/lib/nfs_subr.c
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX