921f879be76c8faec3c47c9d44d30ce8732e6e96
[openafs.git] / src / rxstat / Makefile.in
1 # Copyright 2000, International Business Machines Corporation and others.
2 # All Rights Reserved.
3
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
7
8 DESTDIR=@DESTDIR@
9 SRCDIR=@SRCDIR@
10 TOP_SRCDIR=@TOP_SRCDIR@
11 SYS_NAME=@AFS_SYSNAME@
12
13 SHELL = /bin/sh
14 include ../config/Makefile.${SYS_NAME}
15 include ../config/Makefile.version
16
17 KERNELDIR = ../libafs/
18 UKERNELDIR = ../libuafs/
19 RXGEN=${SRCDIR}bin/rxgen
20 MKDIR_IF_NEEDED=[ -d $$1 ] || mkdir -p $$1
21
22 KSRCS=rxstat.c rxstat.h Krxstat.ss.c Krxstat.xdr.c
23
24 CFLAGS = $(DBUG) -I${TOP_SRCDIR}/config -I${SRCDIR}include ${XCFLAGS}
25
26 LIBOBJS = rxstat.cs.o rxstat.ss.o rxstat.xdr.o rxstat.o
27
28 all: librxstat.a includes
29
30 rxstat.cs.c rxstat.ss.c rxstat.xdr.c rxstat.h: rxstat.xg
31         ${RXGEN} -x rxstat.xg
32
33 librxstat.a: ${LIBOBJS} AFS_component_version_number.o
34         -rm -f $@
35         $(AR) rv $@ AFS_component_version_number.o ${LIBOBJS}
36         $(RANLIB) $@
37
38 kinstall: ${KSRCS} 
39         set ${KERNELDIR}afsint; $(MKDIR_IF_NEEDED)
40         ${INSTALL} ${KSRCS} ${KERNELDIR}afsint
41
42 ukinstall webinstall:  ${KSRCS}
43         set ${UKERNELDIR}afsint; $(MKDIR_IF_NEEDED)
44         ${INSTALL} ${KSRCS} ${UKERNELDIR}afsint
45
46 Krxstat.cs.c: rxstat.xg
47         ${RXGEN} -x -k -C -o $@ rxstat.xg
48
49 Krxstat.ss.c: rxstat.xg
50         ${RXGEN} -x -k -S -o $@ rxstat.xg
51
52 Krxstat.xdr.c: rxstat.xg
53         ${RXGEN} -x -k -c -o $@ rxstat.xg
54
55 install: librxstat.a includes kinstall ukinstall
56         ${INSTALL} librxstat.a ${DESTDIR}lib
57
58 includes: rxstat.h
59         ${INSTALL} rxstat.h ${DESTDIR}include/rx
60
61 clean:
62         rm -f rxstat.h *.xdr.c *.cs.c *.ss.c *.o *.a core *_component_version_number.c