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
9 TOP_INCDIR=@TOP_INCDIR@
10 TOP_LIBDIR=@TOP_LIBDIR@
11 TOP_OBJDIR=@TOP_OBJDIR@
15 exec_prefix=@exec_prefix@
18 libexecdir=@libexecdir@
20 includedir=@includedir@
22 afssrvbindir=@afssrvbindir@
23 afssrvsbindir=@afssrvsbindir@
24 afssrvlibexecdir=@afssrvlibexecdir@
25 COMPILE_ET=${TOP_OBJDIR}/src/comerr/compile_et
26 RXGEN=${TOP_OBJDIR}/src/rxgen/rxgen
27 TOP_SRCDIR=@TOP_SRCDIR@
28 SYS_NAME=@AFS_SYSNAME@
32 UKERNELDIR = ../libuafs
34 include ../config/Makefile.${SYS_NAME}
36 all: kinstall ukinstall ${TOP_INCDIR}/afs/afs.h ${TOP_INCDIR}/afs/osi_inode.h ${TOP_INCDIR}/afs/afs_stats.h ${TOP_INCDIR}/afs/exporter.h ${TOP_INCDIR}/afs/nfsclient.h
38 pmax_ul43 | pmax_ul43a) \
39 ${INSTALL} longc_procs.h ${TOP_INCDIR}/afs ;; \
42 # NOTE: linux case uses --new as well to work around bug in some versions of
44 kinstall: ${KERNELDIR}/afs AFS_component_version_number.c afszcm.cat
45 -chmod 666 ${KERNELDIR}/afs/*
46 ${INSTALL} ${srcdir}/*.[csh] *.[csh] ${KERNELDIR}/afs
47 ${INSTALL} ${srcdir}/VNOPS/*.[csh] ${KERNELDIR}/afs
48 ${INSTALL} ${srcdir}/${AFS_OSTYPE}/*.[csh] ${AFS_OSTYPE}/*.[csh] ${KERNELDIR}/afs
50 afs_trace.h afs_trace.msf:
51 ${COMPILE_ET} -v 2 -p ${srcdir} afs_trace.et
53 afszcm.cat: afs_trace.msf
57 gencat -m afszcm.cat afs_trace.msf ;; \
59 gencat --new afszcm.cat afs_trace.msf ;; \
60 ppc_darwin* | i386_fbsd*) \
61 echo No gencat for ${SYS_NAME} ;; \
63 gencat afszcm.cat afs_trace.msf ;; \
69 ukinstall: ${UKERNELDIR}/afs afs_trace.msf AFS_component_version_number.c
70 -chmod 666 ${UKERNELDIR}/afs/*
71 ${INSTALL} ${srcdir}/*.[csh] *.[csh] ${UKERNELDIR}/afs
72 ${INSTALL} ${srcdir}/VNOPS/*.[csh] ${UKERNELDIR}/afs
73 ${INSTALL} ${srcdir}/UKERNEL/*.[csh] ${UKERNELDIR}/afs
78 install: ${DESTDIR}${includedir}/afs/afs.h ${DESTDIR}${includedir}/afs/osi_inode.h ${DESTDIR}${includedir}/afs/afs_stats.h ${DESTDIR}${includedir}/afs/exporter.h ${DESTDIR}${includedir}/afs/nfsclient.h
80 pmax_ul43 | pmax_ul43a) \
81 ${INSTALL} longc_procs.h ${DESTDIR}${includedir}/afs ;; \
85 ${INSTALL} ${AFS_OSTYPE}/osi_vfs.h ${DESTDIR}${includedir}/afs ;;\
87 echo No vfs headers to install for ${SYS_NAME};; \
91 -$(RM) -f *.o core AFS_component_version_number.c afs_trace.h afs_trace.msf afszcm.cat
93 include ../config/Makefile.version
94 ${DEST}/include/afs/afs.h: afs.h
97 ${DESTDIR}${includedir}/afs/afs.h: afs.h
101 ${TOP_INCDIR}/afs/afs.h: afs.h
105 ${DEST}/include/afs/osi_inode.h: ${AFS_OSTYPE}/osi_inode.h
108 ${DESTDIR}${includedir}/afs/osi_inode.h: ${AFS_OSTYPE}/osi_inode.h
111 ${TOP_INCDIR}/afs/osi_inode.h: ${AFS_OSTYPE}/osi_inode.h
115 ${DEST}/include/afs/afs_stats.h: afs_stats.h
118 ${DESTDIR}${includedir}/afs/afs_stats.h: afs_stats.h
122 ${TOP_INCDIR}/afs/afs_stats.h: afs_stats.h
126 ${DEST}/include/afs/exporter.h: exporter.h
129 ${DESTDIR}${includedir}/afs/exporter.h: exporter.h
133 ${TOP_INCDIR}/afs/exporter.h: exporter.h
137 ${DEST}/include/afs/nfsclient.h: nfsclient.h
140 ${DESTDIR}${includedir}/afs/nfsclient.h: nfsclient.h
144 ${TOP_INCDIR}/afs/nfsclient.h: nfsclient.h
148 dest: ${DEST}/include/afs/afs.h ${DEST}/include/afs/osi_inode.h ${DEST}/include/afs/afs_stats.h ${DEST}/include/afs/exporter.h ${DEST}/include/afs/nfsclient.h
149 case ${SYS_NAME} in \
150 pmax_ul43 | pmax_ul43a) \
151 ${INSTALL} longc_procs.h ${DEST}/include/afs ;; \
153 case ${SYS_NAME} in \
154 next_mach30 | vax_ul43 | ppc_darwin* | i386_fbsd* ) \
155 echo skipping afszcm.cat install for ${SYS_NAME} ;; \
157 ${INSTALL} afszcm.cat ${DEST}/root.client/usr/vice/etc/C ;; \
159 case ${SYS_NAME} in \
161 ${INSTALL} ${AFS_OSTYPE}/osi_vfs.h ${DEST}/include/afs ;;\
163 echo No vfs headers to install for ${SYS_NAME};; \