DEVEL15-linux-warning-reduction-20090318
[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_* ) \
39                         gencat -new afszcm.cat afs_trace.msf ;; \
40                 i386_fbsd*) \
41                         echo No gencat for ${SYS_NAME} ;; \
42                 * ) \
43                         gencat afszcm.cat afs_trace.msf ;; \
44         esac
45
46 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
47         case ${SYS_NAME} in \
48                 pmax_ul43 | pmax_ul43a) \
49                         ${INSTALL} longc_procs.h ${DESTDIR}${includedir}/afs ;; \
50         esac
51         case ${SYS_NAME} in \
52                 *linux* ) \
53                         ${INSTALL} ${MKAFS_OSTYPE}/osi_vfs.h ${DESTDIR}${includedir}/afs || true ;;\
54                 * ) \
55                         echo No vfs headers to install for ${SYS_NAME};; \
56         esac
57
58 clean:
59         -$(RM) -f *.o core AFS_component_version_number.c afs_trace.h afs_trace.msf afszcm.cat
60         -$(RM) -f unified_afs.c unified_afs.h
61 include ../config/Makefile.version
62 ${DEST}/include/afs/afs.h: afs.h
63         ${INSTALL} $? $@
64
65 ${DESTDIR}${includedir}/afs/afs.h: afs.h
66         ${INSTALL} $? $@
67
68 ${TOP_INCDIR}/afs/afs.h: afs.h
69         ${INSTALL} $? $@
70
71
72 ${DEST}/include/afs/unified_afs.h: unified_afs.h
73         ${INSTALL} $? $@
74
75 ${DESTDIR}${includedir}/afs/unified_afs.h: unified_afs.h
76         ${INSTALL} $? $@
77
78 ${TOP_INCDIR}/afs/unified_afs.h: unified_afs.h
79         ${INSTALL} $? $@
80
81
82 ${DEST}/include/afs/osi_inode.h: ${MKAFS_OSTYPE}/osi_inode.h
83         ${INSTALL} $? $@
84
85 ${DESTDIR}${includedir}/afs/osi_inode.h: ${MKAFS_OSTYPE}/osi_inode.h
86         ${INSTALL} $? $@
87
88 ${TOP_INCDIR}/afs/osi_inode.h: ${MKAFS_OSTYPE}/osi_inode.h
89         ${INSTALL} $? $@
90
91
92 ${DEST}/include/afs/afs_stats.h: afs_stats.h
93         ${INSTALL} $? $@
94
95 ${DESTDIR}${includedir}/afs/afs_stats.h: afs_stats.h
96         ${INSTALL} $? $@
97
98 ${TOP_INCDIR}/afs/afs_stats.h: afs_stats.h
99         ${INSTALL} $? $@
100
101
102 ${DEST}/include/afs/sysctl.h: sysctl.h
103         ${INSTALL} $? $@
104
105 ${DESTDIR}${includedir}/afs/sysctl.h: sysctl.h
106         ${INSTALL} $? $@
107
108 ${TOP_INCDIR}/afs/sysctl.h: sysctl.h
109         ${INSTALL} $? $@
110
111
112 ${DEST}/include/afs/exporter.h: exporter.h
113         ${INSTALL} $? $@
114
115 ${DESTDIR}${includedir}/afs/exporter.h: exporter.h
116         ${INSTALL} $? $@
117
118
119 ${TOP_INCDIR}/afs/exporter.h: exporter.h
120         ${INSTALL} $? $@
121
122
123 ${DEST}/include/afs/nfsclient.h: nfsclient.h
124         ${INSTALL} $? $@
125
126 ${DESTDIR}${includedir}/afs/nfsclient.h: nfsclient.h
127         ${INSTALL} $? $@
128
129
130 ${TOP_INCDIR}/afs/nfsclient.h: nfsclient.h
131         ${INSTALL} $? $@
132
133
134 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
135         case ${SYS_NAME} in \
136                 pmax_ul43 | pmax_ul43a) \
137                         ${INSTALL} longc_procs.h ${DEST}/include/afs ;; \
138         esac
139         case ${SYS_NAME} in \
140                 i386_fbsd* ) \
141                         echo skipping afszcm.cat install for ${SYS_NAME} ;; \
142                 * ) \
143                         ${INSTALL} afszcm.cat ${DEST}/root.client/usr/vice/etc/C ;; \
144         esac
145         case ${SYS_NAME} in \
146                 *linux* ) \
147                         ${INSTALL} ${MKAFS_OSTYPE}/osi_vfs.h ${DEST}/include/afs || true;;\
148                 * ) \
149                         echo No vfs headers to install for ${SYS_NAME};; \
150         esac
151