Update NEWS for 1.6.22
[pkg-k5-afs_openafs.git] / src / tubik / Makefile.in
blob3a78dd11363195b945b7d19916c0b6dd4ce4f475
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
8 srcdir=@srcdir@/../ubik
9 include @TOP_OBJDIR@/src/config/Makefile.config
10 INSTALL = @INSTALL@
11 INSTALL_DATA = @INSTALL_DATA@
12 INSTALL_PROGRAM = @INSTALL_PROGRAM@
13 INSTALL_SCRIPT = @INSTALL_SCRIPT@
14 HELPER_SPLINT=@HELPER_SPLINT@
16 CCRULE=${MT_CC} ${CFLAGS} ${MT_CFLAGS} -c $?
18 RX=../rx
19 UTIL=../util
21 LIBOBJS=disk.o remote.o beacon.o recovery.o ubik.o vote.o lock.o phys.o \
22 ubik_int.cs.o ubik_int.ss.o ubik_int.xdr.o ubikcmd.o \
23 ubikclient.o uerrors.o uinit.o
25 INCLS=${TOP_INCDIR}/lwp.h ${TOP_INCDIR}/lock.h \
26 ${TOP_INCDIR}/rx/rx.h ${TOP_INCDIR}/rx/xdr.h \
27 ${TOP_INCDIR}/lock.h ubik.h ubik_int.h utst_int.h
29 RXOBJS = rx_pthread.o
31 UTILOBJS=assert.o uuid.o serverLog.o fileutil.o netutils.o dirpath.o \
32 volparse.o flipbase64.o softsig.o hostparse.o snprintf.o \
33 pthread_glock.o strlcat.o strlcpy.o strnlen.o
35 LIBS=${RXOBJS} ${UTILOBJS} ${TOP_LIBDIR}/libafsrpc.a ${TOP_LIBDIR}/liblwp.a \
36 ${TOP_LIBDIR}/libafscom_err.a ${TOP_LIBDIR}/libcmd.a \
37 ${TOP_LIBDIR}/libsys.a ${XLIBS} \
38 ${LDFLAGS} ${MT_LIBS}
40 all: depinstall ${TOP_LIBDIR}/libubik_pthread.a udebug utst_server utst_client
42 depinstall: \
43 ubik_int.cs.c ubik_int.xdr.c
46 # get the pthreaded rx stuff compiled here
49 rx_pthread.o: ${RX}/rx_pthread.c
50 ${CCRULE} -DDPF_FSLOG
53 # get the pthreaded util stuff compiled here. we do this instead of
54 # using the non-pthreaded libutil.a. There probably should be a
55 # pthreaded version of this library, as we are doing with ubik itself, but...
58 assert.o: ${UTIL}/assert.c
59 ${CCRULE}
61 uuid.o: ${UTIL}/uuid.c
62 ${CCRULE}
64 serverLog.o: ${UTIL}/serverLog.c
65 ${CCRULE}
67 fileutil.o: ${UTIL}/fileutil.c
68 ${CCRULE}
70 volparse.o: ${UTIL}/volparse.c
71 ${CCRULE}
73 strlcat.o: ${UTIL}/strlcat.c
74 ${CCRULE}
76 strlcpy.o: ${UTIL}/strlcpy.c
77 ${CCRULE}
79 strnlen.o: ${UTIL}/strnlen.c
80 ${CCRULE}
82 flipbase64.o: ${UTIL}/flipbase64.c
83 ${CCRULE}
85 netutils.o: ${UTIL}/netutils.c
86 ${CCRULE}
88 dirpath.o: ${UTIL}/dirpath.c
89 ${CCRULE}
91 softsig.o: ${UTIL}/softsig.c
92 ${CCRULE}
94 hostparse.o: ${UTIL}/hostparse.c
95 ${CCRULE}
97 snprintf.o: ${UTIL}/snprintf.c
98 ${CCRULE}
100 pthread_glock.o: ${UTIL}/pthread_glock.c
101 ${CCRULE}
105 # insert comments here
108 utst_server: utst_server.o utst_int.ss.o utst_int.xdr.o libubik_pthread.a ${RXOBJS} ${UTILOBJS}
109 ${CC} ${CFLAGS} -o utst_server utst_server.o utst_int.ss.o utst_int.xdr.o libubik_pthread.a $(LIBS)
111 utst_client: utst_client.o utst_int.cs.o utst_int.xdr.o libubik_pthread.a ${RXOBJS} ${UTILOBJS}
112 ${CC} ${CFLAGS} -o utst_client utst_client.o utst_int.cs.o utst_int.xdr.o libubik_pthread.a $(LIBS)
114 udebug: udebug.o libubik_pthread.a ${RXOBJS} ${UTILOBJS}
115 ${CC} ${CFLAGS} -o udebug udebug.o libubik_pthread.a $(LIBS)
117 ubik_int.cs.c: ${srcdir}/ubik_int.xg
118 ${RXGEN} -A -x -C -o $@ ${srcdir}/ubik_int.xg
120 ubik_int.ss.c: ${srcdir}/ubik_int.xg
121 ${RXGEN} -A -x -S -o $@ ${srcdir}/ubik_int.xg
123 ubik_int.xdr.c: ${srcdir}/ubik_int.xg
124 ${RXGEN} -A -x -c -o $@ ${srcdir}/ubik_int.xg
126 ubik_int.h: ${srcdir}/ubik_int.xg
127 ${RXGEN} -A -x -h -o $@ ${srcdir}/ubik_int.xg
129 ubik_int.cs.c: ubik_int.h
130 ubik_int.ss.c: ubik_int.h
131 ubik_int.xdr.c: ubik_int.h
133 Kubik_int.cs.c: ${srcdir}/ubik_int.xg Kubik_int.h
134 ${RXGEN} -A -x -k -C -o Kubik_int.cs.c ${srcdir}/ubik_int.xg
136 Kubik_int.xdr.c: ${srcdir}/ubik_int.xg
137 ${RXGEN} -A -x -k -c -o Kubik_int.xdr.c ${srcdir}/ubik_int.xg
139 Kubik_int.h: ${srcdir}/ubik_int.xg
140 ${RXGEN} -A -x -k -h -o Kubik_int.h ${srcdir}/ubik_int.xg
142 utst_int.ss.o: utst_int.ss.c
143 ${CCRULE}
145 utst_int.cs.o: utst_int.cs.c
146 ${CCRULE}
148 utst_int.xdr.o: utst_int.xdr.c
149 ${CCRULE}
151 utst_int.cs.c: ${srcdir}/utst_int.xg
152 ${RXGEN} -A -C -u -o $@ ${srcdir}/utst_int.xg
154 utst_int.ss.c: ${srcdir}/utst_int.xg
155 ${RXGEN} -A -S -o $@ ${srcdir}/utst_int.xg
157 utst_int.xdr.c: ${srcdir}/utst_int.xg
158 ${RXGEN} -A -c -o $@ ${srcdir}/utst_int.xg
160 utst_int.h: ${srcdir}/utst_int.xg
161 ${RXGEN} -A -h -u -o $@ ${srcdir}/utst_int.xg
163 utst_int.cs.c: utst_int.h
164 utst_int.ss.c: utst_int.h
165 utst_int.xdr.c: utst_int.h
167 utst_server.o: ${srcdir}/utst_server.c
168 ${CCRULE}
170 utst_client.o: ${srcdir}/utst_client.c
171 ${CCRULE}
173 udebug.o: ${srcdir}/udebug.c
174 ${CCRULE}
176 uerrors.o: uerrors.c
177 ${CCRULE}
179 uerrors.c ubik.h: ${srcdir}/uerrors.et ${srcdir}/ubik.p.h
180 $(RM) -f ubik.h uerrors.c
181 ${COMPILE_ET} -p ${srcdir} uerrors -h ubik
183 libubik_pthread.a: ${INCLS} ${LIBOBJS} AFS_component_version_number.o
184 -$(RM) -f $@
185 $(AR) crc $@ ${LIBOBJS} AFS_component_version_number.o
186 $(RANLIB) $@
188 disk.o: ${srcdir}/disk.c
189 ${CCRULE}
191 uinit.o: ${srcdir}/uinit.c
192 ${CCRULE}
194 remote.o: ${srcdir}/remote.c
195 ${CCRULE}
197 beacon.o: ${srcdir}/beacon.c
198 ${CCRULE}
200 lock.o: ${srcdir}/lock.c
201 ${CCRULE}
203 recovery.o: ${srcdir}/recovery.c
204 ${CCRULE}
206 ubik.o: ${srcdir}/ubik.c
207 ${CCRULE}
209 phys.o: ${srcdir}/phys.c
210 ${CCRULE}
212 vote.o: ${srcdir}/vote.c
213 ${CCRULE}
215 ubikcmd.o: ${srcdir}/ubikcmd.c
216 ${CCRULE}
218 ubikclient.o: ${srcdir}/ubikclient.c
219 ${CCRULE}
221 ubik_int.ss.o: ubik_int.ss.c
222 ${CCRULE}
224 ubik_int.cs.o: ubik_int.cs.c
225 ${CCRULE}
227 ubik_int.xdr.o: ubik_int.xdr.c
228 ${CCRULE}
231 # Installation targets
233 test: all
235 install: ${DESTDIR}${libdir}/libubik_pthread.a udebug
236 ${INSTALL} udebug ${DESTDIR}${bindir}/udebug
237 ${INSTALL} udebug ${DESTDIR}${afssrvbindir}/udebug
239 ${DEST}/bin/udebug ${DEST}/root.server/usr/afs/bin/udebug: udebug
240 ${INSTALL} $? $@
242 ${DEST}/lib/libubik_pthread.a: libubik_pthread.a
243 ${INSTALL} $? $@
245 ${DEST}/include/ubik.h: ubik.h
246 ${INSTALL} $? $@
248 ${DEST}/include/ubik_int.h: ubik_int.h
249 ${INSTALL} $? $@
252 # Misc. targets
254 clean:
255 $(RM) -f *.o utst_server utst_client udebug *.a *.cs.c *.ss.c *.xdr.c
256 $(RM) -f utst_int.h ubik_int.h uerrors.c ubik.h core AFS_component_version_number.c Kubik_int.h
258 include ../config/Makefile.version
261 ${DESTDIR}${libdir}/libubik_pthread.a: libubik_pthread.a
262 ${INSTALL} $? $@
264 ${TOP_LIBDIR}/libubik_pthread.a: libubik_pthread.a
265 ${INSTALL} $? $@
267 ${DESTDIR}${includedir}/ubik.h: ubik.h
268 ${INSTALL} $? $@
270 ${DESTDIR}${includedir}/ubik_int.h: ubik_int.h
271 ${INSTALL} $? $@
273 dest: \
274 ${DEST}/lib/libubik_pthread.a \
275 ${DEST}/bin/udebug \
276 ${DEST}/root.server/usr/afs/bin/udebug