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
9 include @TOP_OBJDIR@/src/config/Makefile.config
10 include @TOP_OBJDIR@/src/config/Makefile.lwp
13 INSTALL_DATA = @INSTALL_DATA@
14 INSTALL_PROGRAM = @INSTALL_PROGRAM@
15 INSTALL_SCRIPT = @INSTALL_SCRIPT@
17 LIBS=${TOP_LIBDIR}/libauth.a \
18 ${TOP_LIBDIR}/librxkad.a \
19 ${TOP_LIBDIR}/libdes.a \
20 ${TOP_LIBDIR}/librx.a \
21 ${TOP_LIBDIR}/libsys.a \
22 ${TOP_LIBDIR}/librx.a \
23 ${TOP_LIBDIR}/liblwp.a \
24 ${TOP_LIBDIR}/libcom_err.a \
27 all: upserver upclient
29 generated: update.cs.c update.ss.c update.xdr.c update.h
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}
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}
42 utils.o: utils.c update.h global.h
44 client.o server.o: update.h global.h AFS_component_version_number.c
46 update.cs.c: update.xg
47 ${RXGEN} -A -u -C -o $@ ${srcdir}/update.xg
49 update.ss.c: update.xg
50 ${RXGEN} -A -S -o $@ ${srcdir}/update.xg
52 update.xdr.c: update.xg
53 ${RXGEN} -A -c -o $@ ${srcdir}/update.xg
56 ${RXGEN} -A -u -h -o $@ ${srcdir}/update.xg
63 # Installation targets
65 install: upserver upclient
66 ${INSTALL} -d ${DESTDIR}${afssrvlibexecdir}
67 ${INSTALL_PROGRAM} upserver ${DESTDIR}${afssrvlibexecdir}/upserver
68 ${INSTALL_PROGRAM} upclient ${DESTDIR}${afssrvlibexecdir}/upclient
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
79 $(RM) -f *.o upclient upserver update.ss.c update.cs.c update.xdr.c update.h core \
80 AFS_component_version_number.c
82 include ../config/Makefile.version