Make rxgen emit prototype for ExecuteRequest
[openafs.git] / src / rxstat / 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 INSTALL = @INSTALL@
11 INSTALL_DATA = @INSTALL_DATA@
12 INSTALL_PROGRAM = @INSTALL_PROGRAM@
13 INSTALL_SCRIPT = @INSTALL_SCRIPT@
14
15 LIBOBJS = rxstat.cs.o rxstat.ss.o rxstat.xdr.o rxstat.o
16
17 all: depinstall ${TOP_LIBDIR}/librxstat.a 
18
19 depinstall: \
20         ${TOP_INCDIR}/rx/rxstat.h Krxstat.cs.c \
21         Krxstat.ss.c Krxstat.xdr.c
22
23 ${TOP_INCDIR}/rx/rxstat.h: rxstat.h
24         ${INSTALL_DATA} $? $@
25
26 ${TOP_LIBDIR}/librxstat.a: librxstat.a
27         ${INSTALL_DATA} $? $@
28
29 #
30 # Build targets
31 #
32 rxstat.cs.c: rxstat.xg
33         ${RXGEN} -A -x -C -o $@ ${srcdir}/rxstat.xg
34
35 rxstat.ss.c: rxstat.xg
36         ${RXGEN} -A -x -S -o $@ ${srcdir}/rxstat.xg
37
38 rxstat.xdr.c: rxstat.xg
39         ${RXGEN} -A -x -c -o $@ ${srcdir}/rxstat.xg
40
41 rxstat.h: rxstat.xg
42         ${RXGEN} -A -x -h -o $@ ${srcdir}/rxstat.xg
43
44 rxstat.xdr.c: rxstat.h
45 rxstat.cs.c: rxstat.h
46 rxstat.ss.c: rxstat.h
47
48 librxstat.a: ${LIBOBJS} AFS_component_version_number.o
49         -$(RM) -f $@
50         $(AR) crv $@ ${LIBOBJS} AFS_component_version_number.o
51         $(RANLIB) $@
52
53 Krxstat.cs.c: rxstat.xg
54         ${RXGEN} -x -k -C -o $@ ${srcdir}/rxstat.xg
55
56 Krxstat.ss.c: rxstat.xg
57         ${RXGEN} -x -k -S -o $@ ${srcdir}/rxstat.xg
58
59 Krxstat.xdr.c: rxstat.xg
60         ${RXGEN} -x -k -c -o $@ ${srcdir}/rxstat.xg
61
62 #
63 # Install targets
64 #
65 install: rxstat.h librxstat.a
66         ${INSTALL} -d ${DESTDIR}${includedir}/rx
67         ${INSTALL} -d ${DESTDIR}${libdir}
68         ${INSTALL_DATA} rxstat.h ${DESTDIR}${includedir}/rx/rxstat.h
69         ${INSTALL_DATA} librxstat.a ${DESTDIR}${libdir}/librxstat.a
70
71 dest: rxstat.h librxstat.a
72         ${INSTALL} -d ${DEST}/include/rx
73         ${INSTALL} -d ${DEST}/lib
74         ${INSTALL_DATA} rxstat.h ${DEST}/include/rx/rxstat.h
75         ${INSTALL_DATA} librxstat.a ${DEST}/lib/librxstat.a
76
77 #
78 # Misc. targets
79 #
80 clean:
81         $(RM) -f rxstat.h *.xdr.c *.cs.c *.ss.c *.o *.a core AFS_component_version_number.c
82
83 include ../config/Makefile.version