1 # Copyright 2000, International Business Machines Corporation and others.
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
10 TOP_SRCDIR=@TOP_SRCDIR@
11 SYS_NAME=@AFS_SYSNAME@
17 include Makefile.${SYS_NAME}
19 CFLAGS=-g -I${DESTDIR}/include ${XCFLAGS}
21 INST=$(RM) -f $@; $(CP) $? $@
25 Makefile.version: Makefile.version-CML Makefile.version-NOCML
26 $(RM) -f Makefile.version
27 if [ -r SRC/../CML/state ] ; \
28 then $(CP) Makefile.version-CML Makefile.version ; \
29 else $(CP) Makefile.version-NOCML Makefile.version ; \
33 # AFS component version string file generation targets
35 AFS_component_version_number.c: Makefile.version
36 $(MAKE) -f Makefile.version AFS_component_version_number.c
38 ${KERNELDIR}/afs/AFS_component_version_number.c: AFS_component_version_number.c
41 ${UKERNELDIR}/afs/AFS_component_version_number.c: AFS_component_version_number.c
45 # App build/install targets
48 $(CC) $(CFLAGS) -o config config.o mc.o
51 $(CC) $(CFLAGS) -o mkvers mkvers.c
54 config.o: config.c AFS_component_version_number.c
59 ${DESTDIR}/bin/mkvers: mkvers
63 # Include installation targets
65 KDIRS = ${KERNELDIR}/afs \
73 UKDIRS = ${UKERNELDIR}/afs \
75 ${UKERNELDIR}/afsint \
81 HDIRS = ${DESTDIR}/include/afs
86 ${KERNELDIR}/afs/param.h ${DESTDIR}/include/afs/param.h: param.${SYS_NAME}.h
89 ${UKERNELDIR}/afs/afs_sysnames.h ${KERNELDIR}/afs/afs_sysnames.h ${DESTDIR}/include/afs/afs_sysnames.h: afs_sysnames.h
92 ${UKERNELDIR}/afs/stds.h ${KERNELDIR}/afs/stds.h ${DESTDIR}/include/afs/stds.h: stds.h
95 ${UKERNELDIR}/config/Makefile.${SYS_NAME} ${KERNELDIR}/config/Makefile.${SYS_NAME}: Makefile.${SYS_NAME}
98 ${UKERNELDIR}/afs/icl.h ${KERNELDIR}/afs/icl.h ${DESTDIR}/include/afs/icl.h: icl.h
101 ${UKERNELDIR}/afs/afs_args.h ${KERNELDIR}/afs/afs_args.h ${DESTDIR}/include/afs/afs_args.h: afs_args.h
104 ${UKERNELDIR}/afs/venus.h ${DESTDIR}/include/afs/venus.h: venus.h
107 ${DESTDIR}/include/afs/debug.h: debug.h
110 ${UKERNELDIR}/afs/param.h: param.${SYS_NAME}_usr.h
113 # these are needed to compile the kernel. Config is necessary to
114 # convert the MakefileProto in libafs and the kernel links provide the
115 # kernel include environment. param.h is, well, param.h. The afs_sysnames.h
116 # file is needed by param.h to create unique identifiers for each SYS_TYPE.
120 $(DESTDIR)/bin/mkvers \
127 ${DESTDIR}/include/afs/param.h \
128 ${DESTDIR}/include/afs/stds.h \
129 ${DESTDIR}/include/afs/afs_sysnames.h \
130 ${DESTDIR}/include/afs/afs_args.h \
131 ${DESTDIR}/include/afs/icl.h \
132 ${DESTDIR}/include/afs/venus.h \
133 ${DESTDIR}/include/afs/debug.h
137 ${KERNELDIR}/afs/param.h \
138 ${KERNELDIR}/afs/stds.h \
139 ${KERNELDIR}/afs/afs_sysnames.h \
140 ${KERNELDIR}/config/Makefile.${SYS_NAME} \
141 ${KERNELDIR}/afs/afs_args.h \
142 ${KERNELDIR}/afs/icl.h \
143 ${KERNELDIR}/afs/AFS_component_version_number.c
147 ${UKERNELDIR}/afs/param.h \
148 ${UKERNELDIR}/afs/stds.h \
149 ${UKERNELDIR}/afs/afs_sysnames.h \
150 ${UKERNELDIR}/config/Makefile.${SYS_NAME} \
151 ${UKERNELDIR}/afs/afs_args.h \
152 ${UKERNELDIR}/afs/icl.h \
153 ${UKERNELDIR}/afs/venus.h \
154 ${UKERNELDIR}/afs/AFS_component_version_number.c
157 $(RM) -f *.o config core xprt AFS_component_version_number.c