1 # Copyright 2000, International Business Machines Corporation and others.
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
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
$?
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
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} \
40 all: depinstall
${TOP_LIBDIR}/libubik_pthread.a udebug utst_server utst_client
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
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
61 uuid.o
: ${UTIL}/uuid.c
64 serverLog.o
: ${UTIL}/serverLog.c
67 fileutil.o
: ${UTIL}/fileutil.c
70 volparse.o
: ${UTIL}/volparse.c
73 strlcat.o
: ${UTIL}/strlcat.c
76 strlcpy.o
: ${UTIL}/strlcpy.c
79 strnlen.o
: ${UTIL}/strnlen.c
82 flipbase64.o
: ${UTIL}/flipbase64.c
85 netutils.o
: ${UTIL}/netutils.c
88 dirpath.o
: ${UTIL}/dirpath.c
91 softsig.o
: ${UTIL}/softsig.c
94 hostparse.o
: ${UTIL}/hostparse.c
97 snprintf.o
: ${UTIL}/snprintf.c
100 pthread_glock.o
: ${UTIL}/pthread_glock.c
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
145 utst_int.cs.o
: utst_int.cs.c
148 utst_int.xdr.o
: utst_int.xdr.c
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
170 utst_client.o
: ${srcdir}/utst_client.c
173 udebug.o
: ${srcdir}/udebug.c
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
185 $(AR
) crc
$@
${LIBOBJS} AFS_component_version_number.o
188 disk.o
: ${srcdir}/disk.c
191 uinit.o
: ${srcdir}/uinit.c
194 remote.o
: ${srcdir}/remote.c
197 beacon.o
: ${srcdir}/beacon.c
200 lock.o
: ${srcdir}/lock.c
203 recovery.o
: ${srcdir}/recovery.c
206 ubik.o
: ${srcdir}/ubik.c
209 phys.o
: ${srcdir}/phys.c
212 vote.o
: ${srcdir}/vote.c
215 ubikcmd.o
: ${srcdir}/ubikcmd.c
218 ubikclient.o
: ${srcdir}/ubikclient.c
221 ubik_int.ss.o
: ubik_int.ss.c
224 ubik_int.cs.o
: ubik_int.cs.c
227 ubik_int.xdr.o
: ubik_int.xdr.c
231 # Installation targets
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
242 ${DEST}/lib
/libubik_pthread.a
: libubik_pthread.a
245 ${DEST}/include/ubik.h
: ubik.h
248 ${DEST}/include/ubik_int.h
: ubik_int.h
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
264 ${TOP_LIBDIR}/libubik_pthread.a
: libubik_pthread.a
267 ${DESTDIR}${includedir}/ubik.h
: ubik.h
270 ${DESTDIR}${includedir}/ubik_int.h
: ubik_int.h
274 ${DEST}/lib
/libubik_pthread.a \
276 ${DEST}/root.server
/usr
/afs
/bin
/udebug