81e322df5331635f520222175d3569986feb4a83
[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 DEST=@DEST@
9 TOP_INCDIR=@TOP_INCDIR@
10 TOP_LIBDIR=@TOP_LIBDIR@
11 prefix=@prefix@
12 exec_prefix=@exec_prefix@
13 bindir=@bindir@
14 sbindir=@sbindir@
15 libexecdir=@libexecdir@
16 libdir=@libdir@
17 includedir=@includedir@
18 mandir=@mandir@
19 afssrvbindir=@afssrvbindir@
20 afssrvsbindir=@afssrvsbindir@
21 afssrvlibexecdir=@afssrvlibexecdir@
22 COMPILE_ET=${TOP_SRCDIR}/comerr/compile_et
23 RXGEN=${TOP_SRCDIR}/rxgen/rxgen
24 TOP_SRCDIR=@TOP_SRCDIR@
25 SYS_NAME=@AFS_SYSNAME@
26
27 SHELL = /bin/sh
28
29 CFLAGS=-g -w -I${TOP_SRCDIR}/config -I${TOP_INCDIR} ${XCFLAGS}
30 LDFLAGS = -g ${XLDFLAGS}
31 INCLS=${TOP_INCDIR}/afs/com_err.h ${TOP_INCDIR}/afs/butm.h
32
33 LIBS=${TOP_LIBDIR}/libbubasics.a \
34         ${TOP_LIBDIR}/liblwp.a \
35         ${TOP_LIBDIR}/libusd.a \
36         ${TOP_LIBDIR}/libcom_err.a \
37         ${TOP_LIBDIR}/libbutm.a \
38         ${TOP_LIBDIR}/libcom_err.a \
39         ${TOP_LIBDIR}/util.a \
40         ${XLIBS}
41
42 include ../config/Makefile.${SYS_NAME}
43
44 all: ${TOP_LIBDIR}/libbutm.a
45
46 install: ${DESTDIR}${libdir}/afs/libbutm.a
47
48 ${DEST}/lib/afs/libbutm.a: libbutm.a
49         ${INSTALL} $? $@
50
51 libbutm.a: file_tm.o AFS_component_version_number.o
52         -$(RM) -f $@
53         $(AR) crv $@ file_tm.o AFS_component_version_number.o
54         $(RANLIB) $@
55
56 file_tm.o: file_tm.c ${INCLS} AFS_component_version_number.c
57
58 test_ftm.o: test_ftm.c ${INCLS} AFS_component_version_number.c
59
60 test_ftm: test_ftm.o libbutm.a
61         ${CC} ${LDFLAGS} -o test_ftm test_ftm.o libbutm.a ${LIBS}
62
63 test: test_ftm
64         echo 'Usage: ./test_ftm -conf config -tape xxx *'
65
66 clean:
67         $(RM) -f *.o *.a core test_ftm AFS_component_version_number.c
68
69 include ../config/Makefile.version
70 ${DESTDIR}${libdir}/afs/libbutm.a: libbutm.a
71         ${INSTALL} $? $@
72
73 ${TOP_LIBDIR}/libbutm.a: libbutm.a
74         ${INSTALL} $? $@
75
76 dest: ${DEST}/lib/afs/libbutm.a
77