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