Merge 1.8.0~pre4 packaging into master
[pkg-k5-afs_openafs.git] / src / afs / Makefile.in
blobdc1920853ffc0709254d6fa4e1fecd40102abcf2
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
8 # Portions Copyright (c) 2003 Apple Computer, Inc.
10 srcdir=@srcdir@
11 include @TOP_OBJDIR@/src/config/Makefile.config
12 include @TOP_OBJDIR@/src/config/Makefile.lwp
15 all: depinstall
17 generated: afs_trace.h afs_trace.msf unified_afs.c unified_afs.h
19 afs_trace.h: afs_trace.et
20 ${COMPILE_ET_H} -v 2 -p ${srcdir} afs_trace
22 afs_trace.msf: afs_trace.et
23 ${COMPILE_ET_C} -v 2 -p ${srcdir} afs_trace
25 unified_afs.h: unified_afs.et unified_afs.p.h
26 ${COMPILE_ET_H} -p ${srcdir} unified_afs -h unified_afs
28 unified_afs.c: unified_afs.et
29 ${COMPILE_ET_C} -p ${srcdir} unified_afs
31 afszcm.cat: afs_trace.msf
32 -$(RM) -f afszcm.cat
33 case ${SYS_NAME} in \
34 sgi_* ) \
35 ${GENCAT} -m 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 * ) \
41 ${GENCAT} afszcm.cat afs_trace.msf ;; \
42 esac
44 depinstall: afszcm.cat AFS_component_version_number.c \
45 ${TOP_INCDIR}/afs/afs_consts.h \
46 ${TOP_INCDIR}/afs/afs.h \
47 ${TOP_INCDIR}/afs/osi_inode.h \
48 ${TOP_INCDIR}/afs/afs_stats.h \
49 ${TOP_INCDIR}/afs/exporter.h \
50 ${TOP_INCDIR}/afs/nfsclient.h \
51 ${TOP_INCDIR}/afs/unified_afs.h \
52 ${TOP_INCDIR}/afs/sysctl.h \
53 ${TOP_INCDIR}/afs/afs_trace.h
55 ${TOP_INCDIR}/afs/afs_consts.h: afs_consts.h
56 ${INSTALL_DATA} $? $@
58 ${TOP_INCDIR}/afs/afs.h: afs.h
59 ${INSTALL_DATA} $? $@
61 ${TOP_INCDIR}/afs/afs_stats.h: afs_stats.h
62 ${INSTALL_DATA} $? $@
64 ${TOP_INCDIR}/afs/exporter.h: exporter.h
65 ${INSTALL_DATA} $? $@
67 ${TOP_INCDIR}/afs/nfsclient.h: nfsclient.h
68 ${INSTALL_DATA} $? $@
70 ${TOP_INCDIR}/afs/osi_inode.h: ${MKAFS_OSTYPE}/osi_inode.h
71 ${INSTALL_DATA} $? $@
73 ${TOP_INCDIR}/afs/sysctl.h: sysctl.h
74 ${INSTALL_DATA} $? $@
76 ${TOP_INCDIR}/afs/unified_afs.h: unified_afs.h
77 ${INSTALL_DATA} $? $@
79 ${TOP_INCDIR}/afs/afs_trace.h: afs_trace.h
80 ${INSTALL_DATA} $? $@
82 install: unified_afs.h afs_trace.h
83 ${INSTALL} -d ${DESTDIR}${includedir}/afs
84 ${INSTALL_DATA} ${srcdir}/afs.h ${DESTDIR}${includedir}/afs/afs.h
85 ${INSTALL_DATA} ${srcdir}/afs_consts.h ${DESTDIR}${includedir}/afs/afs_consts.h
86 ${INSTALL_DATA} ${srcdir}/afs_stats.h ${DESTDIR}${includedir}/afs/afs_stats.h
87 ${INSTALL_DATA} ${srcdir}/exporter.h ${DESTDIR}${includedir}/afs/exporter.h
88 ${INSTALL_DATA} ${srcdir}/nfsclient.h ${DESTDIR}${includedir}/afs/nfsclient.h
89 ${INSTALL_DATA} ${srcdir}/${MKAFS_OSTYPE}/osi_inode.h \
90 ${DESTDIR}${includedir}/afs/osi_inode.h
91 ${INSTALL_DATA} ${srcdir}/sysctl.h ${DESTDIR}${includedir}/afs/sysctl.h
92 ${INSTALL_DATA} unified_afs.h ${DESTDIR}${includedir}/afs/unified_afs.h
93 ${INSTALL_DATA} afs_trace.h ${DESTDIR}${includedir}/afs/afs_trace.h
94 ${INSTALL_DATA} afszcm.cat ${DESTDIR}${afsdatadir}/C/afszcm.cat
95 case ${SYS_NAME} in \
96 *linux*) \
97 ${INSTALL_DATA} ${srcdir}/${MKAFS_OSTYPE}/osi_vfs.h \
98 ${DESTDIR}${includedir}/afs/osi_vfs.h || true ;;\
99 *) \
100 echo No vfs headers to install for ${SYS_NAME};; \
101 esac
103 dest: unified_afs.h afs_trace.h
104 ${INSTALL} -d ${DEST}/include/afs
105 ${INSTALL_DATA} ${srcdir}/afs.h ${DEST}/include/afs/afs.h
106 ${INSTALL_DATA} ${srcdir}/afs_consts.h ${DEST}/include/afs/afs_consts.h
107 ${INSTALL_DATA} ${srcdir}/afs_stats.h ${DEST}/include/afs/afs_stats.h
108 ${INSTALL_DATA} ${srcdir}/exporter.h ${DEST}/include/afs/exporter.h
109 ${INSTALL_DATA} ${srcdir}/nfsclient.h ${DEST}/include/afs/nfsclient.h
110 ${INSTALL_DATA} ${srcdir}/${MKAFS_OSTYPE}/osi_inode.h ${DEST}/include/afs/osi_inode.h
111 ${INSTALL_DATA} ${srcdir}/sysctl.h ${DEST}/include/afs/sysctl.h
112 ${INSTALL_DATA} unified_afs.h ${DEST}/include/afs/unified_afs.h
113 ${INSTALL_DATA} afs_trace.h ${DEST}/include/afs/afs_trace.h
114 ${INSTALL_DATA} afszcm.cat ${DEST}/root.client/usr/vice/etc/C/afszcm.cat
115 case ${SYS_NAME} in \
116 *linux*) \
117 ${INSTALL_DATA} ${srcdir}/${MKAFS_OSTYPE}/osi_vfs.h \
118 ${DEST}/include/afs/osi_vfs.h || true ;;\
119 *) \
120 echo No vfs headers to install for ${SYS_NAME};; \
121 esac
123 clean:
124 -$(RM) -f *.o core AFS_component_version_number.c afs_trace.h afs_trace.msf afszcm.cat
125 -$(RM) -f unified_afs.c unified_afs.h
127 include ../config/Makefile.version