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 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
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
54 ${RXGEN} -A
-u
-h
-o
$@
${srcdir}/update.xg
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
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