Import Upstream version 1.8.5
[hcoop/debian/openafs.git] / src / update / 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
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
24
25 all: upserver upclient
26
27 generated: update.cs.c update.ss.c update.xdr.c update.h
28
29 #
30 # Build targets
31 #
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}
35
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}
39
40 utils.o: utils.c update.h global.h
41
42 client.o server.o: update.h global.h AFS_component_version_number.c
43
44 update.cs.c: update.xg
45 ${RXGEN} -A -u -C -o $@ ${srcdir}/update.xg
46
47 update.ss.c: update.xg
48 ${RXGEN} -A -S -o $@ ${srcdir}/update.xg
49
50 update.xdr.c: update.xg
51 ${RXGEN} -A -c -o $@ ${srcdir}/update.xg
52
53 update.h: update.xg
54 ${RXGEN} -A -u -h -o $@ ${srcdir}/update.xg
55
56 update.cs.c: update.h
57 update.ss.c: update.h
58 update.er.c: update.h
59
60 #
61 # Installation targets
62 #
63 install: upserver upclient
64 ${INSTALL} -d ${DESTDIR}${afssrvlibexecdir}
65 ${INSTALL_PROGRAM} upserver ${DESTDIR}${afssrvlibexecdir}/upserver
66 ${INSTALL_PROGRAM} upclient ${DESTDIR}${afssrvlibexecdir}/upclient
67
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
72
73 #
74 # Misc. targets
75 #
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
79
80 include ../config/Makefile.version