darwin-x86-and-leopard-20060309
[openafs.git] / src / rx / Makefile.in
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 srcdir=@srcdir@
9 include @TOP_OBJDIR@/src/config/Makefile.config
10
11 CFLAGS=${COMMON_CFLAGS} ${XCFLAGS} ${ARCHFLAGS} -DRXDEBUG
12
13 #
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.
16 #
17 XDROBJS_common = xdr.o xdr_array.o xdr_rx.o xdr_afsuuid.o
18
19 XDROBJS = xdr_arrayn.o ${XDROBJS_common}
20
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}
24
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
28
29 RXOBJS = ${RXOBJS_common} 
30 RXOBJS_djgpp = ${RXOBJS_common} rx_xmit_nt.o
31
32 MULTIOBJS = rx_multi.o
33
34 LIBOBJS = ${RXOBJS} ${MULTIOBJS} ${XDROBJS}
35
36 LIBOBJS_djgpp = ${RXOBJS_djgpp} ${MULTIOBJS} ${XDROBJS_djgpp}
37
38 BASICINCLS=${TOP_INCDIR}/lwp.h ${TOP_INCDIR}/lock.h \
39              rx_clock.h rx_queue.h rx_event.h
40
41 LIBS=librx.a ${TOP_LIBDIR}/liblwp.a ${TOP_LIBDIR}/libcmd.a \
42                ${TOP_LIBDIR}/util.a
43
44 all: \
45         includes \
46         ${TOP_LIBDIR}/librx.a
47
48 depinstall: includes
49
50 install-djgpp: \
51         includes \
52         ${TOP_INCDIR}/rx/rx_xmit_nt.h \
53         ${TOP_LIBDIR}/librx-djgpp.a
54
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
57
58 RX_component_version_number.o: RX_component_version_number.c
59
60 ${RXOBJS}: ${BASICINCLS} rx.h rx_user.h rx_globals.h rx_prototypes.h
61
62 ${MULTIOBJS}: rx.h rx_multi.h rx_prototypes.h
63
64 ${XDROBJS}: xdr.h xdr_prototypes.h
65
66 rxperf.o: rx.h rx_null.h rx_globals.h rx_prototypes.h
67
68 rx_user.o: rx.h rx_user.h rx_prototypes.h
69
70 rx_packet.o: rx_packet.c rx_packet.h
71
72 rx_rdwr.o: rx_rdwr.c rx.h rx_prototypes.h
73
74 rx.o: rx.h rx_user.h rx_prototypes.h
75
76 rx_conncache.o: rx.h rx_prototypes.h
77
78 rx_trace.o: rx_trace.h 
79
80 rx_getaddr.o: rx.h rx_getaddr.c rx_prototypes.h
81
82 rx_globals.o: rx.h rx_user.h rx_globals.h rx_prototypes.h
83
84 xdr_rx.o: xdr.h rx.h xdr_prototypes.h rx_prototypes.h
85
86 xdr_refernce.o: xdr_refernce.c xdr.h xdr_prototypes.h
87
88 rxperf: rxperf.o librx.a
89         ${CC} -o $@ rxperf.o ${LIBS}
90
91 librx.a: ${LIBOBJS} RX_component_version_number.o
92         -$(RM) -f $@
93         $(AR) crv $@ ${LIBOBJS} RX_component_version_number.o
94         $(RANLIB) $@
95
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
100
101 #
102 # Install targets
103 #
104
105 includes: \
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
121
122 ${TOP_LIBDIR}/librx.a: librx.a
123         ${INSTALL} $? $@
124
125 ${TOP_LIBDIR}/librx-djgpp.a: librx-djgpp.a
126         ${INSTALL} $? ${TOP_LIBDIR}/librx-djgpp.a
127         ${INSTALL} $? ${TOP_LIBDIR}/librx.a
128
129 ${TOP_INCDIR}/rx/rx_packet.h: rx_packet.h
130         ${INSTALL} $? $@
131
132 ${TOP_INCDIR}/rx/rx_prototypes.h: rx_prototypes.h
133         ${INSTALL} $? $@
134
135 ${TOP_INCDIR}/rx/rx.h: rx.h
136         ${INSTALL} $? $@
137
138 ${TOP_INCDIR}/rx/rx_user.h: rx_user.h
139         ${INSTALL} $? $@
140
141 ${TOP_INCDIR}/rx/rx_event.h: rx_event.h
142         ${INSTALL} $? $@
143
144 ${TOP_INCDIR}/rx/rx_queue.h: rx_queue.h
145         ${INSTALL} $? $@
146
147 ${TOP_INCDIR}/rx/rx_globals.h: rx_globals.h
148         ${INSTALL} $? $@
149
150 ${TOP_INCDIR}/rx/rx_clock.h: rx_clock.h
151         ${INSTALL} $? $@
152
153 ${TOP_INCDIR}/rx/rx_multi.h: rx_multi.h
154         ${INSTALL} $? $@
155
156 ${TOP_INCDIR}/rx/rx_pthread.h: rx_pthread.h
157         ${INSTALL} $? $@
158
159 ${TOP_INCDIR}/rx/rx_lwp.h: rx_lwp.h
160         ${INSTALL} $? $@
161
162 ${TOP_INCDIR}/rx/rx_misc.h: rx_misc.h
163         ${INSTALL} $? $@
164
165 ${TOP_INCDIR}/rx/rx_null.h: rx_null.h
166         ${INSTALL} $? $@
167
168 ${TOP_INCDIR}/rx/xdr.h: xdr.h
169         ${INSTALL} $? $@
170
171 ${TOP_INCDIR}/rx/xdr_prototypes.h: xdr_prototypes.h
172         ${INSTALL} $? $@
173
174 ${TOP_INCDIR}/rx/rx_xmit_nt.h: rx_xmit_nt.h 
175         ${INSTALL} $? $@
176
177 install: \
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
194
195 ${DESTDIR}${libdir}/librx.a: librx.a
196         ${INSTALL} $? $@
197
198 ${DESTDIR}${includedir}/rx/rx_packet.h: rx_packet.h
199         ${INSTALL} $? $@
200
201 ${DESTDIR}${includedir}/rx/rx_prototypes.h: rx_prototypes.h
202         ${INSTALL} $? $@
203
204 ${DESTDIR}${includedir}/rx/rx.h: rx.h
205         ${INSTALL} $? $@
206
207 ${DESTDIR}${includedir}/rx/rx_user.h: rx_user.h
208         ${INSTALL} $? $@
209
210 ${DESTDIR}${includedir}/rx/rx_event.h: rx_event.h
211         ${INSTALL} $? $@
212
213 ${DESTDIR}${includedir}/rx/rx_queue.h: rx_queue.h
214         ${INSTALL} $? $@
215
216 ${DESTDIR}${includedir}/rx/rx_globals.h: rx_globals.h
217         ${INSTALL} $? $@
218
219 ${DESTDIR}${includedir}/rx/rx_clock.h: rx_clock.h
220         ${INSTALL} $? $@
221
222 ${DESTDIR}${includedir}/rx/rx_multi.h: rx_multi.h
223         ${INSTALL} $? $@
224
225 ${DESTDIR}${includedir}/rx/rx_pthread.h: rx_pthread.h
226         ${INSTALL} $? $@
227
228 ${DESTDIR}${includedir}/rx/rx_lwp.h: rx_lwp.h
229         ${INSTALL} $? $@
230
231 ${DESTDIR}${includedir}/rx/rx_misc.h: rx_misc.h
232         ${INSTALL} $? $@
233
234 ${DESTDIR}${includedir}/rx/rx_null.h: rx_null.h
235         ${INSTALL} $? $@
236
237 ${DESTDIR}${includedir}/rx/xdr_prototypes.h: xdr_prototypes.h
238         ${INSTALL} $? $@
239
240 ${DESTDIR}${includedir}/rx/xdr.h: xdr.h
241         ${INSTALL} $? $@
242
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
259
260 ${DEST}/lib/librx.a: librx.a
261         ${INSTALL} $? $@
262
263 ${DEST}/include/rx/rx_packet.h: rx_packet.h
264         ${INSTALL} $? $@
265
266 ${DEST}/include/rx/rx_prototypes.h: rx_prototypes.h
267         ${INSTALL} $? $@
268
269 ${DEST}/include/rx/rx.h: rx.h
270         ${INSTALL} $? $@
271
272 ${DEST}/include/rx/rx_user.h: rx_user.h
273         ${INSTALL} $? $@
274
275 ${DEST}/include/rx/rx_event.h: rx_event.h
276         ${INSTALL} $? $@
277
278 ${DEST}/include/rx/rx_queue.h: rx_queue.h
279         ${INSTALL} $? $@
280
281 ${DEST}/include/rx/rx_globals.h: rx_globals.h
282         ${INSTALL} $? $@
283
284 ${DEST}/include/rx/rx_clock.h: rx_clock.h
285         ${INSTALL} $? $@
286
287 ${DEST}/include/rx/rx_multi.h: rx_multi.h
288         ${INSTALL} $? $@
289
290 ${DEST}/include/rx/rx_pthread.h: rx_pthread.h
291         ${INSTALL} $? $@
292
293 ${DEST}/include/rx/rx_lwp.h: rx_lwp.h
294         ${INSTALL} $? $@
295
296 ${DEST}/include/rx/rx_misc.h: rx_misc.h
297         ${INSTALL} $? $@
298
299 ${DEST}/include/rx/rx_null.h: rx_null.h
300         ${INSTALL} $? $@
301
302 ${DEST}/include/rx/xdr.h: xdr.h
303         ${INSTALL} $? $@
304
305 ${DEST}/include/rx/xdr_prototypes.h: xdr_prototypes.h
306         ${INSTALL} $? $@
307
308 #
309 # Misc. targets
310 #
311 clean:
312         $(RM) -f *.o *.a core *_component_version_number.c
313
314 include ../config/Makefile.version