Print this page
11226 Remove NetraCT support
Split |
Close |
Expand all |
Collapse all |
--- old/usr/src/cmd/rcm_daemon/Makefile.com
+++ new/usr/src/cmd/rcm_daemon/Makefile.com
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
↓ open down ↓ |
15 lines elided |
↑ open up ↑ |
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 #
23 23 # Copyright (c) 1999, 2010, Oracle and/or its affiliates. All rights reserved.
24 24 # Copyright 2016 Nexenta Systems, Inc.
25 25 # Copyright (c) 2018, Joyent, Inc.
26 +# Copyright 2019 Peter Tribble.
26 27 #
27 28
28 29 include ../../Makefile.cmd
29 30
30 31 COMMON = ../common
31 32
32 33 RCM_SRC = \
33 34 $(COMMON)/rcm_event.c \
34 35 $(COMMON)/rcm_main.c \
35 36 $(COMMON)/rcm_impl.c \
36 37 $(COMMON)/rcm_subr.c \
37 38 $(COMMON)/rcm_lock.c \
38 39 $(COMMON)/rcm_script.c
39 40
40 41 RCM_OBJ = \
41 42 rcm_event.o \
42 43 rcm_main.o \
43 44 rcm_impl.o \
44 45 rcm_subr.o \
45 46 rcm_lock.o \
46 47 rcm_script.o
47 48
48 49 COMMON_MOD_SRC = \
49 50 $(COMMON)/filesys_rcm.c \
50 51 $(COMMON)/dump_rcm.c \
51 52 $(COMMON)/swap_rcm.c \
52 53 $(COMMON)/network_rcm.c \
53 54 $(COMMON)/vlan_rcm.c \
↓ open down ↓ |
18 lines elided |
↑ open up ↑ |
54 55 $(COMMON)/vnic_rcm.c \
55 56 $(COMMON)/ibpart_rcm.c \
56 57 $(COMMON)/aggr_rcm.c \
57 58 $(COMMON)/ip_rcm.c \
58 59 $(COMMON)/cluster_rcm.c \
59 60 $(COMMON)/pool_rcm.c \
60 61 $(COMMON)/mpxio_rcm.c \
61 62 $(COMMON)/ip_anon_rcm.c \
62 63 $(COMMON)/bridge_rcm.c
63 64
64 -sparc_MOD_SRC = $(COMMON)/ttymux_rcm.c
65 -
66 65 COMMON_PERL_SCRIPT_SRC =
67 66
68 67 sparc_PERL_SCRIPT_SRC = SUNW,vdevices.pl
69 68
70 69 COMMON_SHELL_SCRIPT_SRC = SUNW,ibsdpu.sh \
71 70 SUNW,rdsv3u.sh
72 71
73 72 COMMON_MOD_OBJ = \
74 73 filesys_rcm.o \
75 74 dump_rcm.o \
76 75 swap_rcm.o \
77 76 network_rcm.o \
78 77 vlan_rcm.o \
↓ open down ↓ |
3 lines elided |
↑ open up ↑ |
79 78 vnic_rcm.o \
80 79 ibpart_rcm.o \
81 80 aggr_rcm.o \
82 81 ip_rcm.o \
83 82 cluster_rcm.o \
84 83 pool_rcm.o \
85 84 mpxio_rcm.o \
86 85 ip_anon_rcm.o \
87 86 bridge_rcm.o
88 87
89 -sparc_MOD_OBJ = ttymux_rcm.o
90 -
91 88 RCM_DAEMON = rcm_daemon
92 89
93 90 COMMON_RCM_MODS = \
94 91 SUNW_filesys_rcm.so \
95 92 SUNW_dump_rcm.so \
96 93 SUNW_swap_rcm.so \
97 94 SUNW_network_rcm.so \
98 95 SUNW_vlan_rcm.so \
99 96 SUNW_vnic_rcm.so \
100 97 SUNW_ibpart_rcm.so \
101 98 SUNW_aggr_rcm.so \
102 99 SUNW_ip_rcm.so \
103 100 SUNW_cluster_rcm.so \
104 101 SUNW_pool_rcm.so \
105 102 SUNW_mpxio_rcm.so \
106 103 SUNW_ip_anon_rcm.so \
107 104 SUNW_bridge_rcm.so
108 105
109 -sparc_RCM_MODS = SUNW_ttymux_rcm.so
110 -
111 106 RCM_DIR = rcm
112 107 MOD_DIR = modules
113 108 SCRIPT_DIR = scripts
114 109
115 110 CLOBBERFILES += $(COMMON_RCM_MODS) $($(MACH)_RCM_MODS) $(RCM_DAEMON)
116 111
117 112 LINT_MODULES = $(COMMON_MOD_SRC:.c=.ln) $($(MACH)_MOD_SRC:.c=.ln)
118 113
119 114 CPPFLAGS += -I..
120 115 CPPFLAGS += -D_POSIX_PTHREAD_SEMANTICS -D_REENTRANT
121 116 CFLAGS += $(CCVERBOSE) $(C_PICFLAGS)
122 117
123 118 CERRWARN += -_gcc=-Wno-parentheses
124 119 CERRWARN += -_gcc=-Wno-unused-label
125 120 CERRWARN += -_gcc=-Wno-uninitialized
126 121 CERRWARN += -_gcc=-Wno-unused-function
127 122
128 123 # not linted
129 124 SMATCH=off
130 125
131 126 MAPFILES = ../common/mapfile-intf $(MAPFILE.NGB)
132 127 rcm_daemon := LDFLAGS += $(MAPFILES:%=-M%)
133 128
134 129 LINTFLAGS += -u -erroff=E_FUNC_ARG_UNUSED
135 130
136 131 LDLIBS_MODULES =
137 132 SUNW_pool_rcm.so := LDLIBS_MODULES += -L$(ROOT)/usr/lib -lpool
138 133 SUNW_network_rcm.so := LDLIBS_MODULES += -L$(ROOT)/lib -ldladm
139 134 SUNW_vlan_rcm.so := LDLIBS_MODULES += -L$(ROOT)/lib -ldladm
140 135 SUNW_vnic_rcm.so := LDLIBS_MODULES += -L$(ROOT)/lib -ldladm
141 136 SUNW_ibpart_rcm.so := LDLIBS_MODULES += -L$(ROOT)/lib -ldladm
142 137 SUNW_aggr_rcm.so := LDLIBS_MODULES += -L$(ROOT)/lib -ldladm
143 138 SUNW_ip_rcm.so := LDLIBS_MODULES += -L$(ROOT)/lib -linetutil -ldladm -lipmp -lipadm
144 139 SUNW_ip_anon_rcm.so := LDLIBS_MODULES += -L$(ROOT)/lib -linetutil
145 140 SUNW_bridge_rcm.so := LDLIBS_MODULES += -L$(ROOT)/lib -ldladm
146 141
147 142 LDLIBS += -lgen -lelf -lrcm -lnvpair -ldevinfo -lnsl -lsocket
148 143
149 144 SRCS = $(RCM_SRC) $(COMMON_MOD_SRC)
150 145
151 146 POFILES = $(SRCS:.c=.po)
152 147 POFILE = prcm_daemon.po
153 148
154 149 PERL_SCRIPTS = $(COMMON_PERL_SRC) $($(MACH)_PERL_SCRIPT_SRC)
155 150 SHELL_SCRIPTS = $(COMMON_SHELL_SCRIPT_SRC)
156 151 RCM_SCRIPTS = $(PERL_SCRIPTS) $(SHELL_SCRIPTS)
157 152
158 153 # install specifics
159 154
160 155 ROOTLIB_RCM = $(ROOTLIB)/$(RCM_DIR)
161 156 ROOTLIB_RCM_MOD = $(ROOTLIB_RCM)/$(MOD_DIR)
162 157 ROOTLIB_RCM_DAEMON = $(RCM_DAEMON:%=$(ROOTLIB_RCM)/%)
163 158 ROOTLIB_RCM_MODULES = $(COMMON_RCM_MODS:%=$(ROOTLIB_RCM_MOD)/%) \
164 159 $($(MACH)_RCM_MODS:%=$(ROOTLIB_RCM_MOD)/%)
165 160 ROOTLIB_RCM_SCRIPT = $(ROOTLIB_RCM)/$(SCRIPT_DIR)
166 161 ROOTLIB_RCM_SCRIPTS = $(RCM_SCRIPTS:%=$(ROOTLIB_RCM_SCRIPT)/%)
167 162 ROOTETC_RCM = $(ROOTETC)/$(RCM_DIR)
168 163 ROOTETC_RCM_SCRIPT = $(ROOTETC_RCM)/$(SCRIPT_DIR)
169 164
170 165 all := TARGET= all
171 166 install := TARGET= install
172 167 clean := TARGET= clean
173 168 clobber := TARGET= clobber
174 169 lint := TARGET= lint
175 170
176 171 $(ROOTLIB_RCM_SCRIPTS) := FILEMODE = 555
177 172
178 173 .KEEP_STATE:
179 174
180 175 all: $(RCM_DAEMON) $(COMMON_RCM_MODS) $($(MACH)_RCM_MODS)
181 176
182 177 install: all \
183 178 $(ROOTLIB_RCM) \
184 179 $(ROOTLIB_RCM_DAEMON) \
185 180 $(ROOTLIB_RCM_MOD) \
186 181 $(ROOTLIB_RCM_MODULES) \
187 182 $(ROOTLIB_RCM_SCRIPT) \
188 183 $(ROOTETC_RCM) \
189 184 $(ROOTETC_RCM_SCRIPT) \
190 185 $(ROOTLIB_RCM_SCRIPTS)
191 186
192 187 clean:
193 188 $(RM) $(RCM_OBJ) $(COMMON_MOD_OBJ) $($(MACH)_MOD_OBJ) $(POFILES)
194 189
195 190 lint: $(RCM_DAEMON).ln $(LINT_MODULES)
196 191
197 192 $(RCM_DAEMON).ln: FRC
198 193 $(LINT.c) $(RCM_SRC) $(LDLIBS)
199 194
200 195 %.ln: FRC
201 196 $(LINT.c) $(RCM_SRC) $(@:.ln=.c) $(LDLIBS)
202 197
203 198 FRC:
204 199
205 200 include ../../Makefile.targ
206 201
207 202 $(POFILE): $(POFILES)
208 203 $(RM) $@; cat $(POFILES) > $@
209 204
210 205 $(RCM_DAEMON): $(RCM_OBJ) $(MAPFILES)
211 206 $(LINK.c) -o $@ $< $(RCM_OBJ) $(LDLIBS)
212 207 $(POST_PROCESS)
213 208
214 209 SUNW_%.so: %.o
215 210 $(LINK.c) -o $@ $(GSHARED) -h $@ $< $(LDLIBS_MODULES)
216 211
217 212 %.o: $(COMMON)/%.c
218 213 $(COMPILE.c) -o $@ $<
219 214
220 215 $(ROOTLIB_RCM):
221 216 $(INS.dir)
222 217
223 218 $(ROOTLIB_RCM)/%: %
224 219 $(INS.file)
225 220
226 221 $(ROOTLIB_RCM_MOD):
227 222 $(INS.dir)
228 223
229 224 $(ROOTLIB_RCM_MOD)/%: %
230 225 $(INS.file)
231 226
232 227 $(ROOTLIB_RCM_SCRIPT):
233 228 $(INS.dir)
234 229
235 230 $(ROOTETC_RCM):
236 231 $(INS.dir)
237 232
238 233 $(ROOTETC_RCM_SCRIPT):
239 234 $(INS.dir)
240 235
241 236 $(ROOTLIB_RCM_SCRIPT)/%: $(COMMON)/%
242 237 $(INS.file)
↓ open down ↓ |
122 lines elided |
↑ open up ↑ |
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX