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