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