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