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 INSTALL_DATA = @INSTALL_DATA@
12 INSTALL_PROGRAM = @INSTALL_PROGRAM@
13 INSTALL_SCRIPT = @INSTALL_SCRIPT@
15 CFLAGS=${COMMON_CFLAGS} ${XCFLAGS} ${ARCHFLAGS} ${RXDEBUG}
18 # Generic xdr objects (or, at least, xdr stuff that's not newly defined for rx).
19 # Really the xdr stuff should be in its own directory.
21 XDROBJS_common = xdr.o xdr_array.o xdr_rx.o xdr_mem.o xdr_afsuuid.o
23 XDROBJS = xdr_arrayn.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}
31 MULTIOBJS = rx_multi.o
33 LIBOBJS = ${RXOBJS} ${MULTIOBJS} ${XDROBJS}
35 BASICINCLS=${TOP_INCDIR}/lwp.h ${TOP_INCDIR}/lock.h \
36 rx_clock.h rx_queue.h rx_event.h
38 LIBS=librx.a ${TOP_LIBDIR}/liblwp.a ${TOP_LIBDIR}/libcmd.a \
47 RX_component_version_number.c: AFS_component_version_number.c
48 sed 's/cml_version/rx_cml_version/' <AFS_component_version_number.c >RX_component_version_number.c
50 RX_component_version_number.o: RX_component_version_number.c
52 ${RXOBJS}: ${BASICINCLS} rx.h rx_user.h rx_globals.h rx_prototypes.h
54 ${MULTIOBJS}: rx.h rx_multi.h rx_prototypes.h
56 ${XDROBJS}: xdr.h xdr_prototypes.h
58 rxperf.o: rx.h rx_null.h rx_globals.h rx_prototypes.h
60 rx_user.o: rx.h rx_user.h rx_prototypes.h
62 rx_packet.o: rx_packet.c rx_packet.h rx.h
64 rx_rdwr.o: rx_rdwr.c rx.h rx_prototypes.h
66 rx.o: rx.h rx_user.h rx_prototypes.h
68 rx_conncache.o: rx.h rx_prototypes.h
70 rx_trace.o: rx_trace.h
72 rx_getaddr.o: rx.h rx_getaddr.c rx_prototypes.h
74 rx_globals.o: rx.h rx_user.h rx_globals.h rx_prototypes.h
76 xdr_rx.o: xdr.h rx.h xdr_prototypes.h rx_prototypes.h
78 xdr_refernce.o: xdr_refernce.c xdr.h xdr_prototypes.h
80 rxperf: rxperf.o librx.a
81 ${CC} -o $@ rxperf.o ${LIBS}
83 librx.a: ${LIBOBJS} RX_component_version_number.o
85 $(AR) crv $@ ${LIBOBJS} RX_component_version_number.o
92 ${TOP_INCDIR}/rx/rx_packet.h \
93 ${TOP_INCDIR}/rx/rx_prototypes.h \
94 ${TOP_INCDIR}/rx/rx.h \
95 ${TOP_INCDIR}/rx/rx_user.h \
96 ${TOP_INCDIR}/rx/rx_event.h \
97 ${TOP_INCDIR}/rx/rx_queue.h \
98 ${TOP_INCDIR}/rx/rx_globals.h \
99 ${TOP_INCDIR}/rx/rx_clock.h \
100 ${TOP_INCDIR}/rx/rx_multi.h \
101 ${TOP_INCDIR}/rx/rx_pthread.h \
102 ${TOP_INCDIR}/rx/rx_lwp.h \
103 ${TOP_INCDIR}/rx/rx_misc.h \
104 ${TOP_INCDIR}/rx/rx_null.h \
105 ${TOP_INCDIR}/rx/xdr.h \
106 ${TOP_INCDIR}/rx/xdr_prototypes.h
108 ${TOP_LIBDIR}/librx.a: librx.a
109 ${INSTALL_DATA} $? $@
111 ${TOP_INCDIR}/rx/rx_packet.h: rx_packet.h
112 ${INSTALL_DATA} $? $@
114 ${TOP_INCDIR}/rx/rx_prototypes.h: rx_prototypes.h
115 ${INSTALL_DATA} $? $@
117 ${TOP_INCDIR}/rx/rx.h: rx.h
118 ${INSTALL_DATA} $? $@
120 ${TOP_INCDIR}/rx/rx_user.h: rx_user.h
121 ${INSTALL_DATA} $? $@
123 ${TOP_INCDIR}/rx/rx_event.h: rx_event.h
124 ${INSTALL_DATA} $? $@
126 ${TOP_INCDIR}/rx/rx_queue.h: rx_queue.h
127 ${INSTALL_DATA} $? $@
129 ${TOP_INCDIR}/rx/rx_globals.h: rx_globals.h
130 ${INSTALL_DATA} $? $@
132 ${TOP_INCDIR}/rx/rx_clock.h: rx_clock.h
133 ${INSTALL_DATA} $? $@
135 ${TOP_INCDIR}/rx/rx_multi.h: rx_multi.h
136 ${INSTALL_DATA} $? $@
138 ${TOP_INCDIR}/rx/rx_pthread.h: rx_pthread.h
139 ${INSTALL_DATA} $? $@
141 ${TOP_INCDIR}/rx/rx_lwp.h: rx_lwp.h
142 ${INSTALL_DATA} $? $@
144 ${TOP_INCDIR}/rx/rx_misc.h: rx_misc.h
145 ${INSTALL_DATA} $? $@
147 ${TOP_INCDIR}/rx/rx_null.h: rx_null.h
148 ${INSTALL_DATA} $? $@
150 ${TOP_INCDIR}/rx/xdr.h: xdr.h
151 ${INSTALL_DATA} $? $@
153 ${TOP_INCDIR}/rx/xdr_prototypes.h: xdr_prototypes.h
154 ${INSTALL_DATA} $? $@
156 ${TOP_INCDIR}/rx/rx_xmit_nt.h: rx_xmit_nt.h
157 ${INSTALL_DATA} $? $@
160 ${INSTALL} -d ${DESTDIR}${libdir}
161 ${INSTALL} -d ${DESTDIR}${includedir}/rx
162 ${INSTALL_DATA} librx.a ${DESTDIR}${libdir}/librx.a
163 ${INSTALL_DATA} rx_packet.h ${DESTDIR}${includedir}/rx/rx_packet.h
164 ${INSTALL_DATA} rx_prototypes.h ${DESTDIR}${includedir}/rx/rx_prototypes.h
165 ${INSTALL_DATA} rx.h ${DESTDIR}${includedir}/rx/rx.h
166 ${INSTALL_DATA} rx_user.h ${DESTDIR}${includedir}/rx/rx_user.h
167 ${INSTALL_DATA} rx_event.h ${DESTDIR}${includedir}/rx/rx_event.h
168 ${INSTALL_DATA} rx_queue.h ${DESTDIR}${includedir}/rx/rx_queue.h
169 ${INSTALL_DATA} rx_globals.h ${DESTDIR}${includedir}/rx/rx_globals.h
170 ${INSTALL_DATA} rx_clock.h ${DESTDIR}${includedir}/rx/rx_clock.h
171 ${INSTALL_DATA} rx_multi.h ${DESTDIR}${includedir}/rx/rx_multi.h
172 ${INSTALL_DATA} rx_pthread.h ${DESTDIR}${includedir}/rx/rx_pthread.h
173 ${INSTALL_DATA} rx_lwp.h ${DESTDIR}${includedir}/rx/rx_lwp.h
174 ${INSTALL_DATA} rx_misc.h ${DESTDIR}${includedir}/rx/rx_misc.h
175 ${INSTALL_DATA} rx_null.h ${DESTDIR}${includedir}/rx/rx_null.h
176 ${INSTALL_DATA} xdr.h ${DESTDIR}${includedir}/rx/xdr.h
177 ${INSTALL_DATA} xdr_prototypes.h ${DESTDIR}${includedir}/rx/xdr_prototypes.h
180 ${INSTALL} -d ${DEST}/lib
181 ${INSTALL} -d ${DEST}/include/rx
182 ${INSTALL_DATA} librx.a ${DEST}/lib/librx.a
183 ${INSTALL_DATA} rx_packet.h ${DEST}/include/rx/rx_packet.h
184 ${INSTALL_DATA} rx_prototypes.h ${DEST}/include/rx/rx_prototypes.h
185 ${INSTALL_DATA} rx.h ${DEST}/include/rx/rx.h
186 ${INSTALL_DATA} rx_user.h ${DEST}/include/rx/rx_user.h
187 ${INSTALL_DATA} rx_event.h ${DEST}/include/rx/rx_event.h
188 ${INSTALL_DATA} rx_queue.h ${DEST}/include/rx/rx_queue.h
189 ${INSTALL_DATA} rx_globals.h ${DEST}/include/rx/rx_globals.h
190 ${INSTALL_DATA} rx_clock.h ${DEST}/include/rx/rx_clock.h
191 ${INSTALL_DATA} rx_multi.h ${DEST}/include/rx/rx_multi.h
192 ${INSTALL_DATA} rx_pthread.h ${DEST}/include/rx/rx_pthread.h
193 ${INSTALL_DATA} rx_lwp.h ${DEST}/include/rx/rx_lwp.h
194 ${INSTALL_DATA} rx_misc.h ${DEST}/include/rx/rx_misc.h
195 ${INSTALL_DATA} rx_null.h ${DEST}/include/rx/rx_null.h
196 ${INSTALL_DATA} xdr.h ${DEST}/include/rx/xdr.h
197 ${INSTALL_DATA} xdr_prototypes.h ${DEST}/include/rx/xdr_prototypes.h
203 $(RM) -f *.o *.a core *_component_version_number.c
205 include ../config/Makefile.version