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