initial-darwin-support-20010327
[openafs.git] / src / update / Makefile
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 SHELL = /bin/sh
9 COMPONENT=update
10 include ../config/Makefile.${SYS_NAME}
11
12 LIBRX=${SRCDIR}lib/librx.a
13 LIBS = ${SRCDIR}lib/afs/libauth.a ${SRCDIR}lib/librxkad.a \
14        ${SRCDIR}lib/libdes.a ${LIBRX} ${SRCDIR}lib/liblwp.a \
15        ${SRCDIR}lib/afs/libcom_err.a ${SRCDIR}lib/afs/util.a \
16        ${SRCDIR}lib/afs/libsys.a 
17 CFLAGS= ${DBUG}  -I${SRCDIR}include ${XCFLAGS}
18
19 PROGS=upclient upserver
20
21 include ../config/Makefile.version
22
23 all:  ${PROGS}
24
25 upclient: client.o update.cs.o utils.o ${LIBS} 
26         ${CC} ${CFLAGS} -o upclient client.o update.cs.o utils.o ${LIBS} ${XLIBS}
27
28 upserver: server.o utils.o update.ss.o ${LIBS}
29         ${CC} ${CFLAGS} -o upserver server.o utils.o update.ss.o ${LIBS} ${XLIBS}
30
31 utils.o: utils.c update.h global.h
32
33 client.o server.o: update.h global.h AFS_component_version_number.c
34
35 update.cs.c update.ss.c update.er.c update.h: update.xg
36         ${SRCDIR}bin/rxgen update.xg
37 clean: 
38         rm -f upclient upserver *.o update.ss.c update.cs.c update.xdr.c update.h core\
39         AFS_component_version_number.c
40
41 system: install
42 install : all
43         ${INSTALL} upserver ${DESTDIR}root.server/usr/afs/bin
44         ${INSTALL} upclient ${DESTDIR}root.server/usr/afs/bin