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
8 # Makefile for the module providing the client side of the File Server
9 # and Cache Manager extended statistics gathering.
12 TOP_SRCDIR=@TOP_SRCDIR@
13 SYS_NAME=@AFS_SYSNAME@
17 include ../config/Makefile.${SYS_NAME}
20 -I${TOP_SRCDIR}/config \
22 -I${SRCDIR}/include/afs \
24 -I/usr/include ${XCFLAGS}
26 RPCINCLS=${SRCDIR}/include/lwp.h ${SRCDIR}/include/rx/rx.h
27 FSINCLS=xstat_fs.h ${RPCINCLS}
28 CMINCLS=xstat_cm.h ${RPCINCLS}
30 AFSLIBS=${SRCDIR}/lib/afs/libafsint.a \
31 ${SRCDIR}/lib/afs/libcmd.a \
32 ${SRCDIR}/lib/librx.a \
33 ${SRCDIR}/lib/liblwp.a \
34 ${SRCDIR}/lib/afs/libsys.a \
35 ${SRCDIR}/lib/afs/util.a
44 include ../config/Makefile.version
46 all: libxstat_fs.a xstat_fs_test \
47 libxstat_cm.a xstat_cm_test
50 # ------------------------------------------ File Server data collection
52 libxstat_fs.a: ${FSOBJS} AFS_component_version_number.o
54 ${AR} rv libxstat_fs.a ${FSOBJS} AFS_component_version_number.o
55 $(RANLIB) libxstat_fs.a
57 xstat_fs.o: xstat_fs.c ${FSINCLS}
59 xstat_fs_callback.o: xstat_fs_callback.c ${FSINCLS}
61 xstat_fs_test.: xstat_fs_test.c ${FSINCLS}
63 xstat_fs_test: xstat_fs_test.o libxstat_fs.a ${LIBS}
64 ${CC} ${CFLAGS} -o xstat_fs_test xstat_fs_test.o libxstat_fs.a ${LIBS} ${XLIBS}
67 # ---------------------------------------- Cache Manager data collection
69 libxstat_cm.a: ${CMOBJS} AFS_component_version_number.o
71 ${AR} rv libxstat_cm.a ${CMOBJS} AFS_component_version_number.o
72 $(RANLIB) libxstat_cm.a
74 xstat_cm.o: xstat_cm.c ${CMINCLS}
76 xstat_cm_test.o: xstat_cm_test.c ${CMINCLS}
78 xstat_cm_test: xstat_cm_test.o libxstat_cm.a ${LIBS}
79 ${CC} ${CFLAGS} -o xstat_cm_test xstat_cm_test.o libxstat_cm.a ${LIBS} ${XLIBS}
88 ${INSTALL} xstat_fs.h ${DESTDIR}/include/afs
89 ${INSTALL} xstat_cm.h ${DESTDIR}/include/afs
90 ${INSTALL} libxstat_fs.a ${DESTDIR}/lib/afs
91 ${INSTALL} libxstat_cm.a ${DESTDIR}/lib/afs
92 ${INSTALL} xstat_fs_test ${DESTDIR}/bin
93 ${INSTALL} xstat_cm_test ${DESTDIR}/bin
102 AFS_component_version_number.c