64834c701f97b195d16197c93174bc98276ecf07
[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 INSTALL = @INSTALL@
11 INSTALL_DATA = @INSTALL_DATA@
12 INSTALL_PROGRAM = @INSTALL_PROGRAM@
13 INSTALL_SCRIPT = @INSTALL_SCRIPT@
14
15 #
16 # Main targets
17 #
18 all: \
19         ${TOP_LIBDIR}/libacl.a \
20         depinstall
21
22 depinstall: \
23         ${TOP_INCDIR}/afs/acl.h \
24         ${TOP_INCDIR}/afs/prs_fs.h 
25
26 ${TOP_LIBDIR}/libacl.a: libacl.a
27         ${INSTALL_DATA} $? $@
28
29 ${TOP_INCDIR}/afs/acl.h: acl.h
30         ${INSTALL_DATA} $? $@
31
32 ${TOP_INCDIR}/afs/prs_fs.h: prs_fs.h
33         ${INSTALL_DATA} $? $@
34
35 libacl.a: aclprocs.o netprocs.o AFS_component_version_number.o
36         $(RM) -f $@
37         $(AR) crv $@ aclprocs.o netprocs.o AFS_component_version_number.o
38         $(RANLIB) $@
39
40 aclprocs.o: aclprocs.c acl.h
41
42 netprocs.o: netprocs.c acl.h
43
44 #
45 # Installation targets
46 #
47 install: libacl.a acl.h prs_fs.h
48         ${INSTALL} -d ${DESTDIR}${libdir}/afs
49         ${INSTALL} -d ${DESTDIR}${includedir}/afs
50         ${INSTALL_DATA} libacl.a ${DESTDIR}${libdir}/afs/libacl.a
51         ${INSTALL_DATA} acl.h ${DESTDIR}${includedir}/afs/acl.h
52         ${INSTALL_DATA} prs_fs.h ${DESTDIR}${includedir}/afs/prs_fs.h
53
54 dest: libacl.a acl.h prs_fs.h
55         ${INSTALL} -d ${DEST}/lib/afs
56         ${INSTALL} -d ${DEST}/include/afs
57         ${INSTALL_DATA} libacl.a ${DEST}/lib/afs/libacl.a
58         ${INSTALL_DATA} acl.h ${DEST}/include/afs/acl.h
59         ${INSTALL_DATA} prs_fs.h ${DEST}/include/afs/prs_fs.h
60
61 #
62 # Misc. targets
63 #
64 test:
65         cd test; $(MAKE)
66
67 clean: 
68         $(RM) -f acltest *.o *.a core AFS_component_version_number.c
69
70 include ../config/Makefile.version