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
10 include @TOP_OBJDIR@/src/config/Makefile.lwp
13 INSTALL_DATA = @INSTALL_DATA@
14 INSTALL_PROGRAM = @INSTALL_PROGRAM@
15 INSTALL_SCRIPT = @INSTALL_SCRIPT@
17 LIBOBJS = rxstat.cs.o rxstat.ss.o rxstat.xdr.o rxstat.o
19 all: depinstall ${TOP_LIBDIR}/librxstat.a
22 Krxstat.cs.c Krxstat.ss.c Krxstat.xdr.c \
23 rxstat.cs.c rxstat.ss.c rxstat.xdr.c rxstat.h
26 ${TOP_INCDIR}/rx/rxstat.h Krxstat.cs.c \
27 Krxstat.ss.c Krxstat.xdr.c
29 ${TOP_INCDIR}/rx/rxstat.h: rxstat.h
32 ${TOP_LIBDIR}/librxstat.a: librxstat.a
38 rxstat.cs.c: rxstat.xg
39 ${RXGEN} -A -x -C -o $@ ${srcdir}/rxstat.xg
41 rxstat.ss.c: rxstat.xg
42 ${RXGEN} -A -x -S -o $@ ${srcdir}/rxstat.xg
44 rxstat.xdr.c: rxstat.xg
45 ${RXGEN} -A -x -c -o $@ ${srcdir}/rxstat.xg
48 ${RXGEN} -A -x -h -o $@ ${srcdir}/rxstat.xg
50 rxstat.xdr.c: rxstat.h
54 librxstat.a: ${LIBOBJS} AFS_component_version_number.o
56 $(AR) crv $@ ${LIBOBJS} AFS_component_version_number.o
59 Krxstat.cs.c: rxstat.xg
60 ${RXGEN} -x -k -C -o $@ ${srcdir}/rxstat.xg
62 Krxstat.ss.c: rxstat.xg
63 ${RXGEN} -x -k -S -o $@ ${srcdir}/rxstat.xg
65 Krxstat.xdr.c: rxstat.xg
66 ${RXGEN} -x -k -c -o $@ ${srcdir}/rxstat.xg
71 install: rxstat.h librxstat.a
72 ${INSTALL} -d ${DESTDIR}${includedir}/rx
73 ${INSTALL} -d ${DESTDIR}${libdir}
74 ${INSTALL_DATA} rxstat.h ${DESTDIR}${includedir}/rx/rxstat.h
75 ${INSTALL_DATA} librxstat.a ${DESTDIR}${libdir}/librxstat.a
77 dest: rxstat.h librxstat.a
78 ${INSTALL} -d ${DEST}/include/rx
79 ${INSTALL} -d ${DEST}/lib
80 ${INSTALL_DATA} rxstat.h ${DEST}/include/rx/rxstat.h
81 ${INSTALL_DATA} librxstat.a ${DEST}/lib/librxstat.a
87 $(RM) -f rxstat.h *.xdr.c *.cs.c *.ss.c *.o *.a core AFS_component_version_number.c
89 include ../config/Makefile.version