convert xstat and friends to pthreads
[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 include @TOP_OBJDIR@/src/config/Makefile.pthread
11 include @TOP_OBJDIR@/src/config/Makefile.libtool
12
13 INCLS=fsprobe.h ${TOP_INCDIR}/rx/rx.h
14
15 LT_deps = \
16         $(top_builddir)/src/rxkad/liboafs_rxkad.la \
17         $(top_builddir)/src/fsint/liboafs_fsint.la \
18         $(top_builddir)/src/cmd/liboafs_cmd.la \
19         $(top_builddir)/src/util/liboafs_util.la \
20         $(top_builddir)/src/opr/liboafs_opr.la \
21         $(top_builddir)/src/volser/liboafs_volser.la
22
23 LT_objs = \
24     fsprobe.lo \
25     fsprobe_callback.lo \
26     afscbint.ss.lo \
27     AFS_component_version_number.lo
28
29 all: \
30     liboafs_fsprobe.la \
31     ${TOP_INCDIR}/afs/fsprobe.h \
32     ${TOP_LIBDIR}/libfsprobe.a \
33     fsprobe_test
34
35 ${TOP_INCDIR}/afs/fsprobe.h: fsprobe.h
36         ${INSTALL_DATA} $? $@
37
38 ${TOP_LIBDIR}/libfsprobe.a: libfsprobe.a
39         ${INSTALL_DATA} $? $@
40
41 #
42 # Build targets
43 #
44 liboafs_fsprobe.la: liboafs_fsprobe.la.sym $(LT_objs) $(LT_deps)
45         $(LT_LDLIB_shlib) $(LT_objs) $(LT_deps) $(LT_libs)
46
47 libfsprobe.a: $(LT_objs)
48         $(LT_LDLIB_static) $(LT_objs)
49
50 # afscbint.ss.c is required for RXAFSCB_ExecuteRequest.
51 afscbint.h: $(top_builddir)/src/fsint/afscbint.h
52         ${INSTALL_DATA} $? $@
53
54 afscbint.ss.c: $(top_builddir)/src/fsint/afscbint.ss.c
55         ${INSTALL_DATA} $? $@
56
57 fsprobe.lo: fsprobe.c ${INCLS} AFS_component_version_number.c
58 fsprobe_callback.lo: fsprobe_callback.c ${INCLS}
59 afscbint.ss.lo: afscbint.ss.c afscbint.h
60
61 #
62 # Test programs
63 #
64 fsprobe_test: fsprobe_test.o libfsprobe.a $(LT_deps)
65         $(LT_LDRULE_static) fsprobe_test.o libfsprobe.a \
66                 $(LT_deps) $(LIB_roken) ${XLIBS}
67
68 #
69 # Install targets
70 #
71 install: fsprobe.h libfsprobe.a
72         ${INSTALL} -d ${DESTDIR}${includedir}/afs
73         ${INSTALL} -d ${DESTDIR}${libdir}/afs
74         ${INSTALL_DATA} ${srcdir}/fsprobe.h ${DESTDIR}${includedir}/afs/fsprobe.h
75         ${INSTALL_DATA} libfsprobe.a ${DESTDIR}${libdir}/afs/libfsprobe.a
76
77 dest: fsprobe.h libfsprobe.a
78         ${INSTALL} -d ${DEST}/include/afs
79         ${INSTALL} -d ${DEST}/lib/afs
80         ${INSTALL_DATA} ${srcdir}/fsprobe.h ${DEST}/include/afs/fsprobe.h
81         ${INSTALL_DATA} libfsprobe.a ${DEST}/lib/afs/libfsprobe.a
82
83 #
84 # Misc others
85 #
86 clean:
87         $(LT_CLEAN)
88         $(RM) -f *.o afscbint.ss.c afscbint.h fsprobe_test libfsprobe.a \
89                 core AFS_component_version_number.c
90
91 include ../config/Makefile.version