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