Import Upstream version 1.8.5
[hcoop/debian/openafs.git] / src / usd / 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.pthread
11include @TOP_OBJDIR@/src/config/Makefile.libtool
12
13LT_objs = usd_file.lo AFS_component_version_number.lo
14LT_deps = $(top_builddir)/src/opr/liboafs_opr.la
15
16all: liboafs_usd.la ${TOP_LIBDIR}/libusd.a ${TOP_INCDIR}/afs/usd.h
17
18${TOP_LIBDIR}/libusd.a: libusd.a
19 ${INSTALL_DATA} $? $@
20
21${TOP_INCDIR}/afs/usd.h: usd.h
22 ${INSTALL_DATA} $? $@
23
24#
25# Build targets
26#
27liboafs_usd.la: liboafs_usd.la.sym $(LT_objs) $(LT_deps)
28 $(LT_LDLIB_shlib) $(LT_objs) $(LT_deps) $(LT_libs)
29
30libusd.a: $(LT_objs)
31 $(LT_LDLIB_static) $(LT_objs)
32
33usd_file.lo: usd.h
34
35#
36# Installation targets
37#
38install: libusd.a usd.h
39 ${INSTALL} -d ${DESTDIR}${libdir}/afs
40 ${INSTALL} -d ${DESTDIR}${includedir}/afs
41 ${INSTALL_DATA} libusd.a ${DESTDIR}${libdir}/afs/libusd.a
42 ${INSTALL_DATA} ${srcdir}/usd.h ${DESTDIR}${includedir}/afs/usd.h
43
44dest: libusd.a usd.h
45 ${INSTALL} -d ${DEST}/lib/afs
46 ${INSTALL} -d ${DEST}/include/afs
47 ${INSTALL_DATA} libusd.a ${DEST}/lib/afs/libusd.a
48 ${INSTALL_DATA} ${srcdir}/usd.h ${DEST}/include/afs/usd.h
49
50#
51# Misc. targets
52#
53clean:
54 $(LT_CLEAN)
55 $(RM) -f *.o libusd.a core AFS_component_version_number.c
56
57include ../config/Makefile.version