1 # Copyright 2000, International Business Machines Corporation and others.
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
9 include @TOP_OBJDIR@/src/config/Makefile.config
11 LIBOBJS = rxstat.cs.o rxstat.ss.o rxstat.xdr.o rxstat.o
13 all: depinstall ${TOP_LIBDIR}/librxstat.a
16 ${TOP_INCDIR}/rx/rxstat.h Krxstat.cs.c Krxstat.ss.c Krxstat.xdr.c
21 rxstat.cs.c: rxstat.xg
22 ${RXGEN} -x -C -o $@ ${srcdir}/rxstat.xg
24 rxstat.ss.c: rxstat.xg
25 ${RXGEN} -x -S -o $@ ${srcdir}/rxstat.xg
27 rxstat.xdr.c: rxstat.xg
28 ${RXGEN} -x -c -o $@ ${srcdir}/rxstat.xg
31 ${RXGEN} -x -h -o $@ ${srcdir}/rxstat.xg
33 rxstat.xdr.c: rxstat.h
37 librxstat.a: ${LIBOBJS} AFS_component_version_number.o
39 $(AR) crv $@ ${LIBOBJS} AFS_component_version_number.o
42 Krxstat.cs.c: rxstat.xg
43 ${RXGEN} -x -k -C -o $@ ${srcdir}/rxstat.xg
45 Krxstat.ss.c: rxstat.xg
46 ${RXGEN} -x -k -S -o $@ ${srcdir}/rxstat.xg
48 Krxstat.xdr.c: rxstat.xg
49 ${RXGEN} -x -k -c -o $@ ${srcdir}/rxstat.xg
54 install: ${DESTDIR}${includedir}/rx/rxstat.h ${DESTDIR}${libdir}/librxstat.a
56 ${DEST}/lib/librxstat.a: librxstat.a
59 ${DEST}/include/rx/rxstat.h: rxstat.h
66 $(RM) -f rxstat.h *.xdr.c *.cs.c *.ss.c *.o *.a core AFS_component_version_number.c
68 include ../config/Makefile.version
69 ${DESTDIR}${includedir}/rx/rxstat.h: rxstat.h
72 ${TOP_INCDIR}/rx/rxstat.h: rxstat.h
75 ${DESTDIR}${libdir}/librxstat.a: librxstat.a
78 ${TOP_LIBDIR}/librxstat.a: librxstat.a
81 dest: ${DEST}/include/rx/rxstat.h ${DEST}/lib/librxstat.a