irix cachemgr inode abstraction correction
[openafs.git] / src / config / 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 INSTALL = @INSTALL@
11 INSTALL_DATA = @INSTALL_DATA@
12 INSTALL_PROGRAM = @INSTALL_PROGRAM@
13 INSTALL_SCRIPT = @INSTALL_SCRIPT@
14
15 CFLAGS=${DBG} ${OPTMZ} -I${TOP_INCDIR} ${XCFLAGS} ${ARCHFLAGS}
16
17 INST=$(RM) -f $@; $(CP) $? $@
18
19 all: config mkvers \
20         ${TOP_INCDIR}/afs/param.h \
21         ${TOP_INCDIR}/afs/stds.h \
22         ${TOP_INCDIR}/afs/afs_sysnames.h \
23         ${TOP_INCDIR}/afs/afs_args.h \
24         ${TOP_INCDIR}/afs/icl.h \
25         ${TOP_INCDIR}/afs/venus.h \
26         ${TOP_INCDIR}/afs/vioc.h \
27         ${TOP_INCDIR}/afs/debug.h
28
29 Makefile.version: Makefile.version-CML Makefile.version-NOCML
30         $(RM) -f Makefile.version
31         if      [ -r @TOP_SRCDIR@/CML/state ] ; \
32         then    $(CP) Makefile.version-CML Makefile.version ; \
33         else    $(CP) Makefile.version-NOCML Makefile.version ; \
34         fi
35
36 #
37 # AFS component version string file generation targets
38 #
39 AFS_component_version_number.c: Makefile.version
40         $(MAKE) -f Makefile.version AFS_component_version_number.c
41
42 #
43 # App build/install targets
44 #
45 config: config.o mc.o
46         $(CC) $(CFLAGS) -o config config.o mc.o
47
48 mkvers: ${srcdir}/mkvers.c
49         $(CC) $(CFLAGS) -o mkvers ${srcdir}/mkvers.c
50
51 mc.o: ${srcdir}/mc.c
52         $(CC) $(CFLAGS) -I. -c ${srcdir}/mc.c
53
54 config.o: ${srcdir}/config.c AFS_component_version_number.c
55         $(CC) $(CFLAGS) -I. -c ${srcdir}/config.c
56
57 #
58 # Include installation targets
59 #
60
61 # XXX inlined INST
62 ${DEST}/include/afs/param.h ${DESTDIR}${includedir}/afs/param.h ${TOP_INCDIR}/afs/param.h: ${srcdir}/param.${SYS_NAME}.h ${AFS_PARAM_COMMON}
63         if [ "X${AFS_PARAM_COMMON}" != "X" ] ; then \
64                 cat ${srcdir}/${AFS_PARAM_COMMON} ${srcdir}/param.${SYS_NAME}.h > param.h.new ; \
65                 $(RM) -f $@; \
66                  $(CP) param.h.new $@ ; \
67         else \
68                 $(RM) -f $@; $(CP) ${srcdir}/param.${SYS_NAME}.h $@ ; \
69         fi
70
71 ${DEST}/include/afs/afs_sysnames.h ${DESTDIR}${includedir}/afs/afs_sysnames.h ${TOP_INCDIR}/afs/afs_sysnames.h: ${srcdir}/afs_sysnames.h
72         $(INST)
73
74 ${DEST}/include/afs/stds.h ${DESTDIR}${includedir}/afs/stds.h ${TOP_INCDIR}/afs/stds.h: ${srcdir}/stds.h
75         $(INST)
76
77 ${DEST}/include/afs/icl.h ${DESTDIR}${includedir}/afs/icl.h ${TOP_INCDIR}/afs/icl.h: ${srcdir}/icl.h 
78         $(INST)
79
80 ${DEST}/include/afs/afs_args.h ${DESTDIR}${includedir}/afs/afs_args.h ${TOP_INCDIR}/afs/afs_args.h: ${srcdir}/afs_args.h 
81         $(INST)
82
83 ${DEST}/include/afs/venus.h ${DESTDIR}${includedir}/afs/venus.h ${TOP_INCDIR}/afs/venus.h: ${srcdir}/venus.h 
84         $(INST)
85
86 ${DEST}/include/afs/vioc.h ${DESTDIR}${includedir}/afs/vioc.h ${TOP_INCDIR}/afs/vioc.h: ${srcdir}/vioc.h 
87         $(INST)
88
89 ${DEST}/include/afs/debug.h ${DESTDIR}${includedir}/afs/debug.h ${TOP_INCDIR}/afs/debug.h: ${srcdir}/debug.h 
90         $(INST)
91
92 # these are needed to compile the kernel.  Config is necessary to
93 # convert the MakefileProto in libafs and the kernel links provide the
94 # kernel include environment.  param.h is, well, param.h.  The afs_sysnames.h
95 # file is needed by param.h to create unique identifiers for each SYS_TYPE.
96
97 install: ${DESTDIR}${includedir}/afs/param.h \
98         ${DESTDIR}${includedir}/afs/stds.h \
99         ${DESTDIR}${includedir}/afs/afs_sysnames.h \
100         ${DESTDIR}${includedir}/afs/afs_args.h \
101         ${DESTDIR}${includedir}/afs/icl.h \
102         ${DESTDIR}${includedir}/afs/venus.h \
103         ${DESTDIR}${includedir}/afs/vioc.h \
104         ${DESTDIR}${includedir}/afs/debug.h
105
106 clean:
107         $(RM) -f *.o config mkvers core xprt AFS_component_version_number.c param.h.new Makefile.version.in
108
109 dest: ${DEST}/include/afs/param.h \
110         ${DEST}/include/afs/stds.h \
111         ${DEST}/include/afs/afs_sysnames.h \
112         ${DEST}/include/afs/afs_args.h \
113         ${DEST}/include/afs/icl.h \
114         ${DEST}/include/afs/venus.h \
115         ${DEST}/include/afs/vioc.h \
116         ${DEST}/include/afs/debug.h
117