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