LINUX: afs_create infinite fetchStatus loop
[pkg-k5-afs_openafs.git] / src / update / Makefile.in
blob917bf766c7fbec73d4e2d6a5d0b608b074b956bf
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@
9 include @TOP_OBJDIR@/src/config/Makefile.config
10 include @TOP_OBJDIR@/src/config/Makefile.lwp
13 LIBS=${TOP_LIBDIR}/libauth.a \
14 ${TOP_LIBDIR}/librxkad.a \
15 ${TOP_LIBDIR}/librx.a \
16 ${TOP_LIBDIR}/libsys.a \
17 ${TOP_LIBDIR}/librx.a \
18 ${TOP_LIBDIR}/liblwp.a \
19 ${TOP_LIBDIR}/libafscom_err.a \
20 ${TOP_LIBDIR}/util.a \
21 ${TOP_LIBDIR}/libopr.a \
22 ${TOP_LIBDIR}/libafsrfc3961.a \
23 ${TOP_LIBDIR}/libafshcrypto_lwp.a
25 all: upserver upclient
27 generated: update.cs.c update.ss.c update.xdr.c update.h
30 # Build targets
32 upclient: client.o update.cs.o utils.o ${LIBS}
33 $(AFS_LDRULE) client.o update.cs.o utils.o \
34 ${LIBS} $(LIB_roken) ${XLIBS}
36 upserver: server.o utils.o update.ss.o ${LIBS}
37 $(AFS_LDRULE) server.o utils.o update.ss.o \
38 ${LIBS} $(LIB_roken) ${XLIBS}
40 utils.o: utils.c update.h global.h
42 client.o server.o: update.h global.h AFS_component_version_number.c
44 update.cs.c: update.xg
45 ${RXGEN} -A -u -C -o $@ ${srcdir}/update.xg
47 update.ss.c: update.xg
48 ${RXGEN} -A -S -o $@ ${srcdir}/update.xg
50 update.xdr.c: update.xg
51 ${RXGEN} -A -c -o $@ ${srcdir}/update.xg
53 update.h: update.xg
54 ${RXGEN} -A -u -h -o $@ ${srcdir}/update.xg
56 update.cs.c: update.h
57 update.ss.c: update.h
58 update.er.c: update.h
61 # Installation targets
63 install: upserver upclient
64 ${INSTALL} -d ${DESTDIR}${afssrvlibexecdir}
65 ${INSTALL_PROGRAM} upserver ${DESTDIR}${afssrvlibexecdir}/upserver
66 ${INSTALL_PROGRAM} upclient ${DESTDIR}${afssrvlibexecdir}/upclient
68 dest: upserver upclient
69 ${INSTALL} -d ${DEST}/root.server/usr/afs/bin
70 ${INSTALL_PROGRAM} upserver ${DEST}/root.server/usr/afs/bin/upserver
71 ${INSTALL_PROGRAM} upclient ${DEST}/root.server/usr/afs/bin/upclient
74 # Misc. targets
76 clean:
77 $(RM) -f *.o upclient upserver update.ss.c update.cs.c update.xdr.c update.h core \
78 AFS_component_version_number.c
80 include ../config/Makefile.version