39fb6b8f88a7ef23fdd8b7d192f786fa8d87bb41
[openafs.git] / src / fsprobe / Makefile
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 # Makefile for fsprobe and its test program, all part of the AFS
9 # navigation and monitoring tool (gator).
10 #
11 SHELL = /bin/sh
12 COMPONENT=fsprobe
13 include ../config/Makefile.${SYS_NAME}
14
15 INSTALL=${SRCDIR}bin/install
16
17 CFLAGS=-g -I. \
18         -I${SRCDIR}include \
19         -I${SRCDIR}include/afs \
20         -I${SRCDIR} \
21         -I/usr/include ${XCFLAGS}
22
23 RPCINCLS=${SRCDIR}include/lwp.h ${SRCDIR}include/rx/rx.h
24
25 INCLS=fsprobe.h ${RPCINCLS}
26
27 LIBS=   ${SRCDIR}lib/afs/libvolser.a ${SRCDIR}lib/afs/vlib.a ${SRCDIR}/lib/afs/libacl.a \
28         ${SRCDIR}lib/afs/libsys.a ${SRCDIR}lib/afs/libvldb.a \
29         ${SRCDIR}lib/libubik.a \
30         ${SRCDIR}lib/afs/libauth.a ${SRCDIR}lib/afs/libsys.a \
31         ${SRCDIR}lib/afs/libcmd.a ${SRCDIR}lib/librxkad.a ${SRCDIR}lib/libdes.a \
32         ${SRCDIR}lib/afs/libcom_err.a ${SRCDIR}lib/afs/libkauth.a \
33         ${SRCDIR}lib/afs/libaudit.a \
34         ${SRCDIR}lib/afs/libafsint.a \
35         ${SRCDIR}lib/librx.a \
36         ${SRCDIR}lib/liblwp.a \
37         ${SRCDIR}lib/afs/libsys.a \
38         ${SRCDIR}lib/afs/util.a 
39
40 OBJS=fsprobe.o \
41         fsprobe_callback.o
42
43 include ../config/Makefile.version
44
45 noversion: install
46
47 all: libfsprobe.a fsprobe_test
48
49 libfsprobe.a: ${OBJS} AFS_component_version_number.o
50         -rm -f libfsprobe.a
51         ${AR} rv libfsprobe.a ${OBJS} AFS_component_version_number.o
52         ${RANLIB} libfsprobe.a
53
54 fsprobe.o: fsprobe.c ${INCLS} AFS_component_version_number.c
55
56 fsprobe_callback.o: fsprobe_callback.c ${INCLS}
57
58 fsprobe_test: fsprobe_test.o libfsprobe.a ${LIBS}
59         ${CC} ${CFLAGS} -o fsprobe_test fsprobe_test.o libfsprobe.a \
60                 ${LIBS} ${XLIBS}
61
62 #
63 # Misc others
64 #
65 system: install
66
67 install: all
68         ${INSTALL} fsprobe.h    ${DESTDIR}include/afs
69         ${INSTALL} libfsprobe.a ${DESTDIR}lib/afs
70
71 clean:
72         rm -f *.o fsprobe_test libfsprobe.a core AFS_component_version_number.c