ubik-call-sucks-20060703
[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 srcdir=@srcdir@
9 include @TOP_OBJDIR@/src/config/Makefile.config
10
11 LIBS=${TOP_LIBDIR}/libauth.a \
12         ${TOP_LIBDIR}/librxkad.a \
13         ${TOP_LIBDIR}/libdes.a \
14         ${TOP_LIBDIR}/librx.a \
15         ${TOP_LIBDIR}/liblwp.a \
16         ${TOP_LIBDIR}/libcom_err.a \
17         ${TOP_LIBDIR}/util.a \
18         ${TOP_LIBDIR}/libsys.a
19
20 all: upserver upclient
21
22 #
23 # Build targets
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.xg
36         ${RXGEN} -u -C -o $@ ${srcdir}/update.xg
37
38 update.ss.c: update.xg
39         ${RXGEN} -S -o $@ ${srcdir}/update.xg
40
41 update.xdr.c: update.xg
42         ${RXGEN} -c -o $@ ${srcdir}/update.xg
43
44 update.h: update.xg
45         ${RXGEN} -u -h -o $@ ${srcdir}/update.xg
46
47 update.cs.c: update.h
48 upcate.ss.c: update.h
49 update.er.c: update.h
50
51 #
52 # Installation targets
53 #
54 install : ${DESTDIR}${afssrvlibexecdir}/upserver ${DESTDIR}${afssrvlibexecdir}/upclient
55
56 ${DEST}/root.server/usr/afs/bin/upserver: upserver
57         ${INSTALL} $? $@
58
59 ${DEST}/root.server/usr/afs/bin/upclient: upclient
60         ${INSTALL} $? $@
61
62 #
63 # Misc. targets
64 #
65 clean: 
66         $(RM) -f *.o upclient upserver update.ss.c update.cs.c update.xdr.c update.h core \
67         AFS_component_version_number.c
68
69 include ../config/Makefile.version
70
71 ${DESTDIR}${afssrvlibexecdir}/upserver: upserver
72         ${INSTALL} $? $@
73
74 ${DESTDIR}${afssrvlibexecdir}/upclient: upclient
75         ${INSTALL} $? $@
76
77 dest: ${DEST}/root.server/usr/afs/bin/upserver ${DEST}/root.server/usr/afs/bin/upclient
78