rx: Use _IsLast to check for last call in queue
[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 include @TOP_OBJDIR@/src/config/Makefile.lwp
11 include @TOP_OBJDIR@/src/config/Makefile.lwptool
12
13 MODULE_CFLAGS=$(RXDEBUG) -DRX_REFCOUNT_CHECK
14
15 LT_objs = xdr.lo xdr_array.lo xdr_rx.lo xdr_mem.lo xdr_len.lo xdr_afsuuid.lo \
16           xdr_int32.lo xdr_int64.lo xdr_update.lo xdr_refernce.lo \
17           rx_clock.lo rx_call.lo rx_conn.lo rx_event.lo rx_user.lo rx_lwp.lo \
18           rx_pthread.lo rx.lo rx_null.lo rx_globals.lo rx_getaddr.lo rx_misc.lo \
19           rx_packet.lo rx_peer.lo rx_rdwr.lo rx_trace.lo rx_conncache.lo \
20           rx_opaque.lo rx_identity.lo rx_stats.lo rx_multi.lo \
21           rx_stubs.lo \
22           AFS_component_version_number.lo
23 LT_deps = $(top_builddir)/src/opr/liboafs_opr.la
24 LT_libs = $(MT_LIBS)
25
26 all: \
27         includes \
28         ${TOP_LIBDIR}/librx.a \
29         liboafs_rx.la \
30         librx_pic.la
31
32 depinstall: includes
33
34 rx_user.lo: rx.h rx_user.h rx_prototypes.h
35 rx_packet.lo: rx_packet.c rx_packet.h rx.h
36 rx_rdwr.lo: rx_rdwr.c rx.h rx_prototypes.h
37 rx.lo: rx.h rx_user.h rx_server.h rx_prototypes.h
38 rx_conncache.lo: rx.h rx_prototypes.h
39 rx_trace.lo: rx_trace.h
40 rx_getaddr.lo: rx.h rx_getaddr.c rx_prototypes.h
41 rx_globals.lo: rx.h rx_user.h rx_globals.h rx_prototypes.h
42 xdr_rx.lo: xdr.h rx.h xdr_prototypes.h rx_prototypes.h
43 xdr_refernce.lo: xdr_refernce.c xdr.h xdr_prototypes.h
44
45 librx.a: $(LT_objs)
46         $(LT_LDLIB_lwp) $(LT_objs)
47
48 liboafs_rx.la: liboafs_rx.la.sym $(LT_objs) $(LT_deps)
49         $(LT_LDLIB_shlib) $(LT_objs) $(LT_deps) $(LT_libs)
50
51 # Convenience libraries for libafsrpc
52 librx_pic.la: $(LT_objs)
53         $(LT_LDLIB_pic) $(LT_objs)
54
55 #
56 # Install targets
57 #
58 includes: \
59         ${TOP_INCDIR}/rx/rx_packet.h \
60         ${TOP_INCDIR}/rx/rx_prototypes.h \
61         ${TOP_INCDIR}/rx/rx.h \
62         ${TOP_INCDIR}/rx/rx_atomic.h \
63         ${TOP_INCDIR}/rx/rx_user.h \
64         ${TOP_INCDIR}/rx/rx_event.h \
65         ${TOP_INCDIR}/rx/rx_queue.h \
66         ${TOP_INCDIR}/rx/rx_globals.h \
67         ${TOP_INCDIR}/rx/rx_clock.h \
68         ${TOP_INCDIR}/rx/rx_multi.h \
69         ${TOP_INCDIR}/rx/rx_pthread.h \
70         ${TOP_INCDIR}/rx/rx_lwp.h \
71         ${TOP_INCDIR}/rx/rx_misc.h \
72         ${TOP_INCDIR}/rx/rx_null.h \
73         ${TOP_INCDIR}/rx/rx_opaque.h \
74         ${TOP_INCDIR}/rx/rx_identity.h \
75         ${TOP_INCDIR}/rx/xdr.h \
76         ${TOP_INCDIR}/rx/xdr_prototypes.h
77
78 ${TOP_LIBDIR}/librx.a: librx.a
79         ${INSTALL_DATA} $? $@
80
81 ${TOP_INCDIR}/rx/rx_packet.h: rx_packet.h
82         ${INSTALL_DATA} $? $@
83
84 ${TOP_INCDIR}/rx/rx_prototypes.h: rx_prototypes.h
85         ${INSTALL_DATA} $? $@
86
87 ${TOP_INCDIR}/rx/rx.h: rx.h
88         ${INSTALL_DATA} $? $@
89
90 ${TOP_INCDIR}/rx/rx_atomic.h: rx_atomic.h
91         ${INSTALL_DATA} $? $@
92
93 ${TOP_INCDIR}/rx/rx_user.h: rx_user.h
94         ${INSTALL_DATA} $? $@
95
96 ${TOP_INCDIR}/rx/rx_event.h: rx_event.h
97         ${INSTALL_DATA} $? $@
98
99 ${TOP_INCDIR}/rx/rx_queue.h: rx_queue.h
100         ${INSTALL_DATA} $? $@
101
102 ${TOP_INCDIR}/rx/rx_globals.h: rx_globals.h
103         ${INSTALL_DATA} $? $@
104
105 ${TOP_INCDIR}/rx/rx_clock.h: rx_clock.h
106         ${INSTALL_DATA} $? $@
107
108 ${TOP_INCDIR}/rx/rx_multi.h: rx_multi.h
109         ${INSTALL_DATA} $? $@
110
111 ${TOP_INCDIR}/rx/rx_pthread.h: rx_pthread.h
112         ${INSTALL_DATA} $? $@
113
114 ${TOP_INCDIR}/rx/rx_lwp.h: rx_lwp.h
115         ${INSTALL_DATA} $? $@
116
117 ${TOP_INCDIR}/rx/rx_misc.h: rx_misc.h
118         ${INSTALL_DATA} $? $@
119
120 ${TOP_INCDIR}/rx/rx_null.h: rx_null.h
121         ${INSTALL_DATA} $? $@
122
123 ${TOP_INCDIR}/rx/rx_opaque.h: rx_opaque.h
124         ${INSTALL_DATA} $? $@
125
126 ${TOP_INCDIR}/rx/rx_identity.h: rx_identity.h
127         ${INSTALL_DATA} $? $@
128
129 ${TOP_INCDIR}/rx/xdr.h: xdr.h
130         ${INSTALL_DATA} $? $@
131
132 ${TOP_INCDIR}/rx/xdr_prototypes.h: xdr_prototypes.h
133         ${INSTALL_DATA} $? $@
134
135 ${TOP_INCDIR}/rx/rx_xmit_nt.h: rx_xmit_nt.h
136         ${INSTALL_DATA} $? $@
137
138 install: librx.a
139         ${INSTALL} -d ${DESTDIR}${libdir}
140         ${INSTALL} -d ${DESTDIR}${includedir}/rx
141         ${INSTALL_DATA} librx.a ${DESTDIR}${libdir}/librx.a
142         ${INSTALL_DATA} ${srcdir}/rx_packet.h ${DESTDIR}${includedir}/rx/rx_packet.h
143         ${INSTALL_DATA} ${srcdir}/rx_prototypes.h ${DESTDIR}${includedir}/rx/rx_prototypes.h
144         ${INSTALL_DATA} ${srcdir}/rx.h ${DESTDIR}${includedir}/rx/rx.h
145         ${INSTALL_DATA} ${srcdir}/rx_user.h ${DESTDIR}${includedir}/rx/rx_user.h
146         ${INSTALL_DATA} ${srcdir}/rx_event.h ${DESTDIR}${includedir}/rx/rx_event.h
147         ${INSTALL_DATA} ${srcdir}/rx_queue.h ${DESTDIR}${includedir}/rx/rx_queue.h
148         ${INSTALL_DATA} ${srcdir}/rx_globals.h ${DESTDIR}${includedir}/rx/rx_globals.h
149         ${INSTALL_DATA} ${srcdir}/rx_clock.h ${DESTDIR}${includedir}/rx/rx_clock.h
150         ${INSTALL_DATA} ${srcdir}/rx_multi.h ${DESTDIR}${includedir}/rx/rx_multi.h
151         ${INSTALL_DATA} ${srcdir}/rx_pthread.h ${DESTDIR}${includedir}/rx/rx_pthread.h
152         ${INSTALL_DATA} ${srcdir}/rx_lwp.h ${DESTDIR}${includedir}/rx/rx_lwp.h
153         ${INSTALL_DATA} ${srcdir}/rx_misc.h ${DESTDIR}${includedir}/rx/rx_misc.h
154         ${INSTALL_DATA} ${srcdir}/rx_null.h ${DESTDIR}${includedir}/rx/rx_null.h
155         ${INSTALL_DATA} ${srcdir}/rx_opaque.h \
156                 ${DESTDIR}${includedir}/rx/rx_opaque.h
157         ${INSTALL_DATA} ${srcdir}/xdr.h ${DESTDIR}${includedir}/rx/xdr.h
158         ${INSTALL_DATA} ${srcdir}/xdr_prototypes.h ${DESTDIR}${includedir}/rx/xdr_prototypes.h
159
160 dest: librx.a
161         ${INSTALL} -d ${DEST}/lib
162         ${INSTALL} -d ${DEST}/include/rx
163         ${INSTALL_DATA} librx.a ${DEST}/lib/librx.a
164         ${INSTALL_DATA} ${srcdir}/rx_packet.h ${DEST}/include/rx/rx_packet.h
165         ${INSTALL_DATA} ${srcdir}/rx_prototypes.h ${DEST}/include/rx/rx_prototypes.h
166         ${INSTALL_DATA} ${srcdir}/rx.h ${DEST}/include/rx/rx.h
167         ${INSTALL_DATA} ${srcdir}/rx_user.h ${DEST}/include/rx/rx_user.h
168         ${INSTALL_DATA} ${srcdir}/rx_event.h ${DEST}/include/rx/rx_event.h
169         ${INSTALL_DATA} ${srcdir}/rx_queue.h ${DEST}/include/rx/rx_queue.h
170         ${INSTALL_DATA} ${srcdir}/rx_globals.h ${DEST}/include/rx/rx_globals.h
171         ${INSTALL_DATA} ${srcdir}/rx_clock.h ${DEST}/include/rx/rx_clock.h
172         ${INSTALL_DATA} ${srcdir}/rx_multi.h ${DEST}/include/rx/rx_multi.h
173         ${INSTALL_DATA} ${srcdir}/rx_pthread.h ${DEST}/include/rx/rx_pthread.h
174         ${INSTALL_DATA} ${srcdir}/rx_lwp.h ${DEST}/include/rx/rx_lwp.h
175         ${INSTALL_DATA} ${srcdir}/rx_misc.h ${DEST}/include/rx/rx_misc.h
176         ${INSTALL_DATA} ${srcdir}/rx_null.h ${DEST}/include/rx/rx_null.h
177         ${INSTALL_DATA} ${srcdir}/rx_opaque.h ${DEST}/include/rx/rx_opaque.h
178         ${INSTALL_DATA} ${srcdir}/xdr.h ${DEST}/include/rx/xdr.h
179         ${INSTALL_DATA} ${srcdir}/xdr_prototypes.h ${DEST}/include/rx/xdr_prototypes.h
180
181 #
182 # Misc. targets
183 #
184 clean:
185         $(LT_CLEAN)
186         $(RM) -f *.o *.a core *_component_version_number.c
187
188 include ../config/Makefile.version