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}
15 include ../config/Makefile.version
17 KERNELDIR = ../libafs/
18 UKERNELDIR = ../libuafs/
19 RXGEN=${SRCDIR}bin/rxgen
20 MKDIR_IF_NEEDED=[ -d $$1 ] || mkdir -p $$1
22 KSRCS=rxstat.c rxstat.h Krxstat.ss.c Krxstat.xdr.c
24 CFLAGS = $(DBUG) -I${TOP_SRCDIR}/config -I${SRCDIR}include ${XCFLAGS}
26 LIBOBJS = rxstat.cs.o rxstat.ss.o rxstat.xdr.o rxstat.o
28 all: librxstat.a includes
30 rxstat.cs.c rxstat.ss.c rxstat.xdr.c rxstat.h: rxstat.xg
33 librxstat.a: ${LIBOBJS} AFS_component_version_number.o
35 $(AR) rv $@ AFS_component_version_number.o ${LIBOBJS}
39 set ${KERNELDIR}afsint; $(MKDIR_IF_NEEDED)
40 ${INSTALL} ${KSRCS} ${KERNELDIR}afsint
42 ukinstall webinstall: ${KSRCS}
43 set ${UKERNELDIR}afsint; $(MKDIR_IF_NEEDED)
44 ${INSTALL} ${KSRCS} ${UKERNELDIR}afsint
46 Krxstat.cs.c: rxstat.xg
47 ${RXGEN} -x -k -C -o $@ rxstat.xg
49 Krxstat.ss.c: rxstat.xg
50 ${RXGEN} -x -k -S -o $@ rxstat.xg
52 Krxstat.xdr.c: rxstat.xg
53 ${RXGEN} -x -k -c -o $@ rxstat.xg
55 install: librxstat.a includes kinstall ukinstall
56 ${INSTALL} librxstat.a ${DESTDIR}lib
59 ${INSTALL} rxstat.h ${DESTDIR}include/rx
62 rm -f rxstat.h *.xdr.c *.cs.c *.ss.c *.o *.a core *_component_version_number.c