1 | # Copyright 2000, International Business Machines Corporation and others. |
---|
2 | # All Rights Reserved. |
---|
3 | # |
---|
4 | # This software has been released under the terms of the IBM Public |
---|
5 | # License. For details, see the LICENSE file in the top-level source |
---|
6 | # directory or online at http://www.openafs.org/dl/license10.html |
---|
7 | |
---|
8 | DEST=@DEST@ |
---|
9 | TOP_INCDIR=@TOP_INCDIR@ |
---|
10 | TOP_LIBDIR=@TOP_LIBDIR@ |
---|
11 | prefix=@prefix@ |
---|
12 | exec_prefix=@exec_prefix@ |
---|
13 | bindir=@bindir@ |
---|
14 | sbindir=@sbindir@ |
---|
15 | libexecdir=@libexecdir@ |
---|
16 | libdir=@libdir@ |
---|
17 | includedir=@includedir@ |
---|
18 | mandir=@mandir@ |
---|
19 | afssrvbindir=@afssrvbindir@ |
---|
20 | afssrvsbindir=@afssrvsbindir@ |
---|
21 | afssrvlibexecdir=@afssrvlibexecdir@ |
---|
22 | COMPILE_ET=${TOP_SRCDIR}/comerr/compile_et |
---|
23 | RXGEN=${TOP_SRCDIR}/rxgen/rxgen |
---|
24 | TOP_SRCDIR=@TOP_SRCDIR@ |
---|
25 | SYS_NAME=@AFS_SYSNAME@ |
---|
26 | MKAFS_OSTYPE=@MKAFS_OSTYPE@ |
---|
27 | |
---|
28 | SHELL = /bin/sh |
---|
29 | |
---|
30 | include ../config/Makefile.${SYS_NAME} |
---|
31 | |
---|
32 | KERNELDIR = ../libafs/ |
---|
33 | UKERNELDIR = ../libuafs/ |
---|
34 | |
---|
35 | CFLAGS=${OPTMZ} -I${TOP_SRCDIR}/config -I${TOP_INCDIR} -DRXDEBUG ${XCFLAGS} |
---|
36 | |
---|
37 | # |
---|
38 | # Generic xdr objects (or, at least, xdr stuff that's not newly defined for rx). |
---|
39 | # Really the xdr stuff should be in its own directory. |
---|
40 | # |
---|
41 | XDROBJS = xdr.o xdr_array.o xdr_arrayn.o xdr_rx.o xdr_afsuuid.o |
---|
42 | |
---|
43 | RXOBJS = rx_clock.o rx_event.o rx_user.o rx_lwp.o rx.o rx_null.o rx_globals.o \ |
---|
44 | rx_getaddr.o rx_misc.o rx_packet.o rx_rdwr.o rx_trace.o rx_conncache.o \ |
---|
45 | xdr_int64.o xdr_update.o xdr_refernce.o |
---|
46 | |
---|
47 | MULTIOBJS = rx_multi.o |
---|
48 | |
---|
49 | LIBOBJS = ${RXOBJS} ${MULTIOBJS} ${XDROBJS} |
---|
50 | |
---|
51 | LIBOBJS_djgpp = ${RXOBJS_djgpp} ${MULTIOBJS} ${XDROBJS_djgpp} |
---|
52 | |
---|
53 | XDROBJS_djgpp = xdr.o xdr_rec.o xdr_stdio.o \ |
---|
54 | xdr_float.o xdr_refernce.o xdr_update.o \ |
---|
55 | xdr_array.o xdr_mem.o xdr_rx.o xdr_afsuuid.o |
---|
56 | |
---|
57 | RXOBJS_djgpp = rx_clock.o rx_event.o rx_user.o rx_lwp.o rx.o rx_null.o rx_globals.o \ |
---|
58 | rx_getaddr.o rx_misc.o rx_packet.o rx_rdwr.o rx_trace.o rx_conncache.o \ |
---|
59 | xdr_int64.o xdr_update.o xdr_refernce.o rx_xmit_nt.o |
---|
60 | |
---|
61 | BASICINCLS=${TOP_INCDIR}/lwp.h ${TOP_INCDIR}/lock.h \ |
---|
62 | rx_clock.h rx_queue.h rx_event.h |
---|
63 | |
---|
64 | LIBS=librx.a ${TOP_LIBDIR}/liblwp.a ${TOP_LIBDIR}/libcmd.a \ |
---|
65 | ${TOP_LIBDIR}/util.a |
---|
66 | |
---|
67 | KSRCS = rx.c rx.h rx_clock.c rx_clock.h rx_event.c rx_event.h \ |
---|
68 | rx_globals.c rx_globals.h rx_kernel.h rx_misc.h \ |
---|
69 | rx_null.c rx_null.h rx_queue.h rx_getaddr.c rx_packet.c rx_packet.h \ |
---|
70 | rx_multi.h rx_kcommon.h rx_kcommon.c \ |
---|
71 | xdr.c xdr.h xdr_array.c xdr_arrayn.c xdr_rx.c rx_misc.c rx_rdwr.c \ |
---|
72 | xdr_afsuuid.c rx_trace.h xdr_int64.c |
---|
73 | UKSRCS = $(KSRCS) rx_conncache.c |
---|
74 | |
---|
75 | all: includes kinstall ukinstall ${TOP_LIBDIR}/librx.a |
---|
76 | |
---|
77 | RX_component_version_number.c: AFS_component_version_number.c |
---|
78 | sed 's/cml_version/rx_cml_version/' <AFS_component_version_number.c >RX_component_version_number.c |
---|
79 | |
---|
80 | RX_component_version_number.o: RX_component_version_number.c |
---|
81 | |
---|
82 | ${RXOBJS}: ${BASICINCLS} rx.h rx_user.h rx_globals.h |
---|
83 | |
---|
84 | ${MULTIOBJS}: rx.h rx_multi.h |
---|
85 | |
---|
86 | ${XDROBJS}: xdr.h |
---|
87 | |
---|
88 | rxperf.o: rx.h rx_null.h rx_globals.h |
---|
89 | |
---|
90 | rx_user.o: rx.h rx_user.h |
---|
91 | |
---|
92 | rx_packet.o: rx_packet.c rx_packet.h |
---|
93 | |
---|
94 | rx_rdwr.o: rx_rdwr.c rx.h |
---|
95 | |
---|
96 | rx.o: rx.h rx_user.h |
---|
97 | |
---|
98 | rx_conncache.o: rx.h |
---|
99 | |
---|
100 | rx_trace.o: rx_trace.h |
---|
101 | |
---|
102 | rx_getaddr.o: rx.h rx_getaddr.c |
---|
103 | |
---|
104 | rx_globals.o: rx.h rx_user.h rx_globals.h |
---|
105 | |
---|
106 | xdr_rx.o: xdr.h rx.h |
---|
107 | |
---|
108 | xdr_refernce.o: xdr_refernce.c xdr.h |
---|
109 | |
---|
110 | rxperf: rxperf.o librx.a |
---|
111 | ${CC} -o $@ rxperf.o ${LIBS} |
---|
112 | |
---|
113 | librx.a: ${LIBOBJS} RX_component_version_number.o |
---|
114 | -$(RM) -f $@ |
---|
115 | $(AR) crv $@ ${LIBOBJS} RX_component_version_number.o |
---|
116 | $(RANLIB) $@ |
---|
117 | |
---|
118 | librx-djgpp.a: ${LIBOBJS_djgpp} RX_component_version_number.o |
---|
119 | -$(RM) -f librx-djgpp.a |
---|
120 | $(AR) crv librx-djgpp.a RX_component_version_number.o ${LIBOBJS_djgpp} |
---|
121 | $(RANLIB) librx-djgpp.a |
---|
122 | |
---|
123 | # |
---|
124 | # Install targets |
---|
125 | # |
---|
126 | install: ${DESTDIR}${libdir}/librx.a \ |
---|
127 | ${DESTDIR}${includedir}/rx/rx_packet.h \ |
---|
128 | ${DESTDIR}${includedir}/rx/rx.h \ |
---|
129 | ${DESTDIR}${includedir}/rx/rx_user.h \ |
---|
130 | ${DESTDIR}${includedir}/rx/rx_event.h \ |
---|
131 | ${DESTDIR}${includedir}/rx/rx_queue.h \ |
---|
132 | ${DESTDIR}${includedir}/rx/rx_globals.h \ |
---|
133 | ${DESTDIR}${includedir}/rx/rx_clock.h \ |
---|
134 | ${DESTDIR}${includedir}/rx/rx_multi.h \ |
---|
135 | ${DESTDIR}${includedir}/rx/rx_pthread.h \ |
---|
136 | ${DESTDIR}${includedir}/rx/rx_lwp.h \ |
---|
137 | ${DESTDIR}${includedir}/rx/rx_misc.h \ |
---|
138 | ${DESTDIR}${includedir}/rx/rx_null.h \ |
---|
139 | ${DESTDIR}${includedir}/rx/xdr.h |
---|
140 | |
---|
141 | includes: \ |
---|
142 | ${TOP_INCDIR}/rx/rx_packet.h \ |
---|
143 | ${TOP_INCDIR}/rx/rx.h \ |
---|
144 | ${TOP_INCDIR}/rx/rx_user.h \ |
---|
145 | ${TOP_INCDIR}/rx/rx_event.h \ |
---|
146 | ${TOP_INCDIR}/rx/rx_queue.h \ |
---|
147 | ${TOP_INCDIR}/rx/rx_globals.h \ |
---|
148 | ${TOP_INCDIR}/rx/rx_clock.h \ |
---|
149 | ${TOP_INCDIR}/rx/rx_multi.h \ |
---|
150 | ${TOP_INCDIR}/rx/rx_pthread.h \ |
---|
151 | ${TOP_INCDIR}/rx/rx_lwp.h \ |
---|
152 | ${TOP_INCDIR}/rx/rx_misc.h \ |
---|
153 | ${TOP_INCDIR}/rx/rx_null.h \ |
---|
154 | ${TOP_INCDIR}/rx/xdr.h |
---|
155 | |
---|
156 | kinstall: ${KERNELDIR}/rx |
---|
157 | $(INSTALL) $(MKAFS_OSTYPE)/*.[ch] $(KERNELDIR)rx |
---|
158 | $(INSTALL) $(KSRCS) $(KERNELDIR)rx |
---|
159 | |
---|
160 | ukinstall: ${UKERNELDIR}/rx |
---|
161 | $(INSTALL) $(UKSRCS) $(UKERNELDIR)rx |
---|
162 | -$(INSTALL) UKERNEL/*.[ch] $(UKERNELDIR)rx |
---|
163 | |
---|
164 | ${DEST}/include/rx/rx_packet.h: rx_packet.h |
---|
165 | ${INSTALL} $? $@ |
---|
166 | |
---|
167 | ${DEST}/include/rx/rx.h: rx.h |
---|
168 | ${INSTALL} $? $@ |
---|
169 | |
---|
170 | ${DEST}/include/rx/rx_user.h: rx_user.h |
---|
171 | ${INSTALL} $? $@ |
---|
172 | |
---|
173 | ${DEST}/include/rx/rx_event.h: rx_event.h |
---|
174 | ${INSTALL} $? $@ |
---|
175 | |
---|
176 | ${DEST}/include/rx/rx_queue.h: rx_queue.h |
---|
177 | ${INSTALL} $? $@ |
---|
178 | |
---|
179 | ${DEST}/include/rx/rx_globals.h: rx_globals.h |
---|
180 | ${INSTALL} $? $@ |
---|
181 | |
---|
182 | ${DEST}/include/rx/rx_clock.h: rx_clock.h |
---|
183 | ${INSTALL} $? $@ |
---|
184 | |
---|
185 | ${DEST}/include/rx/rx_multi.h: rx_multi.h |
---|
186 | ${INSTALL} $? $@ |
---|
187 | |
---|
188 | ${DEST}/include/rx/rx_pthread.h: rx_pthread.h |
---|
189 | ${INSTALL} $? $@ |
---|
190 | |
---|
191 | ${DEST}/include/rx/rx_lwp.h: rx_lwp.h |
---|
192 | ${INSTALL} $? $@ |
---|
193 | |
---|
194 | ${DEST}/include/rx/rx_misc.h: rx_misc.h |
---|
195 | ${INSTALL} $? $@ |
---|
196 | |
---|
197 | ${DEST}/include/rx/rx_null.h: rx_null.h |
---|
198 | ${INSTALL} $? $@ |
---|
199 | |
---|
200 | ${DEST}/include/rx/xdr.h: xdr.h |
---|
201 | ${INSTALL} $? $@ |
---|
202 | |
---|
203 | ${UKERNELDIR}/rx: |
---|
204 | mkdir -p ${UKERNELDIR}/rx |
---|
205 | |
---|
206 | ${KERNELDIR}/rx: |
---|
207 | mkdir -p ${KERNELDIR}/rx |
---|
208 | |
---|
209 | install-djgpp: includes kinstall ukinstall librx-djgpp ${TOP_INCDIR}/rx/rx_xmit_nt.h ${TOP_LIBDIR}/librx-djgpp.a |
---|
210 | |
---|
211 | ${DEST}/lib/librx.a: librx.a |
---|
212 | ${INSTALL} $? $@ |
---|
213 | |
---|
214 | # rule will never be satisfied |
---|
215 | ${DESTDIR}/lib/librx-djgpp.a: librx-djgpp.a |
---|
216 | ${INSTALL} $? ${DESTDIR}/lib/librx.a |
---|
217 | |
---|
218 | ${DESTDIR}/include/rx/rx_xmit_nt.h: rx_xmit_nt.h ${TOP_INCDIR}/rx |
---|
219 | ${INSTALL} $? $@ |
---|
220 | |
---|
221 | # |
---|
222 | # Misc. targets |
---|
223 | # |
---|
224 | clean: |
---|
225 | $(RM) -f *.o *.a core *_component_version_number.c |
---|
226 | |
---|
227 | include ../config/Makefile.version |
---|
228 | |
---|
229 | ${DESTDIR}${libdir}/librx.a: librx.a |
---|
230 | ${INSTALL} $? $@ |
---|
231 | |
---|
232 | ${TOP_LIBDIR}/librx.a: librx.a |
---|
233 | ${INSTALL} $? $@ |
---|
234 | |
---|
235 | dest: ${DEST}/lib/librx.a \ |
---|
236 | ${DEST}/include/rx/rx_packet.h \ |
---|
237 | ${DEST}/include/rx/rx.h \ |
---|
238 | ${DEST}/include/rx/rx_user.h \ |
---|
239 | ${DEST}/include/rx/rx_event.h \ |
---|
240 | ${DEST}/include/rx/rx_queue.h \ |
---|
241 | ${DEST}/include/rx/rx_globals.h \ |
---|
242 | ${DEST}/include/rx/rx_clock.h \ |
---|
243 | ${DEST}/include/rx/rx_multi.h \ |
---|
244 | ${DEST}/include/rx/rx_pthread.h \ |
---|
245 | ${DEST}/include/rx/rx_lwp.h \ |
---|
246 | ${DEST}/include/rx/rx_misc.h \ |
---|
247 | ${DEST}/include/rx/rx_null.h \ |
---|
248 | ${DEST}/include/rx/xdr.h |
---|
249 | |
---|
250 | ${DESTDIR}${includedir}/rx/rx_packet.h: rx_packet.h |
---|
251 | ${INSTALL} $? $@ |
---|
252 | |
---|
253 | ${DESTDIR}${includedir}/rx/rx.h: rx.h |
---|
254 | ${INSTALL} $? $@ |
---|
255 | |
---|
256 | ${DESTDIR}${includedir}/rx/rx_user.h: rx_user.h |
---|
257 | ${INSTALL} $? $@ |
---|
258 | |
---|
259 | ${DESTDIR}${includedir}/rx/rx_event.h: rx_event.h |
---|
260 | ${INSTALL} $? $@ |
---|
261 | |
---|
262 | ${DESTDIR}${includedir}/rx/rx_queue.h: rx_queue.h |
---|
263 | ${INSTALL} $? $@ |
---|
264 | |
---|
265 | ${DESTDIR}${includedir}/rx/rx_globals.h: rx_globals.h |
---|
266 | ${INSTALL} $? $@ |
---|
267 | |
---|
268 | ${DESTDIR}${includedir}/rx/rx_clock.h: rx_clock.h |
---|
269 | ${INSTALL} $? $@ |
---|
270 | |
---|
271 | ${DESTDIR}${includedir}/rx/rx_multi.h: rx_multi.h |
---|
272 | ${INSTALL} $? $@ |
---|
273 | |
---|
274 | ${DESTDIR}${includedir}/rx/rx_pthread.h: rx_pthread.h |
---|
275 | ${INSTALL} $? $@ |
---|
276 | |
---|
277 | ${DESTDIR}${includedir}/rx/rx_lwp.h: rx_lwp.h |
---|
278 | ${INSTALL} $? $@ |
---|
279 | |
---|
280 | ${DESTDIR}${includedir}/rx/rx_misc.h: rx_misc.h |
---|
281 | ${INSTALL} $? $@ |
---|
282 | |
---|
283 | ${DESTDIR}${includedir}/rx/rx_null.h: rx_null.h |
---|
284 | ${INSTALL} $? $@ |
---|
285 | |
---|
286 | ${DESTDIR}${includedir}/rx/xdr.h: xdr.h |
---|
287 | ${INSTALL} $? $@ |
---|
288 | |
---|
289 | |
---|
290 | ${TOP_INCDIR}/rx/rx_packet.h: rx_packet.h |
---|
291 | ${INSTALL} $? $@ |
---|
292 | |
---|
293 | ${TOP_INCDIR}/rx/rx.h: rx.h |
---|
294 | ${INSTALL} $? $@ |
---|
295 | |
---|
296 | ${TOP_INCDIR}/rx/rx_user.h: rx_user.h |
---|
297 | ${INSTALL} $? $@ |
---|
298 | |
---|
299 | ${TOP_INCDIR}/rx/rx_event.h: rx_event.h |
---|
300 | ${INSTALL} $? $@ |
---|
301 | |
---|
302 | ${TOP_INCDIR}/rx/rx_queue.h: rx_queue.h |
---|
303 | ${INSTALL} $? $@ |
---|
304 | |
---|
305 | ${TOP_INCDIR}/rx/rx_globals.h: rx_globals.h |
---|
306 | ${INSTALL} $? $@ |
---|
307 | |
---|
308 | ${TOP_INCDIR}/rx/rx_clock.h: rx_clock.h |
---|
309 | ${INSTALL} $? $@ |
---|
310 | |
---|
311 | ${TOP_INCDIR}/rx/rx_multi.h: rx_multi.h |
---|
312 | ${INSTALL} $? $@ |
---|
313 | |
---|
314 | ${TOP_INCDIR}/rx/rx_pthread.h: rx_pthread.h |
---|
315 | ${INSTALL} $? $@ |
---|
316 | |
---|
317 | ${TOP_INCDIR}/rx/rx_lwp.h: rx_lwp.h |
---|
318 | ${INSTALL} $? $@ |
---|
319 | |
---|
320 | ${TOP_INCDIR}/rx/rx_misc.h: rx_misc.h |
---|
321 | ${INSTALL} $? $@ |
---|
322 | |
---|
323 | ${TOP_INCDIR}/rx/rx_null.h: rx_null.h |
---|
324 | ${INSTALL} $? $@ |
---|
325 | |
---|
326 | ${TOP_INCDIR}/rx/xdr.h: xdr.h |
---|
327 | ${INSTALL} $? $@ |
---|
328 | |
---|