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