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