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@
14 KERNELDIR = ../libafs/
15 UKERNELDIR = ../libuafs/
17 MKDIR_IF_NEEDED=[ -d $$1 ] || mkdir -p $$1
20 include ../config/Makefile.${SYS_NAME}
21 include ../config/Makefile.version
25 # NOTE: linux case uses --new as well to work around bug in some versions of
27 kinstall: AFS_component_version_number.c
28 set ${KERNELDIR}afs; $(MKDIR_IF_NEEDED)
29 -chmod 666 ${KERNELDIR}afs/*
30 ${DESTDIR}bin/compile_et -v 2 afs_trace.et
31 ${INSTALL} *.[csh] ${KERNELDIR}afs
32 ${INSTALL} VNOPS/*.[csh] ${KERNELDIR}afs
33 ${INSTALL} ${AFS_OSTYPE}/*.[csh] ${KERNELDIR}afs
34 set ${DESTDIR}root.client/usr/vice/etc/C; $(MKDIR_IF_NEEDED)
38 gencat -m afszcm.cat afs_trace.msf ;; \
40 gencat --new afszcm.cat afs_trace.msf ;; \
41 ppc_darwin* | i386_fbsd*) \
42 echo No gencat for ${SYS_NAME} ;; \
44 gencat afszcm.cat afs_trace.msf ;; \
49 ukinstall webinstall: AFS_component_version_number.c
50 set ${UKERNELDIR}afs; $(MKDIR_IF_NEEDED)
51 -chmod 666 ${UKERNELDIR}afs/*
52 ${DESTDIR}bin/compile_et -v 2 afs_trace.et
53 ${INSTALL} *.[csh] ${UKERNELDIR}afs
54 ${INSTALL} VNOPS/*.[csh] ${UKERNELDIR}afs
55 ${INSTALL} UKERNEL/*.[csh] ${UKERNELDIR}afs
57 noversion: install.noversion
58 install install.noversion: kinstall ukinstall
59 ${INSTALL} afs.h ${DESTDIR}include/afs
60 ${INSTALL} ${AFS_OSTYPE}/osi_inode.h ${DESTDIR}include/afs
61 ${INSTALL} afs_stats.h exporter.h nfsclient.h ${DESTDIR}include/afs
63 pmax_ul43 | pmax_ul43a) \
64 ${INSTALL} longc_procs.h ${DESTDIR}include/afs ;; \
67 next_mach30 | vax_ul43 | ppc_darwin* | i386_fbsd* ) \
68 echo skipping afszcm.cat install for ${SYS_NAME} ;; \
70 ${INSTALL} afszcm.cat ${DESTDIR}root.client/usr/vice/etc/C ;; \
74 ${INSTALL} ${AFS_OSTYPE}/osi_vfs.h ${DESTDIR}include/afs ;;\
76 echo No vfs headers to install for ${SYS_NAME};; \
80 rm -f *.o core AFS_component_version_number.c afs_trace.h afs_trace.msf afszcm.cat