1 # Copyright 2000, International Business Machines Corporation and others.
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
9 include @TOP_OBJDIR@/src/config/Makefile.config
12 CFLAGS=-g -w -I${TOP_OBJDIR}/src/config -I${TOP_INCDIR} ${XCFLAGS}
13 LDFLAGS = -g ${XLDFLAGS}
14 INCLS=${TOP_INCDIR}/afs/com_err.h ${TOP_INCDIR}/afs/butm.h
16 LIBS=${TOP_LIBDIR}/libbubasics.a \
17 ${TOP_LIBDIR}/liblwp.a \
18 ${TOP_LIBDIR}/libusd.a \
19 ${TOP_LIBDIR}/libcom_err.a \
20 ${TOP_LIBDIR}/libbutm.a \
21 ${TOP_LIBDIR}/libcom_err.a \
22 ${TOP_LIBDIR}/util.a \
25 all: ${TOP_LIBDIR}/libbutm.a
27 install: ${DESTDIR}${libdir}/afs/libbutm.a
29 ${DEST}/lib/afs/libbutm.a: libbutm.a
32 libbutm.a: file_tm.o AFS_component_version_number.o
34 $(AR) crv $@ file_tm.o AFS_component_version_number.o
37 file_tm.o: file_tm.c ${INCLS} AFS_component_version_number.c
39 test_ftm.o: test_ftm.c ${INCLS} AFS_component_version_number.c
41 test_ftm: test_ftm.o libbutm.a
42 ${CC} ${LDFLAGS} -o test_ftm test_ftm.o libbutm.a ${LIBS}
45 echo 'Usage: ./test_ftm -conf config -tape xxx *'
48 $(RM) -f *.o *.a core test_ftm AFS_component_version_number.c
50 include ../config/Makefile.version
51 ${DESTDIR}${libdir}/afs/libbutm.a: libbutm.a
54 ${TOP_LIBDIR}/libbutm.a: libbutm.a
57 dest: ${DEST}/lib/afs/libbutm.a