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
11 INSTALL_DATA = @INSTALL_DATA@
12 INSTALL_PROGRAM = @INSTALL_PROGRAM@
13 INSTALL_SCRIPT = @INSTALL_SCRIPT@
15 LIBS=${TOP_LIBDIR}/libauth.a \
16 ${TOP_LIBDIR}/librxkad.a \
17 ${TOP_LIBDIR}/libdes.a \
18 ${TOP_LIBDIR}/librx.a \
19 ${TOP_LIBDIR}/libsys.a \
20 ${TOP_LIBDIR}/librx.a \
21 ${TOP_LIBDIR}/liblwp.a \
22 ${TOP_LIBDIR}/libcom_err.a \
25 all: upserver upclient
27 generated: update.cs.c update.ss.c update.xdr.c update.h
32 upclient: client.o update.cs.o utils.o ${LIBS}
33 ${CC} ${CFLAGS} -o upclient client.o update.cs.o utils.o ${LIBS} ${XLIBS}
35 upserver: server.o utils.o update.ss.o ${LIBS}
36 ${CC} ${CFLAGS} -o upserver server.o utils.o update.ss.o ${LIBS} ${XLIBS}
38 utils.o: utils.c update.h global.h
40 client.o server.o: update.h global.h AFS_component_version_number.c
42 update.cs.c: update.xg
43 ${RXGEN} -A -u -C -o $@ ${srcdir}/update.xg
45 update.ss.c: update.xg
46 ${RXGEN} -A -S -o $@ ${srcdir}/update.xg
48 update.xdr.c: update.xg
49 ${RXGEN} -A -c -o $@ ${srcdir}/update.xg
52 ${RXGEN} -A -u -h -o $@ ${srcdir}/update.xg
59 # Installation targets
61 install: upserver upclient
62 ${INSTALL} -d ${DESTDIR}${afssrvlibexecdir}
63 ${INSTALL_PROGRAM} upserver ${DESTDIR}${afssrvlibexecdir}/upserver
64 ${INSTALL_PROGRAM} upclient ${DESTDIR}${afssrvlibexecdir}/upclient
66 dest: upserver upclient
67 ${INSTALL} -d ${DEST}/root.server/usr/afs/bin
68 ${INSTALL_PROGRAM} upserver ${DEST}/root.server/usr/afs/bin/upserver
69 ${INSTALL_PROGRAM} upclient ${DEST}/root.server/usr/afs/bin/upclient
75 $(RM) -f *.o upclient upserver update.ss.c update.cs.c update.xdr.c update.h core \
76 AFS_component_version_number.c
78 include ../config/Makefile.version