a465faa132689fb62ed709c7d0b5414853850731
[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 srcdir=@srcdir@
9 include @TOP_OBJDIR@/src/config/Makefile.config
10
11 all: depinstall
12
13 depinstall: ${TOP_INCDIR}/afs/afs.h ${TOP_INCDIR}/afs/osi_inode.h ${TOP_INCDIR}/afs/afs_stats.h \
14         ${TOP_INCDIR}/afs/exporter.h ${TOP_INCDIR}/afs/nfsclient.h afszcm.cat AFS_component_version_number.c
15         case ${SYS_NAME} in \
16                 pmax_ul43 | pmax_ul43a) \
17                         ${INSTALL} longc_procs.h ${TOP_INCDIR}/afs ;; \
18         esac
19
20 afs_trace.h afs_trace.msf: afs_trace.et
21         ${COMPILE_ET} -v 2 -p ${srcdir} afs_trace.et
22
23 afszcm.cat: afs_trace.msf
24         -$(RM) -f afszcm.cat
25         case ${SYS_NAME} in \
26                 sgi_* ) \
27                         gencat -m afszcm.cat afs_trace.msf ;; \
28                 sun*_4* ) \
29                         /usr/etc/gencat afszcm.cat afs_trace.msf ;; \
30                 *_linux* ) \
31                         gencat --new afszcm.cat afs_trace.msf ;; \
32                 ppc_darwin* | i386_fbsd*) \
33                         echo No gencat for ${SYS_NAME} ;; \
34                 * ) \
35                         gencat afszcm.cat afs_trace.msf ;; \
36         esac
37
38 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
39         case ${SYS_NAME} in \
40                 pmax_ul43 | pmax_ul43a) \
41                         ${INSTALL} longc_procs.h ${DESTDIR}${includedir}/afs ;; \
42         esac
43         case ${SYS_NAME} in \
44                 *linux* ) \
45                         ${INSTALL} ${MKAFS_OSTYPE}/osi_vfs.h ${DESTDIR}${includedir}/afs || true ;;\
46                 * ) \
47                         echo No vfs headers to install for ${SYS_NAME};; \
48         esac
49
50 clean:
51         -$(RM) -f *.o core AFS_component_version_number.c afs_trace.h afs_trace.msf afszcm.cat
52
53 include ../config/Makefile.version
54 ${DEST}/include/afs/afs.h: afs.h
55         ${INSTALL} $? $@
56
57 ${DESTDIR}${includedir}/afs/afs.h: afs.h
58         ${INSTALL} $? $@
59
60
61 ${TOP_INCDIR}/afs/afs.h: afs.h
62         ${INSTALL} $? $@
63
64
65 ${DEST}/include/afs/osi_inode.h: ${MKAFS_OSTYPE}/osi_inode.h
66         ${INSTALL} $? $@
67
68 ${DESTDIR}${includedir}/afs/osi_inode.h: ${MKAFS_OSTYPE}/osi_inode.h
69         ${INSTALL} $? $@
70
71 ${TOP_INCDIR}/afs/osi_inode.h: ${MKAFS_OSTYPE}/osi_inode.h
72         ${INSTALL} $? $@
73
74
75 ${DEST}/include/afs/afs_stats.h: afs_stats.h
76         ${INSTALL} $? $@
77
78 ${DESTDIR}${includedir}/afs/afs_stats.h: afs_stats.h
79         ${INSTALL} $? $@
80
81
82 ${TOP_INCDIR}/afs/afs_stats.h: afs_stats.h
83         ${INSTALL} $? $@
84
85
86 ${DEST}/include/afs/exporter.h: exporter.h
87         ${INSTALL} $? $@
88
89 ${DESTDIR}${includedir}/afs/exporter.h: exporter.h
90         ${INSTALL} $? $@
91
92
93 ${TOP_INCDIR}/afs/exporter.h: exporter.h
94         ${INSTALL} $? $@
95
96
97 ${DEST}/include/afs/nfsclient.h: nfsclient.h
98         ${INSTALL} $? $@
99
100 ${DESTDIR}${includedir}/afs/nfsclient.h: nfsclient.h
101         ${INSTALL} $? $@
102
103
104 ${TOP_INCDIR}/afs/nfsclient.h: nfsclient.h
105         ${INSTALL} $? $@
106
107
108 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
109         case ${SYS_NAME} in \
110                 pmax_ul43 | pmax_ul43a) \
111                         ${INSTALL} longc_procs.h ${DEST}/include/afs ;; \
112         esac
113         case ${SYS_NAME} in \
114                 next_mach30 | vax_ul43 | ppc_darwin* | i386_fbsd* ) \
115                         echo skipping afszcm.cat install for ${SYS_NAME} ;; \
116                 * ) \
117                         ${INSTALL} afszcm.cat ${DEST}/root.client/usr/vice/etc/C ;; \
118         esac
119         case ${SYS_NAME} in \
120                 *linux* ) \
121                         ${INSTALL} ${MKAFS_OSTYPE}/osi_vfs.h ${DEST}/include/afs || true;;\
122                 * ) \
123                         echo No vfs headers to install for ${SYS_NAME};; \
124         esac
125