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 TOP_INCDIR=@TOP_INCDIR@
10 TOP_LIBDIR=@TOP_LIBDIR@
11 TOP_OBJDIR=@TOP_OBJDIR@
15 exec_prefix=@exec_prefix@
18 libexecdir=@libexecdir@
20 includedir=@includedir@
22 afssrvbindir=@afssrvbindir@
23 afssrvsbindir=@afssrvsbindir@
24 afssrvlibexecdir=@afssrvlibexecdir@
25 COMPILE_ET=${TOP_OBJDIR}/src/comerr/compile_et
26 TOP_SRCDIR=@TOP_SRCDIR@
27 SYS_NAME=@AFS_SYSNAME@
30 include ../config/Makefile.${SYS_NAME}
32 KERNELDIR = ../libafs/
33 UKERNELDIR = ../libuafs/
34 RXGEN=${TOP_OBJDIR}/src/rxgen/rxgen
36 KSRCS=rxstat.c rxstat.h Krxstat.ss.c Krxstat.xdr.c
38 CFLAGS=-I. -I${srcdir} -I${TOP_OBJDIR}/src/config -I${TOP_INCDIR} ${XCFLAGS}
40 LIBOBJS = rxstat.cs.o rxstat.ss.o rxstat.xdr.o rxstat.o
42 all: kinstall ukinstall ${TOP_INCDIR}/rx/rxstat.h ${TOP_LIBDIR}/librxstat.a
47 rxstat.cs.c rxstat.ss.c rxstat.xdr.c rxstat.h: rxstat.xg
48 ${RXGEN} -x ${srcdir}/rxstat.xg
50 librxstat.a: ${LIBOBJS} AFS_component_version_number.o
52 $(AR) crv $@ ${LIBOBJS} AFS_component_version_number.o
55 Krxstat.cs.c: rxstat.xg
56 ${RXGEN} -x -k -C -o $@ ${srcdir}/rxstat.xg
58 Krxstat.ss.c: rxstat.xg
59 ${RXGEN} -x -k -S -o $@ ${srcdir}/rxstat.xg
61 Krxstat.xdr.c: rxstat.xg
62 ${RXGEN} -x -k -c -o $@ ${srcdir}/rxstat.xg
67 install: ${DESTDIR}${includedir}/rx/rxstat.h ${DESTDIR}${libdir}/librxstat.a
69 ${DEST}/lib/librxstat.a: librxstat.a
72 ${DEST}/include/rx/rxstat.h: rxstat.h
75 kinstall: ${KERNELDIR}/afsint \
76 ${KERNELDIR}/afsint/rxstat.c \
77 ${KERNELDIR}/afsint/rxstat.h \
78 ${KERNELDIR}/afsint/Krxstat.ss.c \
79 ${KERNELDIR}/afsint/Krxstat.xdr.c
84 ${KERNELDIR}/afsint/rxstat.c: rxstat.c
87 ${KERNELDIR}/afsint/rxstat.h: rxstat.h
90 ${KERNELDIR}/afsint/Krxstat.ss.c: Krxstat.ss.c
93 ${KERNELDIR}/afsint/Krxstat.xdr.c: Krxstat.xdr.c
96 ukinstall: ${UKERNELDIR}/afsint \
97 ${UKERNELDIR}/afsint/rxstat.c \
98 ${UKERNELDIR}/afsint/rxstat.h \
99 ${UKERNELDIR}/afsint/Krxstat.ss.c \
100 ${UKERNELDIR}/afsint/Krxstat.xdr.c
102 ${UKERNELDIR}/afsint:
105 ${UKERNELDIR}/afsint/rxstat.c: rxstat.c
108 ${UKERNELDIR}/afsint/rxstat.h: rxstat.h
111 ${UKERNELDIR}/afsint/Krxstat.ss.c: Krxstat.ss.c
114 ${UKERNELDIR}/afsint/Krxstat.xdr.c: Krxstat.xdr.c
121 $(RM) -f rxstat.h *.xdr.c *.cs.c *.ss.c *.o *.a core AFS_component_version_number.c
123 include ../config/Makefile.version
124 ${DESTDIR}${includedir}/rx/rxstat.h: rxstat.h
127 ${TOP_INCDIR}/rx/rxstat.h: rxstat.h
130 ${DESTDIR}${libdir}/librxstat.a: librxstat.a
133 ${TOP_LIBDIR}/librxstat.a: librxstat.a
136 dest: ${DEST}/include/rx/rxstat.h ${DEST}/lib/librxstat.a