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 fsprobe and its test program, all part of the AFS
9 # navigation and monitoring tool (gator).
13 TOP_SRCDIR=@TOP_SRCDIR@
14 SYS_NAME=@AFS_SYSNAME@
18 include ../config/Makefile.${SYS_NAME}
21 -I${TOP_SRCDIR}/config \
23 -I${SRCDIR}/include/afs \
25 -I/usr/include ${XCFLAGS}
27 RPCINCLS=${SRCDIR}/include/lwp.h ${SRCDIR}/include/rx/rx.h
29 INCLS=fsprobe.h ${RPCINCLS}
31 LIBS= ${SRCDIR}/lib/afs/libvolser.a ${SRCDIR}/lib/afs/vlib.a ${SRCDIR}/lib/afs/libacl.a \
32 ${SRCDIR}/lib/afs/libsys.a ${SRCDIR}/lib/afs/libvldb.a \
33 ${SRCDIR}/lib/libubik.a \
34 ${SRCDIR}/lib/afs/libauth.a ${SRCDIR}/lib/afs/libsys.a \
35 ${SRCDIR}/lib/afs/libcmd.a ${SRCDIR}/lib/librxkad.a ${SRCDIR}/lib/libdes.a \
36 ${SRCDIR}/lib/afs/libcom_err.a ${SRCDIR}/lib/afs/libkauth.a \
37 ${SRCDIR}/lib/afs/libaudit.a \
38 ${SRCDIR}/lib/afs/libafsint.a \
39 ${SRCDIR}/lib/librx.a \
40 ${SRCDIR}/lib/liblwp.a \
41 ${SRCDIR}/lib/afs/libsys.a \
42 ${SRCDIR}/lib/afs/util.a
49 libfsprobe.a: fsprobe.o fsprobe_callback.o AFS_component_version_number.o
51 $(AR) crv $@ fsprobe.o fsprobe_callback.o AFS_component_version_number.o
54 fsprobe.o: fsprobe.c ${INCLS} AFS_component_version_number.c
56 fsprobe_callback.o: fsprobe_callback.c ${INCLS}
58 fsprobe_test: fsprobe_test.o libfsprobe.a ${LIBS}
59 ${CC} ${CFLAGS} -o fsprobe_test fsprobe_test.o libfsprobe.a \
65 install: ${DESTDIR}/include/afs/fsprobe.h \
66 ${DESTDIR}/lib/afs/libfsprobe.a \
69 ${DESTDIR}/include/afs/fsprobe.h: fsprobe.h
72 ${DESTDIR}/lib/afs/libfsprobe.a: libfsprobe.a
79 $(RM) -f *.o fsprobe_test libfsprobe.a core AFS_component_version_number.c
81 include ../config/Makefile.version