linux-dont-require-osi-vfs-to-be-installed-20011017
[openafs.git] / src / afs / Makefile.in
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 DEST=@DEST@
9 TOP_INCDIR=@TOP_INCDIR@
10 TOP_LIBDIR=@TOP_LIBDIR@
11 prefix=@prefix@
12 exec_prefix=@exec_prefix@
13 bindir=@bindir@
14 sbindir=@sbindir@
15 libexecdir=@libexecdir@
16 libdir=@libdir@
17 includedir=@includedir@
18 mandir=@mandir@
19 afssrvbindir=@afssrvbindir@
20 afssrvsbindir=@afssrvsbindir@
21 afssrvlibexecdir=@afssrvlibexecdir@
22 COMPILE_ET=${TOP_SRCDIR}/comerr/compile_et
23 RXGEN=${TOP_SRCDIR}/rxgen/rxgen
24 TOP_SRCDIR=@TOP_SRCDIR@
25 SYS_NAME=@AFS_SYSNAME@
26
27 SHELL=/bin/sh
28 KERNELDIR = ../libafs/
29 UKERNELDIR = ../libuafs/
30
31 include ../config/Makefile.${SYS_NAME}
32
33 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
34         case ${SYS_NAME} in \
35                 pmax_ul43 | pmax_ul43a) \
36                         ${INSTALL} longc_procs.h ${TOP_INCDIR}/afs ;; \
37         esac
38
39 # NOTE: linux case uses --new as well to work around bug in some versions of
40 # gencat.
41 kinstall: ${KERNELDIR}/afs AFS_component_version_number.c
42         -chmod 666 ${KERNELDIR}afs/*
43         ${COMPILE_ET} -v 2 afs_trace.et
44         ${INSTALL} *.[csh] ${KERNELDIR}afs
45         ${INSTALL} VNOPS/*.[csh] ${KERNELDIR}afs
46         ${INSTALL} ${AFS_OSTYPE}/*.[csh] ${KERNELDIR}afs
47         -$(RM) -f afszcm.cat
48         case ${SYS_NAME} in \
49                 sgi_* ) \
50                         gencat -m afszcm.cat afs_trace.msf ;; \
51                 *_linux* ) \
52                         gencat --new afszcm.cat afs_trace.msf ;; \
53                 ppc_darwin* | i386_fbsd*) \
54                         echo No gencat for ${SYS_NAME} ;; \
55                 * ) \
56                         gencat afszcm.cat afs_trace.msf ;; \
57         esac
58
59 ${KERNELDIR}/afs:
60         mkdir -p $@
61
62 ukinstall: ${UKERNELDIR}/afs AFS_component_version_number.c
63         -chmod 666 ${UKERNELDIR}afs/*
64         ${COMPILE_ET} -v 2 afs_trace.et
65         ${INSTALL} *.[csh] ${UKERNELDIR}afs
66         ${INSTALL} VNOPS/*.[csh] ${UKERNELDIR}afs
67         ${INSTALL} UKERNEL/*.[csh] ${UKERNELDIR}afs
68
69 ${UKERNELDIR}/afs:
70         mkdir -p $@
71
72 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
73         case ${SYS_NAME} in \
74                 pmax_ul43 | pmax_ul43a) \
75                         ${INSTALL} longc_procs.h ${DESTDIR}${includedir}/afs ;; \
76         esac
77         case ${SYS_NAME} in \
78                 *linux* ) \
79                         ${INSTALL} ${AFS_OSTYPE}/osi_vfs.h ${DESTDIR}${includedir}/afs ;;\
80                 * ) \
81                         echo No vfs headers to install for ${SYS_NAME};; \
82         esac
83
84 clean:
85         -$(RM) -f *.o core AFS_component_version_number.c afs_trace.h afs_trace.msf afszcm.cat
86
87 include ../config/Makefile.version
88 ${DEST}/include/afs/afs.h: afs.h
89         ${INSTALL} $? $@
90
91 ${DESTDIR}${includedir}/afs/afs.h: afs.h
92         ${INSTALL} $? $@
93
94
95 ${TOP_INCDIR}/afs/afs.h: afs.h
96         ${INSTALL} $? $@
97
98
99 ${DEST}/include/afs/osi_inode.h: ${AFS_OSTYPE}/osi_inode.h
100         ${INSTALL} $? $@
101
102 ${DESTDIR}${includedir}/afs/osi_inode.h: ${AFS_OSTYPE}/osi_inode.h
103         ${INSTALL} $? $@
104
105 ${TOP_INCDIR}/afs/osi_inode.h: ${AFS_OSTYPE}/osi_inode.h
106         ${INSTALL} $? $@
107
108
109 ${DEST}/include/afs/afs_stats.h: afs_stats.h
110         ${INSTALL} $? $@
111
112 ${DESTDIR}${includedir}/afs/afs_stats.h: afs_stats.h
113         ${INSTALL} $? $@
114
115
116 ${TOP_INCDIR}/afs/afs_stats.h: afs_stats.h
117         ${INSTALL} $? $@
118
119
120 ${DEST}/include/afs/exporter.h: exporter.h
121         ${INSTALL} $? $@
122
123 ${DESTDIR}${includedir}/afs/exporter.h: exporter.h
124         ${INSTALL} $? $@
125
126
127 ${TOP_INCDIR}/afs/exporter.h: exporter.h
128         ${INSTALL} $? $@
129
130
131 ${DEST}/include/afs/nfsclient.h: nfsclient.h
132         ${INSTALL} $? $@
133
134 ${DESTDIR}${includedir}/afs/nfsclient.h: nfsclient.h
135         ${INSTALL} $? $@
136
137
138 ${TOP_INCDIR}/afs/nfsclient.h: nfsclient.h
139         ${INSTALL} $? $@
140
141
142 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
143         case ${SYS_NAME} in \
144                 pmax_ul43 | pmax_ul43a) \
145                         ${INSTALL} longc_procs.h ${DEST}/include/afs ;; \
146         esac
147         case ${SYS_NAME} in \
148                 next_mach30 | vax_ul43 | ppc_darwin* | i386_fbsd* ) \
149                         echo skipping afszcm.cat install for ${SYS_NAME} ;; \
150                 * ) \
151                         ${INSTALL} afszcm.cat ${DEST}/root.client/usr/vice/etc/C ;; \
152         esac
153         case ${SYS_NAME} in \
154                 *linux* ) \
155                         ${INSTALL} ${AFS_OSTYPE}/osi_vfs.h ${DEST}/include/afs ;;\
156                 * ) \
157                         echo No vfs headers to install for ${SYS_NAME};; \
158         esac
159