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
10 TOP_SRCDIR=@TOP_SRCDIR@
11 SYS_NAME=@AFS_SYSNAME@
15 include ../config/Makefile.${SYS_NAME}
17 LIBRX=${SRCDIR}lib/librx.a
18 LIBS = ${SRCDIR}lib/afs/libauth.a ${SRCDIR}lib/librxkad.a \
19 ${SRCDIR}lib/libdes.a ${LIBRX} ${SRCDIR}lib/liblwp.a \
20 ${SRCDIR}lib/afs/libcom_err.a ${SRCDIR}lib/afs/util.a \
21 ${SRCDIR}lib/afs/libsys.a
22 CFLAGS= ${DBUG} -I${SRCDIR}include -I${TOP_SRCDIR}/config ${XCFLAGS}
24 PROGS=upclient upserver
26 include ../config/Makefile.version
30 upclient: client.o update.cs.o utils.o ${LIBS}
31 ${CC} ${CFLAGS} -o upclient client.o update.cs.o utils.o ${LIBS} ${XLIBS}
33 upserver: server.o utils.o update.ss.o ${LIBS}
34 ${CC} ${CFLAGS} -o upserver server.o utils.o update.ss.o ${LIBS} ${XLIBS}
36 utils.o: utils.c update.h global.h
38 client.o server.o: update.h global.h AFS_component_version_number.c
40 update.cs.c update.ss.c update.er.c update.h: update.xg
41 ${SRCDIR}bin/rxgen update.xg
43 rm -f upclient upserver *.o update.ss.c update.cs.c update.xdr.c update.h core\
44 AFS_component_version_number.c
48 ${INSTALL} upserver ${DESTDIR}root.server/usr/afs/bin
49 ${INSTALL} upclient ${DESTDIR}root.server/usr/afs/bin