1 # Copyright 2000, International Business Machines Corporation and others.
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
10 TOP_SRCDIR=@TOP_SRCDIR@
11 SYS_NAME=@AFS_SYSNAME@
15 include ../config/Makefile.${SYS_NAME}
17 KERNELDIR = ../libafs/
18 UKERNELDIR = ../libuafs/
20 INCDIRS= -I${TOP_SRCDIR}/config -I${DESTDIR}/include ${XINCLS}
21 CFLAGS = ${OPTMZ} ${INCDIRS} ${XCFLAGS}
23 OBJS=buffer.o dir.o salvage.o
24 include ../config/Makefile.version
26 system noversion: install
32 libdir.a: ${OBJS} AFS_component_version_number.o
34 ar rv libdir.a $(OBJS) AFS_component_version_number.o
38 ${INSTALL} dir.h ${KERNELDIR}/afs
39 ${INSTALL} dir.c ${KERNELDIR}/afs/afs_dir.c
41 ukinstall webinstall: ${UKERNELDIR}/afs
42 ${INSTALL} dir.h ${UKERNELDIR}/afs
43 ${INSTALL} dir.c ${UKERNELDIR}/afs/afs_dir.c
48 install: all kinstall ukinstall
49 ${INSTALL} libdir.a ${DESTDIR}/lib/afs
50 ${INSTALL} dir.h ${DESTDIR}/include/afs
59 salvage.o: salvage.c dir.h
62 $(RM) -f *.o *.a core AFS_component_version_number.c