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 include ../config/Makefile.${SYS_NAME}
12 KERNELDIR = ../libafs/
13 UKERNELDIR = ../libuafs/
14 MKDIR_IF_NEEDED=[ -d $$1 ] || mkdir -p $$1
16 INCDIRS= -I${TOP_SRCDIR}/config -I${DESTDIR}include ${XINCLS}
17 CFLAGS = ${OPTMZ} ${INCDIRS} ${XCFLAGS}
19 OBJS=buffer.o dir.o salvage.o
20 include ../config/Makefile.version
22 system noversion: install
28 libdir.a: ${OBJS} AFS_component_version_number.o
30 ar rv libdir.a $(OBJS) AFS_component_version_number.o
34 ${INSTALL} dir.h ${KERNELDIR}afs
35 ${INSTALL} dir.c ${KERNELDIR}afs/afs_dir.c
38 set ${UKERNELDIR}afs; $(MKDIR_IF_NEEDED)
39 ${INSTALL} dir.h ${UKERNELDIR}afs
40 ${INSTALL} dir.c ${UKERNELDIR}afs/afs_dir.c
42 install: all kinstall ukinstall
43 ${INSTALL} libdir.a ${DESTDIR}lib/afs
44 ${INSTALL} dir.h ${DESTDIR}include/afs
53 salvage.o: salvage.c dir.h
56 # ${INSTALL} -m 644 dir.vdoc ${DESTDIR}doc/vdoc
59 rm -f *.o *.a core AFS_component_version_number.c