3eafb098cb690df9ba96c202d32d215891195437
[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 srcdir=@srcdir@
9 include @TOP_OBJDIR@/src/config/Makefile.config
10
11 CFLAGS=-g -I. \
12         -I${TOP_OBJDIR}/src/config \
13         -I${TOP_INCDIR} \
14         -I${TOP_INCDIR}/afs \
15         -I${SRCDIR} \
16         -I/usr/include ${XCFLAGS}
17
18 RPCINCLS=${TOP_INCDIR}/lwp.h ${TOP_INCDIR}/rx/rx.h
19
20 INCLS=fsprobe.h ${RPCINCLS}
21
22 LIBS=${TOP_LIBDIR}/libvolser.a ${TOP_LIBDIR}/vlib.a ${TOP_LIBDIR}/libacl.a \
23         ${TOP_LIBDIR}/libsys.a ${TOP_LIBDIR}/libvldb.a \
24         ${TOP_LIBDIR}/libubik.a \
25         ${TOP_LIBDIR}/libauth.a ${TOP_LIBDIR}/libsys.a \
26         ${TOP_LIBDIR}/libcmd.a ${TOP_LIBDIR}/librxkad.a ${TOP_LIBDIR}/libdes.a \
27         ${TOP_LIBDIR}/libcom_err.a ${TOP_LIBDIR}/libkauth.a \
28         ${TOP_LIBDIR}/libaudit.a \
29         ${TOP_LIBDIR}/libafsint.a \
30         ${TOP_LIBDIR}/librx.a \
31         ${TOP_LIBDIR}/liblwp.a \
32         ${TOP_LIBDIR}/libsys.a \
33         ${TOP_LIBDIR}/util.a
34
35 all: ${TOP_INCDIR}/afs/fsprobe.h ${TOP_LIBDIR}/libfsprobe.a fsprobe_test
36
37 #
38 # Build targets
39 #
40 libfsprobe.a: fsprobe.o fsprobe_callback.o AFS_component_version_number.o
41         -$(RM) -f $@
42         $(AR) crv $@ fsprobe.o fsprobe_callback.o AFS_component_version_number.o
43         $(RANLIB) $@
44
45 fsprobe.o: fsprobe.c ${INCLS} AFS_component_version_number.c
46
47 fsprobe_callback.o: fsprobe_callback.c ${INCLS}
48
49 fsprobe_test: fsprobe_test.o libfsprobe.a ${LIBS}
50         ${CC} ${CFLAGS} -o fsprobe_test fsprobe_test.o libfsprobe.a \
51                 ${LIBS} ${XLIBS}
52
53 #
54 # Install targets
55 #
56 install: ${DESTDIR}${includedir}/afs/fsprobe.h ${DESTDIR}${libdir}/afs/libfsprobe.a 
57
58 ${DEST}/include/afs/fsprobe.h: fsprobe.h
59         ${INSTALL} $? $@
60
61 ${DEST}/lib/afs/libfsprobe.a: libfsprobe.a
62         ${INSTALL} $? $@
63
64 #
65 # Misc others
66 #
67 clean:
68         $(RM) -f *.o fsprobe_test libfsprobe.a core AFS_component_version_number.c
69
70 include ../config/Makefile.version
71
72 ${DESTDIR}${includedir}/afs/fsprobe.h: fsprobe.h
73         ${INSTALL} $? $@
74
75 ${TOP_INCDIR}/afs/fsprobe.h: fsprobe.h
76         ${INSTALL} $? $@
77
78 ${DESTDIR}${libdir}/afs/libfsprobe.a: libfsprobe.a
79         ${INSTALL} $? $@
80
81 ${TOP_LIBDIR}/libfsprobe.a: libfsprobe.a
82         ${INSTALL} $? $@
83
84 dest: ${DEST}/include/afs/fsprobe.h ${DEST}/lib/afs/libfsprobe.a 
85