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 TOP_INCDIR=@TOP_INCDIR@
10 TOP_LIBDIR=@TOP_LIBDIR@
11 TOP_OBJDIR=@TOP_OBJDIR@
15 exec_prefix=@exec_prefix@
18 libexecdir=@libexecdir@
20 includedir=@includedir@
22 afssrvbindir=@afssrvbindir@
23 afssrvsbindir=@afssrvsbindir@
24 afssrvlibexecdir=@afssrvlibexecdir@
25 COMPILE_ET=${TOP_OBJDIR}/src/comerr/compile_et
26 TOP_SRCDIR=@TOP_SRCDIR@
27 SYS_NAME=@AFS_SYSNAME@
31 include ../config/Makefile.${SYS_NAME}
33 LIBS=${TOP_LIBDIR}/libauth.a \
34 ${TOP_LIBDIR}/librxkad.a \
35 ${TOP_LIBDIR}/libdes.a \
36 ${TOP_LIBDIR}/librx.a \
37 ${TOP_LIBDIR}/liblwp.a \
38 ${TOP_LIBDIR}/libcom_err.a \
39 ${TOP_LIBDIR}/util.a \
40 ${TOP_LIBDIR}/libsys.a
42 CFLAGS=-I. -I${srcdir} -I${TOP_INCDIR} -I${TOP_OBJDIR}/src/config ${XCFLAGS}
44 RXGEN=${TOP_OBJDIR}/src/rxgen/rxgen
46 all: upserver upclient
51 upclient: client.o update.cs.o utils.o ${LIBS}
52 ${CC} ${CFLAGS} -o upclient client.o update.cs.o utils.o ${LIBS} ${XLIBS}
54 upserver: server.o utils.o update.ss.o ${LIBS}
55 ${CC} ${CFLAGS} -o upserver server.o utils.o update.ss.o ${LIBS} ${XLIBS}
57 utils.o: utils.c update.h global.h
59 client.o server.o: update.h global.h AFS_component_version_number.c
61 update.cs.c update.ss.c update.er.c update.h: update.xg
62 ${RXGEN} ${srcdir}/update.xg
65 # Installation targets
67 install : ${DESTDIR}${afssrvlibexecdir}/upserver ${DESTDIR}${afssrvlibexecdir}/upclient
69 ${DEST}/root.server/usr/afs/bin/upserver: upserver
72 ${DEST}/root.server/usr/afs/bin/upclient: 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
84 ${DESTDIR}${afssrvlibexecdir}/upserver: upserver
87 ${DESTDIR}${afssrvlibexecdir}/upclient: upclient
90 dest: ${DEST}/root.server/usr/afs/bin/upserver ${DEST}/root.server/usr/afs/bin/upclient