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
10 TOP_SRCDIR=@TOP_SRCDIR@
11 SYS_NAME=@AFS_SYSNAME@
14 include ../config/Makefile.${SYS_NAME}
16 KERNELDIR = ../libafs/
17 UKERNELDIR = ../libuafs/
18 RXGEN=${SRCDIR}/bin/rxgen
19 MKDIR_IF_NEEDED=[ -d $$1 ] || mkdir -p $$1
21 KSRCS=rxstat.c rxstat.h Krxstat.ss.c Krxstat.xdr.c
23 CFLAGS = -I${TOP_SRCDIR}/config -I${SRCDIR}/include ${XCFLAGS}
25 LIBOBJS = rxstat.cs.o rxstat.ss.o rxstat.xdr.o rxstat.o
32 rxstat.cs.c rxstat.ss.c rxstat.xdr.c rxstat.h: rxstat.xg
35 librxstat.a: ${LIBOBJS} AFS_component_version_number.o
37 $(AR) rv $@ AFS_component_version_number.o ${LIBOBJS}
40 Krxstat.cs.c: rxstat.xg
41 ${RXGEN} -x -k -C -o $@ rxstat.xg
43 Krxstat.ss.c: rxstat.xg
44 ${RXGEN} -x -k -S -o $@ rxstat.xg
46 Krxstat.xdr.c: rxstat.xg
47 ${RXGEN} -x -k -c -o $@ rxstat.xg
52 install: kinstall ukinstall \
53 ${DESTDIR}/include/rx/rxstat.h \
54 ${DESTDIR}/lib/librxstat.a
56 ${DESTDIR}/lib/librxstat.a: librxstat.a
59 ${DESTDIR}/include/rx/rxstat.h: rxstat.h
62 kinstall: ${KERNELDIR}/afsint \
63 ${KERNELDIR}/afsint/rxstat.c \
64 ${KERNELDIR}/afsint/rxstat.h \
65 ${KERNELDIR}/afsint/Krxstat.ss.c \
66 ${KERNELDIR}/afsint/Krxstat.xdr.c
71 ${KERNELDIR}/afsint/rxstat.c: rxstat.c
74 ${KERNELDIR}/afsint/rxstat.h: rxstat.h
77 ${KERNELDIR}/afsint/Krxstat.ss.c: Krxstat.ss.c
80 ${KERNELDIR}/afsint/Krxstat.xdr.c: Krxstat.xdr.c
83 ukinstall: ${UKERNELDIR}/afsint \
84 ${UKERNELDIR}/afsint/rxstat.c \
85 ${UKERNELDIR}/afsint/rxstat.h \
86 ${UKERNELDIR}/afsint/Krxstat.ss.c \
87 ${UKERNELDIR}/afsint/Krxstat.xdr.c
92 ${UKERNELDIR}/afsint/rxstat.c: rxstat.c
95 ${UKERNELDIR}/afsint/rxstat.h: rxstat.h
98 ${UKERNELDIR}/afsint/Krxstat.ss.c: Krxstat.ss.c
101 ${UKERNELDIR}/afsint/Krxstat.xdr.c: Krxstat.xdr.c
108 rm -f rxstat.h *.xdr.c *.cs.c *.ss.c *.o *.a core AFS_component_version_number.c
110 include ../config/Makefile.version