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