fs-sysname-output-syntax-compatibility-20010723
[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 CFLAGS=-g -I. \
16         -I${TOP_SRCDIR}/config \
17         -I${SRCDIR}include \
18         -I${SRCDIR}include/afs \
19         -I${SRCDIR} \
20         -I/usr/include ${XCFLAGS}
21
22 RPCINCLS=${SRCDIR}include/lwp.h ${SRCDIR}include/rx/rx.h
23
24 INCLS=fsprobe.h ${RPCINCLS}
25
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 
38
39 OBJS=fsprobe.o \
40         fsprobe_callback.o
41
42 include ../config/Makefile.version
43
44 noversion: install
45
46 all: libfsprobe.a fsprobe_test
47
48 libfsprobe.a: ${OBJS} AFS_component_version_number.o
49         -rm -f libfsprobe.a
50         ${AR} rv libfsprobe.a ${OBJS} AFS_component_version_number.o
51         ${RANLIB} libfsprobe.a
52
53 fsprobe.o: fsprobe.c ${INCLS} AFS_component_version_number.c
54
55 fsprobe_callback.o: fsprobe_callback.c ${INCLS}
56
57 fsprobe_test: fsprobe_test.o libfsprobe.a ${LIBS}
58         ${CC} ${CFLAGS} -o fsprobe_test fsprobe_test.o libfsprobe.a \
59                 ${LIBS} ${XLIBS}
60
61 #
62 # Misc others
63 #
64 system: install
65
66 install: all
67         ${INSTALL} fsprobe.h    ${DESTDIR}include/afs
68         ${INSTALL} libfsprobe.a ${DESTDIR}lib/afs
69
70 clean:
71         rm -f *.o fsprobe_test libfsprobe.a core AFS_component_version_number.c