Import Upstream version 1.8.5
[hcoop/debian/openafs.git] / src / libacl / 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.lwp
11 include @TOP_OBJDIR@/src/config/Makefile.lwptool
12
13 LT_objs = aclprocs.lo netprocs.lo AFS_component_version_number.lo
14 LT_deps = $(top_builddir)/src/ptserver/liboafs_prot.la
15 LT_libs =
16
17 #
18 # Main targets
19 #
20 all: \
21 liboafs_acl.la \
22 ${TOP_LIBDIR}/libacl.a \
23 depinstall
24
25 depinstall: \
26 ${TOP_INCDIR}/afs/acl.h \
27 ${TOP_INCDIR}/afs/prs_fs.h
28
29 ${TOP_LIBDIR}/libacl.a: libacl.a
30 ${INSTALL_DATA} $? $@
31
32 ${TOP_INCDIR}/afs/acl.h: acl.h
33 ${INSTALL_DATA} $? $@
34
35 ${TOP_INCDIR}/afs/prs_fs.h: prs_fs.h
36 ${INSTALL_DATA} $? $@
37
38 libacl.a: $(LT_objs)
39 $(LT_LDLIB_lwp) $(LT_objs)
40
41 liboafs_acl.la: liboafs_acl.la.sym $(LT_objs) $(LT_deps)
42 $(LT_LDLIB_shlib) $(LT_objs) $(LT_deps) $(LT_libs)
43
44 aclprocs.lo: aclprocs.c acl.h
45 netprocs.lo: netprocs.c acl.h
46
47 #
48 # Installation targets
49 #
50 install: libacl.a acl.h prs_fs.h
51 ${INSTALL} -d ${DESTDIR}${libdir}/afs
52 ${INSTALL} -d ${DESTDIR}${includedir}/afs
53 ${INSTALL_DATA} libacl.a ${DESTDIR}${libdir}/afs/libacl.a
54 ${INSTALL_DATA} ${srcdir}/acl.h ${DESTDIR}${includedir}/afs/acl.h
55 ${INSTALL_DATA} ${srcdir}/prs_fs.h ${DESTDIR}${includedir}/afs/prs_fs.h
56
57 dest: libacl.a acl.h prs_fs.h
58 ${INSTALL} -d ${DEST}/lib/afs
59 ${INSTALL} -d ${DEST}/include/afs
60 ${INSTALL_DATA} libacl.a ${DEST}/lib/afs/libacl.a
61 ${INSTALL_DATA} ${srcdir}/acl.h ${DEST}/include/afs/acl.h
62 ${INSTALL_DATA} ${srcdir}/prs_fs.h ${DEST}/include/afs/prs_fs.h
63
64 #
65 # Misc. targets
66 #
67 test:
68 cd test; $(MAKE)
69
70 clean:
71 $(LT_CLEAN)
72 $(RM) -f acltest *.o *.a core AFS_component_version_number.c
73
74 include ../config/Makefile.version