6152982cb907e3652d3829d7d894b7b07c253f9c
[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 DESTDIR=@DESTDIR@
9 SRCDIR=@SRCDIR@
10 TOP_SRCDIR=@TOP_SRCDIR@
11 SYS_NAME=@AFS_SYSNAME@
12
13 SHELL = /bin/sh
14
15 include ../config/Makefile.${SYS_NAME}
16
17 INCDIRS= -I${TOP_SRCDIR}/config -I${DESTDIR}/include -I.. \
18         -I${BACKDIR}/include -I${DESTDIR}/include/afs 
19 KERNELDIR = ../libafs/
20 UKERNELDIR = ../libuafs/
21
22 CFLAGS = ${OPTMZ} ${INCDIRS} ${LDIRS} ${LIBS} ${XCFLAGS}
23
24 LIBOBJS=aclprocs.o netprocs.o
25
26 include ../config/Makefile.version
27
28 all: libacl.a
29
30 libacl.a: $(LIBOBJS)  AFS_component_version_number.o
31         rm -f libacl.a
32         ar rv libacl.a $(LIBOBJS) AFS_component_version_number.o
33         $(RANLIB) libacl.a
34
35 aclprocs.o: aclprocs.c acl.h
36
37 netprocs.o: netprocs.c acl.h
38
39 clean: 
40         rm -f acltest *.o libacl.a core AFS_component_version_number.c
41
42 system: install
43
44 kinstall:
45         ${INSTALL} prs_fs.h ${KERNELDIR}/afs/prs_fs.h
46
47 ukinstall webinstall:
48         ${INSTALL} prs_fs.h ${UKERNELDIR}/afs/prs_fs.h
49
50 install: libacl.a kinstall ukinstall
51         ${INSTALL} libacl.a ${DESTDIR}/lib/afs/libacl.a
52         ${INSTALL} acl.h ${DESTDIR}/include/afs/acl.h
53         ${INSTALL} prs_fs.h ${DESTDIR}/include/afs/prs_fs.h
54
55 test:
56         cd test; $(MAKE)