rx: Make rx_atomic.h a shared header
[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
12 INSTALL = @INSTALL@
13 INSTALL_DATA = @INSTALL_DATA@
14 INSTALL_PROGRAM = @INSTALL_PROGRAM@
15 INSTALL_SCRIPT = @INSTALL_SCRIPT@
16
17 MODULE_CFLAGS=$(RXDEBUG)
18
19 #
20 # Generic xdr objects (or, at least, xdr stuff that's not newly defined for rx).
21 # Really the xdr stuff should be in its own directory.
22 #
23 XDROBJS_common = xdr.o xdr_array.o xdr_rx.o xdr_mem.o xdr_len.o xdr_afsuuid.o
24
25 XDROBJS = xdr_arrayn.o ${XDROBJS_common}
26
27 RXOBJS_common = rx_clock.o rx_event.o rx_user.o rx_lwp.o rx.o rx_null.o \
28         rx_globals.o rx_getaddr.o rx_misc.o rx_packet.o rx_rdwr.o rx_trace.o \
29         rx_conncache.o rx_opaque.o rx_identity.o rx_stats.o \
30         xdr_int32.o xdr_int64.o xdr_update.o xdr_refernce.o
31
32 RXOBJS = ${RXOBJS_common} 
33
34 MULTIOBJS = rx_multi.o
35
36 LIBOBJS = ${RXOBJS} ${MULTIOBJS} ${XDROBJS}
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 RX_component_version_number.c: AFS_component_version_number.c
51         sed 's/cml_version/rx_cml_version/' <AFS_component_version_number.c >RX_component_version_number.c
52
53 RX_component_version_number.o: RX_component_version_number.c
54
55 ${RXOBJS}: ${BASICINCLS} rx.h rx_user.h rx_globals.h rx_prototypes.h
56
57 ${MULTIOBJS}: rx.h rx_multi.h rx_prototypes.h
58
59 ${XDROBJS}: xdr.h xdr_prototypes.h
60
61 rx_user.o: rx.h rx_user.h rx_prototypes.h
62
63 rx_packet.o: rx_packet.c rx_packet.h rx.h
64
65 rx_rdwr.o: rx_rdwr.c rx.h rx_prototypes.h
66
67 rx.o: rx.h rx_user.h rx_prototypes.h
68
69 rx_conncache.o: rx.h rx_prototypes.h
70
71 rx_trace.o: rx_trace.h
72
73 rx_getaddr.o: rx.h rx_getaddr.c rx_prototypes.h
74
75 rx_globals.o: rx.h rx_user.h rx_globals.h rx_prototypes.h
76
77 xdr_rx.o: xdr.h rx.h xdr_prototypes.h rx_prototypes.h
78
79 xdr_refernce.o: xdr_refernce.c xdr.h xdr_prototypes.h
80
81 librx.a: ${LIBOBJS} RX_component_version_number.o
82         -$(RM) -f $@
83         $(AR) crv $@ ${LIBOBJS} RX_component_version_number.o
84         $(RANLIB) $@
85
86 #
87 # Install targets
88 #
89 includes: \
90         ${TOP_INCDIR}/rx/rx_packet.h \
91         ${TOP_INCDIR}/rx/rx_prototypes.h \
92         ${TOP_INCDIR}/rx/rx.h \
93         ${TOP_INCDIR}/rx/rx_atomic.h \
94         ${TOP_INCDIR}/rx/rx_user.h \
95         ${TOP_INCDIR}/rx/rx_event.h \
96         ${TOP_INCDIR}/rx/rx_queue.h \
97         ${TOP_INCDIR}/rx/rx_globals.h \
98         ${TOP_INCDIR}/rx/rx_clock.h \
99         ${TOP_INCDIR}/rx/rx_multi.h \
100         ${TOP_INCDIR}/rx/rx_pthread.h \
101         ${TOP_INCDIR}/rx/rx_lwp.h \
102         ${TOP_INCDIR}/rx/rx_misc.h \
103         ${TOP_INCDIR}/rx/rx_null.h \
104         ${TOP_INCDIR}/rx/rx_opaque.h \
105         ${TOP_INCDIR}/rx/rx_identity.h \
106         ${TOP_INCDIR}/rx/xdr.h \
107         ${TOP_INCDIR}/rx/xdr_prototypes.h
108
109 ${TOP_LIBDIR}/librx.a: librx.a
110         ${INSTALL_DATA} $? $@
111
112 ${TOP_INCDIR}/rx/rx_packet.h: rx_packet.h
113         ${INSTALL_DATA} $? $@
114
115 ${TOP_INCDIR}/rx/rx_prototypes.h: rx_prototypes.h
116         ${INSTALL_DATA} $? $@
117
118 ${TOP_INCDIR}/rx/rx.h: rx.h
119         ${INSTALL_DATA} $? $@
120
121 ${TOP_INCDIR}/rx/rx_atomic.h: rx_atomic.h
122         ${INSTALL_DATA} $? $@
123
124 ${TOP_INCDIR}/rx/rx_user.h: rx_user.h
125         ${INSTALL_DATA} $? $@
126
127 ${TOP_INCDIR}/rx/rx_event.h: rx_event.h
128         ${INSTALL_DATA} $? $@
129
130 ${TOP_INCDIR}/rx/rx_queue.h: rx_queue.h
131         ${INSTALL_DATA} $? $@
132
133 ${TOP_INCDIR}/rx/rx_globals.h: rx_globals.h
134         ${INSTALL_DATA} $? $@
135
136 ${TOP_INCDIR}/rx/rx_clock.h: rx_clock.h
137         ${INSTALL_DATA} $? $@
138
139 ${TOP_INCDIR}/rx/rx_multi.h: rx_multi.h
140         ${INSTALL_DATA} $? $@
141
142 ${TOP_INCDIR}/rx/rx_pthread.h: rx_pthread.h
143         ${INSTALL_DATA} $? $@
144
145 ${TOP_INCDIR}/rx/rx_lwp.h: rx_lwp.h
146         ${INSTALL_DATA} $? $@
147
148 ${TOP_INCDIR}/rx/rx_misc.h: rx_misc.h
149         ${INSTALL_DATA} $? $@
150
151 ${TOP_INCDIR}/rx/rx_null.h: rx_null.h
152         ${INSTALL_DATA} $? $@
153
154 ${TOP_INCDIR}/rx/rx_opaque.h: rx_opaque.h
155         ${INSTALL_DATA} $? $@
156
157 ${TOP_INCDIR}/rx/rx_identity.h: rx_identity.h
158         ${INSTALL_DATA} $? $@
159
160 ${TOP_INCDIR}/rx/xdr.h: xdr.h
161         ${INSTALL_DATA} $? $@
162
163 ${TOP_INCDIR}/rx/xdr_prototypes.h: xdr_prototypes.h
164         ${INSTALL_DATA} $? $@
165
166 ${TOP_INCDIR}/rx/rx_xmit_nt.h: rx_xmit_nt.h 
167         ${INSTALL_DATA} $? $@
168
169 install: librx.a
170         ${INSTALL} -d ${DESTDIR}${libdir}
171         ${INSTALL} -d ${DESTDIR}${includedir}/rx
172         ${INSTALL_DATA} librx.a ${DESTDIR}${libdir}/librx.a
173         ${INSTALL_DATA} ${srcdir}/rx_packet.h ${DESTDIR}${includedir}/rx/rx_packet.h
174         ${INSTALL_DATA} ${srcdir}/rx_prototypes.h ${DESTDIR}${includedir}/rx/rx_prototypes.h
175         ${INSTALL_DATA} ${srcdir}/rx.h ${DESTDIR}${includedir}/rx/rx.h
176         ${INSTALL_DATA} ${srcdir}/rx_user.h ${DESTDIR}${includedir}/rx/rx_user.h
177         ${INSTALL_DATA} ${srcdir}/rx_event.h ${DESTDIR}${includedir}/rx/rx_event.h
178         ${INSTALL_DATA} ${srcdir}/rx_queue.h ${DESTDIR}${includedir}/rx/rx_queue.h
179         ${INSTALL_DATA} ${srcdir}/rx_globals.h ${DESTDIR}${includedir}/rx/rx_globals.h
180         ${INSTALL_DATA} ${srcdir}/rx_clock.h ${DESTDIR}${includedir}/rx/rx_clock.h
181         ${INSTALL_DATA} ${srcdir}/rx_multi.h ${DESTDIR}${includedir}/rx/rx_multi.h
182         ${INSTALL_DATA} ${srcdir}/rx_pthread.h ${DESTDIR}${includedir}/rx/rx_pthread.h
183         ${INSTALL_DATA} ${srcdir}/rx_lwp.h ${DESTDIR}${includedir}/rx/rx_lwp.h
184         ${INSTALL_DATA} ${srcdir}/rx_misc.h ${DESTDIR}${includedir}/rx/rx_misc.h
185         ${INSTALL_DATA} ${srcdir}/rx_null.h ${DESTDIR}${includedir}/rx/rx_null.h
186         ${INSTALL_DATA} ${srcdir}/rx_opaque.h \
187                 ${DESTDIR}${includedir}/rx/rx_opaque.h
188         ${INSTALL_DATA} ${srcdir}/xdr.h ${DESTDIR}${includedir}/rx/xdr.h
189         ${INSTALL_DATA} ${srcdir}/xdr_prototypes.h ${DESTDIR}${includedir}/rx/xdr_prototypes.h
190
191 dest: librx.a
192         ${INSTALL} -d ${DEST}/lib
193         ${INSTALL} -d ${DEST}/include/rx
194         ${INSTALL_DATA} librx.a ${DEST}/lib/librx.a
195         ${INSTALL_DATA} ${srcdir}/rx_packet.h ${DEST}/include/rx/rx_packet.h
196         ${INSTALL_DATA} ${srcdir}/rx_prototypes.h ${DEST}/include/rx/rx_prototypes.h
197         ${INSTALL_DATA} ${srcdir}/rx.h ${DEST}/include/rx/rx.h
198         ${INSTALL_DATA} ${srcdir}/rx_user.h ${DEST}/include/rx/rx_user.h
199         ${INSTALL_DATA} ${srcdir}/rx_event.h ${DEST}/include/rx/rx_event.h
200         ${INSTALL_DATA} ${srcdir}/rx_queue.h ${DEST}/include/rx/rx_queue.h
201         ${INSTALL_DATA} ${srcdir}/rx_globals.h ${DEST}/include/rx/rx_globals.h
202         ${INSTALL_DATA} ${srcdir}/rx_clock.h ${DEST}/include/rx/rx_clock.h
203         ${INSTALL_DATA} ${srcdir}/rx_multi.h ${DEST}/include/rx/rx_multi.h
204         ${INSTALL_DATA} ${srcdir}/rx_pthread.h ${DEST}/include/rx/rx_pthread.h
205         ${INSTALL_DATA} ${srcdir}/rx_lwp.h ${DEST}/include/rx/rx_lwp.h
206         ${INSTALL_DATA} ${srcdir}/rx_misc.h ${DEST}/include/rx/rx_misc.h
207         ${INSTALL_DATA} ${srcdir}/rx_null.h ${DEST}/include/rx/rx_null.h
208         ${INSTALL_DATA} ${srcdir}/rx_opaque.h ${DEST}/include/rx/rx_opaque.h
209         ${INSTALL_DATA} ${srcdir}/xdr.h ${DEST}/include/rx/xdr.h
210         ${INSTALL_DATA} ${srcdir}/xdr_prototypes.h ${DEST}/include/rx/xdr_prototypes.h
211
212 #
213 # Misc. targets
214 #
215 clean:
216         $(RM) -f *.o *.a core *_component_version_number.c
217
218 include ../config/Makefile.version