Import Upstream version 1.8.5
[hcoop/debian/openafs.git] / src / usd / 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 include @TOP_OBJDIR@/src/config/Makefile.pthread
11 include @TOP_OBJDIR@/src/config/Makefile.libtool
12
13 LT_objs = usd_file.lo AFS_component_version_number.lo
14 LT_deps = $(top_builddir)/src/opr/liboafs_opr.la
15
16 all: 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 #
27 liboafs_usd.la: liboafs_usd.la.sym $(LT_objs) $(LT_deps)
28 $(LT_LDLIB_shlib) $(LT_objs) $(LT_deps) $(LT_libs)
29
30 libusd.a: $(LT_objs)
31 $(LT_LDLIB_static) $(LT_objs)
32
33 usd_file.lo: usd.h
34
35 #
36 # Installation targets
37 #
38 install: 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
44 dest: 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 #
53 clean:
54 $(LT_CLEAN)
55 $(RM) -f *.o libusd.a core AFS_component_version_number.c
56
57 include ../config/Makefile.version