Import Upstream version 1.8.5
[hcoop/debian/openafs.git] / src / butm / Makefile.in
CommitLineData
805e021f
CE
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
8srcdir=@srcdir@
9include @TOP_OBJDIR@/src/config/Makefile.config
10include @TOP_OBJDIR@/src/config/Makefile.lwp
11
12
13INCLS=${TOP_INCDIR}/afs/com_err.h ${TOP_INCDIR}/afs/butm.h
14
15LIBS=${TOP_LIBDIR}/libbubasics.a \
16 ${TOP_LIBDIR}/liblwp.a \
17 ${TOP_LIBDIR}/libusd.a \
18 ${TOP_LIBDIR}/libafscom_err.a \
19 ${TOP_LIBDIR}/libbutm.a \
20 ${TOP_LIBDIR}/libafscom_err.a \
21 ${TOP_LIBDIR}/util.a \
22 ${XLIBS}
23
24all: ${TOP_LIBDIR}/libbutm.a ${TOP_INCDIR}/afs/butm_prototypes.h
25
26${TOP_LIBDIR}/libbutm.a: libbutm.a
27 ${INSTALL_DATA} $? $@
28
29${TOP_INCDIR}/afs/butm_prototypes.h: butm_prototypes.h
30 ${INSTALL_DATA} $? $@
31
32libbutm.a: file_tm.o AFS_component_version_number.o
33 -$(RM) -f $@
34 $(AR) crv $@ file_tm.o AFS_component_version_number.o
35 $(RANLIB) $@
36
37file_tm.o: file_tm.c ${INCLS} AFS_component_version_number.c
38
39test_ftm.o: test_ftm.c ${INCLS} AFS_component_version_number.c
40
41test_ftm: test_ftm.o libbutm.a
42 $(AFS_LDRULE) test_ftm.o libbutm.a ${LIBS}
43
44test: test_ftm
45 echo 'Usage: ./test_ftm -conf config -tape xxx *'
46
47install: libbutm.a
48 ${INSTALL} -d ${DESTDIR}${libdir}/afs
49 ${INSTALL_DATA} libbutm.a ${DESTDIR}${libdir}/afs/libbutm.a
50
51dest: libbutm.a
52 ${INSTALL} -d ${DEST}/lib/afs
53 ${INSTALL_DATA} libbutm.a ${DEST}/lib/afs/libbutm.a
54
55clean:
56 $(RM) -f *.o *.a core test_ftm AFS_component_version_number.c
57
58include ../config/Makefile.version