death-to-pinstall-20060801
[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 RXOBJS_common = rx_clock.o rx_event.o rx_user.o rx_lwp.o rx.o rx_null.o \
22         rx_globals.o rx_getaddr.o rx_misc.o rx_packet.o rx_rdwr.o rx_trace.o \
23         rx_conncache.o xdr_int32.o xdr_int64.o xdr_update.o xdr_refernce.o
24
25 RXOBJS = ${RXOBJS_common} 
26
27 MULTIOBJS = rx_multi.o
28
29 LIBOBJS = ${RXOBJS} ${MULTIOBJS} ${XDROBJS}
30
31 BASICINCLS=${TOP_INCDIR}/lwp.h ${TOP_INCDIR}/lock.h \
32              rx_clock.h rx_queue.h rx_event.h
33
34 LIBS=librx.a ${TOP_LIBDIR}/liblwp.a ${TOP_LIBDIR}/libcmd.a \
35                ${TOP_LIBDIR}/util.a
36
37 all: \
38         includes \
39         ${TOP_LIBDIR}/librx.a
40
41 depinstall: includes
42
43 RX_component_version_number.c: AFS_component_version_number.c
44         sed 's/cml_version/rx_cml_version/' <AFS_component_version_number.c >RX_component_version_number.c
45
46 RX_component_version_number.o: RX_component_version_number.c
47
48 ${RXOBJS}: ${BASICINCLS} rx.h rx_user.h rx_globals.h rx_prototypes.h
49
50 ${MULTIOBJS}: rx.h rx_multi.h rx_prototypes.h
51
52 ${XDROBJS}: xdr.h xdr_prototypes.h
53
54 rxperf.o: rx.h rx_null.h rx_globals.h rx_prototypes.h
55
56 rx_user.o: rx.h rx_user.h rx_prototypes.h
57
58 rx_packet.o: rx_packet.c rx_packet.h
59
60 rx_rdwr.o: rx_rdwr.c rx.h rx_prototypes.h
61
62 rx.o: rx.h rx_user.h rx_prototypes.h
63
64 rx_conncache.o: rx.h rx_prototypes.h
65
66 rx_trace.o: rx_trace.h 
67
68 rx_getaddr.o: rx.h rx_getaddr.c rx_prototypes.h
69
70 rx_globals.o: rx.h rx_user.h rx_globals.h rx_prototypes.h
71
72 xdr_rx.o: xdr.h rx.h xdr_prototypes.h rx_prototypes.h
73
74 xdr_refernce.o: xdr_refernce.c xdr.h xdr_prototypes.h
75
76 rxperf: rxperf.o librx.a
77         ${CC} -o $@ rxperf.o ${LIBS}
78
79 librx.a: ${LIBOBJS} RX_component_version_number.o
80         -$(RM) -f $@
81         $(AR) crv $@ ${LIBOBJS} RX_component_version_number.o
82         $(RANLIB) $@
83
84 #
85 # Install targets
86 #
87 includes: \
88         ${TOP_INCDIR}/rx/rx_packet.h \
89         ${TOP_INCDIR}/rx/rx_prototypes.h \
90         ${TOP_INCDIR}/rx/rx.h \
91         ${TOP_INCDIR}/rx/rx_user.h \
92         ${TOP_INCDIR}/rx/rx_event.h \
93         ${TOP_INCDIR}/rx/rx_queue.h \
94         ${TOP_INCDIR}/rx/rx_globals.h \
95         ${TOP_INCDIR}/rx/rx_clock.h \
96         ${TOP_INCDIR}/rx/rx_multi.h \
97         ${TOP_INCDIR}/rx/rx_pthread.h \
98         ${TOP_INCDIR}/rx/rx_lwp.h \
99         ${TOP_INCDIR}/rx/rx_misc.h \
100         ${TOP_INCDIR}/rx/rx_null.h \
101         ${TOP_INCDIR}/rx/xdr.h \
102         ${TOP_INCDIR}/rx/xdr_prototypes.h
103
104 ${TOP_LIBDIR}/librx.a: librx.a
105         ${INSTALL_DATA} $? $@
106
107 ${TOP_INCDIR}/rx/rx_packet.h: rx_packet.h
108         ${INSTALL_DATA} $? $@
109
110 ${TOP_INCDIR}/rx/rx_prototypes.h: rx_prototypes.h
111         ${INSTALL_DATA} $? $@
112
113 ${TOP_INCDIR}/rx/rx.h: rx.h
114         ${INSTALL_DATA} $? $@
115
116 ${TOP_INCDIR}/rx/rx_user.h: rx_user.h
117         ${INSTALL_DATA} $? $@
118
119 ${TOP_INCDIR}/rx/rx_event.h: rx_event.h
120         ${INSTALL_DATA} $? $@
121
122 ${TOP_INCDIR}/rx/rx_queue.h: rx_queue.h
123         ${INSTALL_DATA} $? $@
124
125 ${TOP_INCDIR}/rx/rx_globals.h: rx_globals.h
126         ${INSTALL_DATA} $? $@
127
128 ${TOP_INCDIR}/rx/rx_clock.h: rx_clock.h
129         ${INSTALL_DATA} $? $@
130
131 ${TOP_INCDIR}/rx/rx_multi.h: rx_multi.h
132         ${INSTALL_DATA} $? $@
133
134 ${TOP_INCDIR}/rx/rx_pthread.h: rx_pthread.h
135         ${INSTALL_DATA} $? $@
136
137 ${TOP_INCDIR}/rx/rx_lwp.h: rx_lwp.h
138         ${INSTALL_DATA} $? $@
139
140 ${TOP_INCDIR}/rx/rx_misc.h: rx_misc.h
141         ${INSTALL_DATA} $? $@
142
143 ${TOP_INCDIR}/rx/rx_null.h: rx_null.h
144         ${INSTALL_DATA} $? $@
145
146 ${TOP_INCDIR}/rx/xdr.h: xdr.h
147         ${INSTALL_DATA} $? $@
148
149 ${TOP_INCDIR}/rx/xdr_prototypes.h: xdr_prototypes.h
150         ${INSTALL_DATA} $? $@
151
152 ${TOP_INCDIR}/rx/rx_xmit_nt.h: rx_xmit_nt.h 
153         ${INSTALL_DATA} $? $@
154
155 install: librx.a
156         ${INSTALL} -d ${DESTDIR}${libdir}
157         ${INSTALL} -d ${DESTDIR}${includedir}/rx
158         ${INSTALL_DATA} librx.a ${DESTDIR}${libdir}/librx.a
159         ${INSTALL_DATA} rx_packet.h ${DESTDIR}${includedir}/rx/rx_packet.h
160         ${INSTALL_DATA} rx_prototypes.h ${DESTDIR}${includedir}/rx/rx_prototypes.h
161         ${INSTALL_DATA} rx.h ${DESTDIR}${includedir}/rx/rx.h
162         ${INSTALL_DATA} rx_user.h ${DESTDIR}${includedir}/rx/rx_user.h
163         ${INSTALL_DATA} rx_event.h ${DESTDIR}${includedir}/rx/rx_event.h
164         ${INSTALL_DATA} rx_queue.h ${DESTDIR}${includedir}/rx/rx_queue.h
165         ${INSTALL_DATA} rx_globals.h ${DESTDIR}${includedir}/rx/rx_globals.h
166         ${INSTALL_DATA} rx_clock.h ${DESTDIR}${includedir}/rx/rx_clock.h
167         ${INSTALL_DATA} rx_multi.h ${DESTDIR}${includedir}/rx/rx_multi.h
168         ${INSTALL_DATA} rx_pthread.h ${DESTDIR}${includedir}/rx/rx_pthread.h
169         ${INSTALL_DATA} rx_lwp.h ${DESTDIR}${includedir}/rx/rx_lwp.h
170         ${INSTALL_DATA} rx_misc.h ${DESTDIR}${includedir}/rx/rx_misc.h
171         ${INSTALL_DATA} rx_null.h ${DESTDIR}${includedir}/rx/rx_null.h
172         ${INSTALL_DATA} xdr.h ${DESTDIR}${includedir}/rx/xdr.h
173         ${INSTALL_DATA} xdr_prototypes.h ${DESTDIR}${includedir}/rx/xdr_prototypes.h
174
175 dest: librx.a
176         ${INSTALL} -d ${DEST}/lib
177         ${INSTALL} -d ${DEST}/include/rx
178         ${INSTALL_DATA} librx.a ${DEST}/lib/librx.a
179         ${INSTALL_DATA} rx_packet.h ${DEST}/include/rx/rx_packet.h
180         ${INSTALL_DATA} rx_prototypes.h ${DEST}/include/rx/rx_prototypes.h
181         ${INSTALL_DATA} rx.h ${DEST}/include/rx/rx.h
182         ${INSTALL_DATA} rx_user.h ${DEST}/include/rx/rx_user.h
183         ${INSTALL_DATA} rx_event.h ${DEST}/include/rx/rx_event.h
184         ${INSTALL_DATA} rx_queue.h ${DEST}/include/rx/rx_queue.h
185         ${INSTALL_DATA} rx_globals.h ${DEST}/include/rx/rx_globals.h
186         ${INSTALL_DATA} rx_clock.h ${DEST}/include/rx/rx_clock.h
187         ${INSTALL_DATA} rx_multi.h ${DEST}/include/rx/rx_multi.h
188         ${INSTALL_DATA} rx_pthread.h ${DEST}/include/rx/rx_pthread.h
189         ${INSTALL_DATA} rx_lwp.h ${DEST}/include/rx/rx_lwp.h
190         ${INSTALL_DATA} rx_misc.h ${DEST}/include/rx/rx_misc.h
191         ${INSTALL_DATA} rx_null.h ${DEST}/include/rx/rx_null.h
192         ${INSTALL_DATA} xdr.h ${DEST}/include/rx/xdr.h
193         ${INSTALL_DATA} xdr_prototypes.h ${DEST}/include/rx/xdr_prototypes.h
194
195 #
196 # Misc. targets
197 #
198 clean:
199         $(RM) -f *.o *.a core *_component_version_number.c
200
201 include ../config/Makefile.version