1 # Copyright 2000, International Business Machines Corporation and others.
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
9 include @TOP_OBJDIR@/src/config/Makefile.config
11 CFLAGS=${COMMON_CFLAGS} ${XCFLAGS} ${ARCHFLAGS} -DRXDEBUG
14 # Generic xdr objects (or, at least, xdr stuff that's not newly defined for rx).
15 # Really the xdr stuff should be in its own directory.
17 XDROBJS_common = xdr.o xdr_array.o xdr_rx.o xdr_afsuuid.o
19 XDROBJS = xdr_arrayn.o ${XDROBJS_common}
21 XDROBJS_djgpp = xdr_rec.o xdr_stdio.o \
22 xdr_float.o xdr_refernce.o xdr_update.o \
23 xdr_mem.o ${XDROBJS_common}
25 RXOBJS_common = rx_clock.o rx_event.o rx_user.o rx_lwp.o rx.o rx_null.o \
26 rx_globals.o rx_getaddr.o rx_misc.o rx_packet.o rx_rdwr.o rx_trace.o \
27 rx_conncache.o xdr_int32.o xdr_int64.o xdr_update.o xdr_refernce.o
29 RXOBJS = ${RXOBJS_common}
30 RXOBJS_djgpp = ${RXOBJS_common} rx_xmit_nt.o
32 MULTIOBJS = rx_multi.o
34 LIBOBJS = ${RXOBJS} ${MULTIOBJS} ${XDROBJS}
36 LIBOBJS_djgpp = ${RXOBJS_djgpp} ${MULTIOBJS} ${XDROBJS_djgpp}
38 BASICINCLS=${TOP_INCDIR}/lwp.h ${TOP_INCDIR}/lock.h \
39 rx_clock.h rx_queue.h rx_event.h
41 LIBS=librx.a ${TOP_LIBDIR}/liblwp.a ${TOP_LIBDIR}/libcmd.a \
52 ${TOP_INCDIR}/rx/rx_xmit_nt.h \
53 ${TOP_LIBDIR}/librx-djgpp.a
55 RX_component_version_number.c: AFS_component_version_number.c
56 sed 's/cml_version/rx_cml_version/' <AFS_component_version_number.c >RX_component_version_number.c
58 RX_component_version_number.o: RX_component_version_number.c
60 ${RXOBJS}: ${BASICINCLS} rx.h rx_user.h rx_globals.h rx_prototypes.h
62 ${MULTIOBJS}: rx.h rx_multi.h rx_prototypes.h
64 ${XDROBJS}: xdr.h xdr_prototypes.h
66 rxperf.o: rx.h rx_null.h rx_globals.h rx_prototypes.h
68 rx_user.o: rx.h rx_user.h rx_prototypes.h
70 rx_packet.o: rx_packet.c rx_packet.h
72 rx_rdwr.o: rx_rdwr.c rx.h rx_prototypes.h
74 rx.o: rx.h rx_user.h rx_prototypes.h
76 rx_conncache.o: rx.h rx_prototypes.h
78 rx_trace.o: rx_trace.h
80 rx_getaddr.o: rx.h rx_getaddr.c rx_prototypes.h
82 rx_globals.o: rx.h rx_user.h rx_globals.h rx_prototypes.h
84 xdr_rx.o: xdr.h rx.h xdr_prototypes.h rx_prototypes.h
86 xdr_refernce.o: xdr_refernce.c xdr.h xdr_prototypes.h
88 rxperf: rxperf.o librx.a
89 ${CC} -o $@ rxperf.o ${LIBS}
91 librx.a: ${LIBOBJS} RX_component_version_number.o
93 $(AR) crv $@ ${LIBOBJS} RX_component_version_number.o
96 librx-djgpp.a: ${LIBOBJS_djgpp} RX_component_version_number.o
97 -$(RM) -f librx-djgpp.a
98 $(AR) crv librx-djgpp.a RX_component_version_number.o ${LIBOBJS_djgpp}
99 $(RANLIB) librx-djgpp.a
106 ${TOP_INCDIR}/rx/rx_packet.h \
107 ${TOP_INCDIR}/rx/rx_prototypes.h \
108 ${TOP_INCDIR}/rx/rx.h \
109 ${TOP_INCDIR}/rx/rx_user.h \
110 ${TOP_INCDIR}/rx/rx_event.h \
111 ${TOP_INCDIR}/rx/rx_queue.h \
112 ${TOP_INCDIR}/rx/rx_globals.h \
113 ${TOP_INCDIR}/rx/rx_clock.h \
114 ${TOP_INCDIR}/rx/rx_multi.h \
115 ${TOP_INCDIR}/rx/rx_pthread.h \
116 ${TOP_INCDIR}/rx/rx_lwp.h \
117 ${TOP_INCDIR}/rx/rx_misc.h \
118 ${TOP_INCDIR}/rx/rx_null.h \
119 ${TOP_INCDIR}/rx/xdr.h \
120 ${TOP_INCDIR}/rx/xdr_prototypes.h
122 ${TOP_LIBDIR}/librx.a: librx.a
125 ${TOP_LIBDIR}/librx-djgpp.a: librx-djgpp.a
126 ${INSTALL} $? ${TOP_LIBDIR}/librx-djgpp.a
127 ${INSTALL} $? ${TOP_LIBDIR}/librx.a
129 ${TOP_INCDIR}/rx/rx_packet.h: rx_packet.h
132 ${TOP_INCDIR}/rx/rx_prototypes.h: rx_prototypes.h
135 ${TOP_INCDIR}/rx/rx.h: rx.h
138 ${TOP_INCDIR}/rx/rx_user.h: rx_user.h
141 ${TOP_INCDIR}/rx/rx_event.h: rx_event.h
144 ${TOP_INCDIR}/rx/rx_queue.h: rx_queue.h
147 ${TOP_INCDIR}/rx/rx_globals.h: rx_globals.h
150 ${TOP_INCDIR}/rx/rx_clock.h: rx_clock.h
153 ${TOP_INCDIR}/rx/rx_multi.h: rx_multi.h
156 ${TOP_INCDIR}/rx/rx_pthread.h: rx_pthread.h
159 ${TOP_INCDIR}/rx/rx_lwp.h: rx_lwp.h
162 ${TOP_INCDIR}/rx/rx_misc.h: rx_misc.h
165 ${TOP_INCDIR}/rx/rx_null.h: rx_null.h
168 ${TOP_INCDIR}/rx/xdr.h: xdr.h
171 ${TOP_INCDIR}/rx/xdr_prototypes.h: xdr_prototypes.h
174 ${TOP_INCDIR}/rx/rx_xmit_nt.h: rx_xmit_nt.h
178 ${DESTDIR}${libdir}/librx.a \
179 ${DESTDIR}${includedir}/rx/rx_packet.h \
180 ${DESTDIR}${includedir}/rx/rx_prototypes.h \
181 ${DESTDIR}${includedir}/rx/rx.h \
182 ${DESTDIR}${includedir}/rx/rx_user.h \
183 ${DESTDIR}${includedir}/rx/rx_event.h \
184 ${DESTDIR}${includedir}/rx/rx_queue.h \
185 ${DESTDIR}${includedir}/rx/rx_globals.h \
186 ${DESTDIR}${includedir}/rx/rx_clock.h \
187 ${DESTDIR}${includedir}/rx/rx_multi.h \
188 ${DESTDIR}${includedir}/rx/rx_pthread.h \
189 ${DESTDIR}${includedir}/rx/rx_lwp.h \
190 ${DESTDIR}${includedir}/rx/rx_misc.h \
191 ${DESTDIR}${includedir}/rx/rx_null.h \
192 ${DESTDIR}${includedir}/rx/xdr.h \
193 ${DESTDIR}${includedir}/rx/xdr_prototypes.h
195 ${DESTDIR}${libdir}/librx.a: librx.a
198 ${DESTDIR}${includedir}/rx/rx_packet.h: rx_packet.h
201 ${DESTDIR}${includedir}/rx/rx_prototypes.h: rx_prototypes.h
204 ${DESTDIR}${includedir}/rx/rx.h: rx.h
207 ${DESTDIR}${includedir}/rx/rx_user.h: rx_user.h
210 ${DESTDIR}${includedir}/rx/rx_event.h: rx_event.h
213 ${DESTDIR}${includedir}/rx/rx_queue.h: rx_queue.h
216 ${DESTDIR}${includedir}/rx/rx_globals.h: rx_globals.h
219 ${DESTDIR}${includedir}/rx/rx_clock.h: rx_clock.h
222 ${DESTDIR}${includedir}/rx/rx_multi.h: rx_multi.h
225 ${DESTDIR}${includedir}/rx/rx_pthread.h: rx_pthread.h
228 ${DESTDIR}${includedir}/rx/rx_lwp.h: rx_lwp.h
231 ${DESTDIR}${includedir}/rx/rx_misc.h: rx_misc.h
234 ${DESTDIR}${includedir}/rx/rx_null.h: rx_null.h
237 ${DESTDIR}${includedir}/rx/xdr_prototypes.h: xdr_prototypes.h
240 ${DESTDIR}${includedir}/rx/xdr.h: xdr.h
243 dest: ${DEST}/lib/librx.a \
244 ${DEST}/include/rx/rx_packet.h \
245 ${DEST}/include/rx/rx_prototypes.h \
246 ${DEST}/include/rx/rx.h \
247 ${DEST}/include/rx/rx_user.h \
248 ${DEST}/include/rx/rx_event.h \
249 ${DEST}/include/rx/rx_queue.h \
250 ${DEST}/include/rx/rx_globals.h \
251 ${DEST}/include/rx/rx_clock.h \
252 ${DEST}/include/rx/rx_multi.h \
253 ${DEST}/include/rx/rx_pthread.h \
254 ${DEST}/include/rx/rx_lwp.h \
255 ${DEST}/include/rx/rx_misc.h \
256 ${DEST}/include/rx/rx_null.h \
257 ${DEST}/include/rx/xdr.h \
258 ${DEST}/include/rx/xdr_prototypes.h
260 ${DEST}/lib/librx.a: librx.a
263 ${DEST}/include/rx/rx_packet.h: rx_packet.h
266 ${DEST}/include/rx/rx_prototypes.h: rx_prototypes.h
269 ${DEST}/include/rx/rx.h: rx.h
272 ${DEST}/include/rx/rx_user.h: rx_user.h
275 ${DEST}/include/rx/rx_event.h: rx_event.h
278 ${DEST}/include/rx/rx_queue.h: rx_queue.h
281 ${DEST}/include/rx/rx_globals.h: rx_globals.h
284 ${DEST}/include/rx/rx_clock.h: rx_clock.h
287 ${DEST}/include/rx/rx_multi.h: rx_multi.h
290 ${DEST}/include/rx/rx_pthread.h: rx_pthread.h
293 ${DEST}/include/rx/rx_lwp.h: rx_lwp.h
296 ${DEST}/include/rx/rx_misc.h: rx_misc.h
299 ${DEST}/include/rx/rx_null.h: rx_null.h
302 ${DEST}/include/rx/xdr.h: xdr.h
305 ${DEST}/include/rx/xdr_prototypes.h: xdr_prototypes.h
312 $(RM) -f *.o *.a core *_component_version_number.c
314 include ../config/Makefile.version