venus: Remove dedebug
[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 include @TOP_OBJDIR@/src/config/Makefile.pthread
11
12 LIBS= \
13         $(top_builddir)/src/auth/liboafs_auth.la \
14         $(top_builddir)/src/rx/liboafs_rx.la \
15         $(top_builddir)/src/rxkad/liboafs_rxkad.la \
16         $(top_builddir)/src/cmd/liboafs_cmd.la \
17         $(top_builddir)/src/util/liboafs_util.la \
18         $(top_builddir)/src/opr/liboafs_opr.la
19
20 all: upserver upclient
21
22 generated: update.cs.c update.ss.c update.xdr.c update.h
23
24 #
25 # Build targets
26 #
27 upclient: client.o update.cs.o utils.o ${LIBS}
28         $(LT_LDRULE_static) client.o update.cs.o utils.o \
29                 ${LIBS} $(LIB_roken) ${XLIBS}
30
31 upserver: server.o utils.o update.ss.o ${LIBS}
32         $(LT_LDRULE_static) server.o utils.o update.ss.o \
33                 ${LIBS} $(LIB_roken) ${XLIBS}
34
35 utils.o: utils.c update.h global.h
36
37 client.o server.o: update.h global.h AFS_component_version_number.c
38
39 update.cs.c: update.xg
40         ${RXGEN} -A -u -C -o $@ ${srcdir}/update.xg
41
42 update.ss.c: update.xg
43         ${RXGEN} -A -S -o $@ ${srcdir}/update.xg
44
45 update.xdr.c: update.xg
46         ${RXGEN} -A -c -o $@ ${srcdir}/update.xg
47
48 update.h: update.xg
49         ${RXGEN} -A -u -h -o $@ ${srcdir}/update.xg
50
51 update.cs.c: update.h
52 update.ss.c: update.h
53 update.er.c: update.h
54
55 #
56 # Installation targets
57 #
58 install: upserver upclient
59         ${INSTALL} -d ${DESTDIR}${afssrvlibexecdir}
60         ${INSTALL_PROGRAM} upserver ${DESTDIR}${afssrvlibexecdir}/upserver
61         ${INSTALL_PROGRAM} upclient ${DESTDIR}${afssrvlibexecdir}/upclient
62
63 dest: upserver upclient
64         ${INSTALL} -d ${DEST}/root.server/usr/afs/bin
65         ${INSTALL_PROGRAM} upserver ${DEST}/root.server/usr/afs/bin/upserver
66         ${INSTALL_PROGRAM} upclient ${DEST}/root.server/usr/afs/bin/upclient
67
68 #
69 # Misc. targets
70 #
71 clean:
72         $(RM) -f *.o upclient upserver update.ss.c update.cs.c update.xdr.c update.h core \
73         AFS_component_version_number.c
74
75 include ../config/Makefile.version