Import Debian changes 1.8.5-1
[hcoop/debian/openafs.git] / src / libacl / 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.lwp
11include @TOP_OBJDIR@/src/config/Makefile.lwptool
12
13LT_objs = aclprocs.lo netprocs.lo AFS_component_version_number.lo
14LT_deps = $(top_builddir)/src/ptserver/liboafs_prot.la
15LT_libs =
16
17#
18# Main targets
19#
20all: \
21 liboafs_acl.la \
22 ${TOP_LIBDIR}/libacl.a \
23 depinstall
24
25depinstall: \
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
38libacl.a: $(LT_objs)
39 $(LT_LDLIB_lwp) $(LT_objs)
40
41liboafs_acl.la: liboafs_acl.la.sym $(LT_objs) $(LT_deps)
42 $(LT_LDLIB_shlib) $(LT_objs) $(LT_deps) $(LT_libs)
43
44aclprocs.lo: aclprocs.c acl.h
45netprocs.lo: netprocs.c acl.h
46
47#
48# Installation targets
49#
50install: 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
57dest: 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#
67test:
68 cd test; $(MAKE)
69
70clean:
71 $(LT_CLEAN)
72 $(RM) -f acltest *.o *.a core AFS_component_version_number.c
73
74include ../config/Makefile.version