makefile-updates-20010828
[openafs.git] / src / fsprobe / Makefile.in
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 DESTDIR=@DESTDIR@
12 SRCDIR=@SRCDIR@
13 TOP_SRCDIR=@TOP_SRCDIR@
14 SYS_NAME=@AFS_SYSNAME@
15
16 SHELL = /bin/sh
17
18 include ../config/Makefile.${SYS_NAME}
19
20 CFLAGS=-g -I. \
21         -I${TOP_SRCDIR}/config \
22         -I${SRCDIR}/include \
23         -I${SRCDIR}/include/afs \
24         -I${SRCDIR} \
25         -I/usr/include ${XCFLAGS}
26
27 RPCINCLS=${SRCDIR}/include/lwp.h ${SRCDIR}/include/rx/rx.h
28
29 INCLS=fsprobe.h ${RPCINCLS}
30
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 
43
44 all: install
45
46 #
47 # Build targets
48 #
49 libfsprobe.a: fsprobe.o fsprobe_callback.o AFS_component_version_number.o
50         -rm -f libfsprobe.a
51         ${AR} rv libfsprobe.a fsprobe.o fsprobe_callback.o 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 # Install targets
64 #
65 install: ${DESTDIR}/include/afs/fsprobe.h \
66         ${DESTDIR}/lib/afs/libfsprobe.a \
67         fsprobe_test
68
69 ${DESTDIR}/include/afs/fsprobe.h: fsprobe.h
70         ${INSTALL} $? $@
71
72 ${DESTDIR}/lib/afs/libfsprobe.a: libfsprobe.a
73         ${INSTALL} $? $@
74
75 #
76 # Misc others
77 #
78 clean:
79         rm -f *.o fsprobe_test libfsprobe.a core AFS_component_version_number.c
80
81 include ../config/Makefile.version
82