makefile-updates-20010828
[openafs.git] / src / update / Makefile.in
1 # Copyright 2000, International Business Machines Corporation and others.
2 # All Rights Reserved.
3
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
7
8 DESTDIR=@DESTDIR@
9 SRCDIR=@SRCDIR@
10 TOP_SRCDIR=@TOP_SRCDIR@
11 SYS_NAME=@AFS_SYSNAME@
12
13 SHELL = /bin/sh
14
15 include ../config/Makefile.${SYS_NAME}
16
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}
23
24 PROGS=upclient upserver
25
26 include ../config/Makefile.version
27
28 all:  ${PROGS}
29
30 upclient: client.o update.cs.o utils.o ${LIBS} 
31         ${CC} ${CFLAGS} -o upclient client.o update.cs.o utils.o ${LIBS} ${XLIBS}
32
33 upserver: server.o utils.o update.ss.o ${LIBS}
34         ${CC} ${CFLAGS} -o upserver server.o utils.o update.ss.o ${LIBS} ${XLIBS}
35
36 utils.o: utils.c update.h global.h
37
38 client.o server.o: update.h global.h AFS_component_version_number.c
39
40 update.cs.c update.ss.c update.er.c update.h: update.xg
41         ${SRCDIR}/bin/rxgen update.xg
42 clean: 
43         rm -f upclient upserver *.o update.ss.c update.cs.c update.xdr.c update.h core\
44         AFS_component_version_number.c
45
46 system: install
47 install : all
48         ${INSTALL} upserver ${DESTDIR}root.server/usr/afs/bin
49         ${INSTALL} upclient ${DESTDIR}root.server/usr/afs/bin