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 include ../config/Makefile.${SYS_NAME}
16 -I${TOP_SRCDIR}/config \
18 -I${SRCDIR}include/afs \
20 -I/usr/include ${XCFLAGS}
22 RPCINCLS=${SRCDIR}include/lwp.h ${SRCDIR}include/rx/rx.h
24 INCLS=fsprobe.h ${RPCINCLS}
26 LIBS= ${SRCDIR}lib/afs/libvolser.a ${SRCDIR}lib/afs/vlib.a ${SRCDIR}/lib/afs/libacl.a \
27 ${SRCDIR}lib/afs/libsys.a ${SRCDIR}lib/afs/libvldb.a \
28 ${SRCDIR}lib/libubik.a \
29 ${SRCDIR}lib/afs/libauth.a ${SRCDIR}lib/afs/libsys.a \
30 ${SRCDIR}lib/afs/libcmd.a ${SRCDIR}lib/librxkad.a ${SRCDIR}lib/libdes.a \
31 ${SRCDIR}lib/afs/libcom_err.a ${SRCDIR}lib/afs/libkauth.a \
32 ${SRCDIR}lib/afs/libaudit.a \
33 ${SRCDIR}lib/afs/libafsint.a \
34 ${SRCDIR}lib/librx.a \
35 ${SRCDIR}lib/liblwp.a \
36 ${SRCDIR}lib/afs/libsys.a \
37 ${SRCDIR}lib/afs/util.a
42 include ../config/Makefile.version
46 all: libfsprobe.a fsprobe_test
48 libfsprobe.a: ${OBJS} AFS_component_version_number.o
50 ${AR} rv libfsprobe.a ${OBJS} AFS_component_version_number.o
51 ${RANLIB} libfsprobe.a
53 fsprobe.o: fsprobe.c ${INCLS} AFS_component_version_number.c
55 fsprobe_callback.o: fsprobe_callback.c ${INCLS}
57 fsprobe_test: fsprobe_test.o libfsprobe.a ${LIBS}
58 ${CC} ${CFLAGS} -o fsprobe_test fsprobe_test.o libfsprobe.a \
67 ${INSTALL} fsprobe.h ${DESTDIR}include/afs
68 ${INSTALL} libfsprobe.a ${DESTDIR}lib/afs
71 rm -f *.o fsprobe_test libfsprobe.a core AFS_component_version_number.c