Rename libcom_err to libafscom_err
[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 INSTALL = @INSTALL@
13 INSTALL_DATA = @INSTALL_DATA@
14 INSTALL_PROGRAM = @INSTALL_PROGRAM@
15 INSTALL_SCRIPT = @INSTALL_SCRIPT@
16
17 LIBS=${TOP_LIBDIR}/libauth.a \
18         ${TOP_LIBDIR}/librxkad.a \
19         ${TOP_LIBDIR}/librx.a \
20         ${TOP_LIBDIR}/libsys.a \
21         ${TOP_LIBDIR}/librx.a \
22         ${TOP_LIBDIR}/liblwp.a \
23         ${TOP_LIBDIR}/libafscom_err.a \
24         ${TOP_LIBDIR}/libafshcrypto_lwp.a \
25         ${TOP_LIBDIR}/util.a
26
27 all: upserver upclient
28
29 generated: update.cs.c update.ss.c update.xdr.c update.h
30
31 #
32 # Build targets
33 #
34 upclient: client.o update.cs.o utils.o ${LIBS} 
35         $(AFS_LDRULE) client.o update.cs.o utils.o \
36                 ${LIBS} $(LIB_roken) ${XLIBS}
37
38 upserver: server.o utils.o update.ss.o ${LIBS}
39         $(AFS_LDRULE) server.o utils.o update.ss.o \
40                 ${LIBS} $(LIB_roken) ${XLIBS}
41
42 utils.o: utils.c update.h global.h
43
44 client.o server.o: update.h global.h AFS_component_version_number.c
45
46 update.cs.c: update.xg
47         ${RXGEN} -A -u -C -o $@ ${srcdir}/update.xg
48
49 update.ss.c: update.xg
50         ${RXGEN} -A -S -o $@ ${srcdir}/update.xg
51
52 update.xdr.c: update.xg
53         ${RXGEN} -A -c -o $@ ${srcdir}/update.xg
54
55 update.h: update.xg
56         ${RXGEN} -A -u -h -o $@ ${srcdir}/update.xg
57
58 update.cs.c: update.h
59 update.ss.c: update.h
60 update.er.c: update.h
61
62 #
63 # Installation targets
64 #
65 install: upserver upclient
66         ${INSTALL} -d ${DESTDIR}${afssrvlibexecdir}
67         ${INSTALL_PROGRAM} upserver ${DESTDIR}${afssrvlibexecdir}/upserver
68         ${INSTALL_PROGRAM} upclient ${DESTDIR}${afssrvlibexecdir}/upclient
69
70 dest: upserver upclient
71         ${INSTALL} -d ${DEST}/root.server/usr/afs/bin
72         ${INSTALL_PROGRAM} upserver ${DEST}/root.server/usr/afs/bin/upserver
73         ${INSTALL_PROGRAM} upclient ${DEST}/root.server/usr/afs/bin/upclient
74
75 #
76 # Misc. targets
77 #
78 clean: 
79         $(RM) -f *.o upclient upserver update.ss.c update.cs.c update.xdr.c update.h core \
80         AFS_component_version_number.c
81
82 include ../config/Makefile.version