1213e4e9b1a25e283376be4ad970dd2f66b83945
[openafs.git] / src / libafs / MakefileProto.LINUX.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
10 include @TOP_OBJDIR@/src/config/Makefile.config
11
12 <linux24 linux_24 linux22 linux_22 linux20 linux_20>
13 # Override for Linux 2.4 and older
14 MKAFS_OSTYPE=LINUX24
15 <all>
16
17 INSTALL = @INSTALL@
18 INSTALL_DATA = @INSTALL_DATA@
19 INSTALL_PROGRAM = @INSTALL_PROGRAM@
20 INSTALL_SCRIPT = @INSTALL_SCRIPT@
21
22 AFS_OS_CLEAN = .makelog
23
24 # OS specific object files:
25 AFS_OS_OBJS = \
26         osi_alloc.o \
27         osi_cred.o \
28         osi_crypto.o \
29         osi_gcpags.o \
30         osi_groups.o \
31         osi_inode.o \
32         osi_file.o \
33         osi_misc.o \
34         osi_module.o \
35         osi_probe.o \
36         osi_sleep.o \
37         osi_syscall.o \
38         osi_sysctl.o \
39         osi_vcache.o \
40         osi_vfsops.o \
41         osi_vm.o \
42 <ppc64_linux26>
43         osi_flush.o \
44 <linux26 linux_26>
45         osi_export.o \
46         osi_nfssrv.o \
47 <linux24 linux_24 linux26 linux_26>
48         osi_ioctl.o \
49         osi_proc.o \
50 <all>
51         osi_vnodeops.o \
52 <linux26 linux_26>
53         osi_pagecopy.o \
54         osi_fetchstore.o
55 <all>
56
57 AFS_OS_PAGOBJS = \
58         osi_alloc.o \
59         osi_cred.o \
60         osi_gcpags.o \
61         osi_groups.o \
62         osi_inode.o \
63         osi_misc.o \
64         osi_probe.o \
65         osi_sleep.o \
66         osi_syscall.o \
67 <ppc64_linux26>
68         osi_flush.o \
69 <linux24 linux_24 linux26 linux_26>
70         osi_ioctl.o \
71 <all>
72         osi_pag_module.o 
73
74 AFS_OS_NFSOBJS =
75
76 AFS_OS_NONFSOBJS =
77
78 COMMON_KERN_CFLAGS=$(KERN_DBG) $(KERN_OPTMZ) @LINUX_GCC_KOPTS@
79
80 COMMON_DEFINES=-D__KERNEL__ -DKERNEL -D_KERNEL -DMODULE ${SMP_DEF}
81
82 LINUX_KERNEL_PATH=@LINUX_KERNEL_PATH@
83 LINUX_KERNEL_BUILD=@LINUX_KERNEL_BUILD@
84
85 CFLAGS_fcrypt.o = -I${TOP_SRCDIR}/rxkad -I$(TOP_OBJDIR)/src/rxkad
86 CFLAGS_crypt_conn.o = -I${TOP_SRCDIR}/rxkad -I$(TOP_OBJDIR)/src/rxkad
87 CFLAGS_rxkad_client.o = -I${TOP_SRCDIR}/rxkad -I$(TOP_OBJDIR)/src/rxkad
88 CFLAGS_rxkad_common.o = -I${TOP_SRCDIR}/rxkad -I$(TOP_OBJDIR)/src/rxkad
89 CFLAGS_opr_rbtree.o = -I${TOP_SRCDIR}/opr
90
91 CFLAGS_evp.o = -I$(TOP_SRCDIR)/external/heimdal/hcrypto \
92                -DHAVE_CONFIG_H
93 CFLAGS_evp-algs.o = -I$(TOP_SRCDIR)/external/heimdal/hcrypto
94 CFLAGS_evp-kernel.o = -I$(TOP_SRCDIR)/external/heimdal/hcrypto
95 CFLAGS_rand-kernel.o = -I$(TOP_SRCDIR)/external/heimdal/hcrypto
96 CFLAGS_aes.o = -I$(TOP_SRCDIR)/external/heimdal/hcrypto
97 CFLAGS_rijndael-alg-fst.o = -I$(TOP_SRCDIR)/external/heimdal/hcrypto \
98                             -DNO_CONFIG_H
99 CFLAGS_sha.o = -I$(TOP_SRCDIR)/external/heimdal/hcrypto
100 CFLAGS_md5.o = -I$(TOP_SRCDIR)/external/heimdal/hcrypto
101 CFLAGS_random.o = -I$(TOP_SRCDIR)/external/heimdal/hcrypto
102
103 RFC3961_INCLUDES = -I$(TOP_SRCDIR)/crypto/rfc3961 \
104                    -I$(TOP_SRCDIR)/external/heimdal/krb5
105
106 CFLAGS_crypto.o = $(RFC3961_INCLUDES)
107 CFLAGS_crypto-aes.o = $(RFC3961_INCLUDES)
108 CFLAGS_crypto-context.o = $(RFC3961_INCLUDES)
109 CFLAGS_crypto-copy.o = $(RFC3961_INCLUDES)
110 CFLAGS_crypto-ct.o = $(RFC3961_INCLUDES)
111 CFLAGS_crypto-evp.o = $(RFC3961_INCLUDES)
112 CFLAGS_crypto-data.o = $(RFC3961_INCLUDES)
113 CFLAGS_crypto-keyblock.o = $(RFC3961_INCLUDES)
114 CFLAGS_crypto-store-int.o = $(RFC3961_INCLUDES)
115 CFLAGS_crypto-random.o = $(RFC3961_INCLUDES)
116 CFLAGS_crypto-algs.o = $(RFC3961_INCLUDES)
117 CFLAGS_n-fold.o = $(RFC3961_INCLUDES)
118
119 # System specific build commands and flags
120 <linux26 linux_26>
121 # All the platform-specific and kernel-related things are provided by
122 # the kernel build system.  So we should _not_ use COMMON_KERN_CFLAGS!
123 CCFLAGS =
124 DEFINES = $(COMMON_DEFINES)
125
126 # CFLAGS_* and AFLAGS_* will be copied into the kbuild makefile
127 CFLAGS_afs_pag_user.o = -DAFS_PAG_MANAGER
128
129 <i386_linux22 i386_linux24>
130 CCFLAGS = $(COMMON_KERN_CFLAGS) @P5PLUS_KOPTS@
131 DEFINES = $(COMMON_DEFINES) -DCPU=586
132
133 <amd64_linux22 amd64_linux24>
134 CCFLAGS = $(COMMON_KERN_CFLAGS) -mcmodel=kernel -mno-red-zone
135 DEFINES = $(COMMON_DEFINES) 
136
137 <i386_umlinux22 i386_umlinux24>
138 CCFLAGS = $(COMMON_KERN_CFLAGS) @P5PLUS_KOPTS@ -Wno-strict-prototypes -I$(LINUX_KERNEL_PATH)/arch/um/include -I$(LINUX_KERNEL_PATH)/arch/um/kernel/tt/include -I$(LINUX_KERNEL_PATH)/arch/um/kernel/skas/include
139 DEFINES = $(COMMON_DEFINES) -DCPU=586
140
141 <i386_umlinux26>
142 EXTRA_CFLAGS = -I$(LINUX_KERNEL_PATH)/arch/um/include -I$(LINUX_KERNEL_PATH)/arch/um/kernel/tt/include -I$(LINUX_KERNEL_PATH)/arch/um/kernel/skas/include
143
144 <alpha_linux_22 alpha_linux_24>
145 CCFLAGS = $(COMMON_KERN_CFLAGS) -mno-fp-regs -ffixed-8
146 DEFINES = $(COMMON_DEFINES)
147
148 <s390_linux22 s390_linux24>
149 CCFLAGS = $(COMMON_KERN_CFLAGS) -fsigned-char
150 DEFINES = $(COMMON_DEFINES) -D__s390__ 
151
152 <s390x_linux22 s390x_linux24>
153 CCFLAGS = $(COMMON_KERN_CFLAGS) -fsigned-char
154 DEFINES = $(COMMON_DEFINES) -D__s390x__ 
155
156 <sparc_linux22 sparc_linux24>
157 LD = ld -m elf32_sparc
158 CCFLAGS = $(COMMON_KERN_CFLAGS) -mcpu=v8 -mno-fpu -fcall-used-g5 -fcall-used-g7
159 DEFINES = $(COMMON_DEFINES) -DCPU=sparc
160
161 <sparc64_linux22 sparc64_linux24>
162 CC = sparc64-linux-gcc
163 LD = ld -m elf64_sparc
164 CCFLAGS = $(COMMON_KERN_CFLAGS) \
165       -mcpu=ultrasparc -m64 -mno-fpu -mcmodel=medlow -ffixed-g4 -fcall-used-g5 -fcall-used-g7 -Wno-sign-compare
166 DEFINES = $(COMMON_DEFINES) -DCPU=sparc64
167
168 <ppc_linux22 ppc_linux24 ppc64_linux22 ppc64_linux24>
169 CCFLAGS = $(COMMON_KERN_CFLAGS) -fsigned-char -msoft-float -fno-builtin -ffixed-r2
170 DEFINES = $(COMMON_DEFINES) -D__powerpc__
171
172 <parisc_linux24>
173 CCFLAGS = $(COMMON_KERN_CFLAGS) -fsigned-char -mno-space-regs \
174       -mfast-indirect-calls -mdisable-fpregs -ffunction-sections \
175       -march=1.1 -mschedule=7100
176 DEFINES = $(COMMON_DEFINES) -D__linux__
177
178 <ia64_linux24>
179 CCFLAGS = $(COMMON_KERN_CFLAGS) -ffixed-r13 -mfixed-range=f10-f15,f32-f127 -falign-functions=32 -mb-step
180 DEFINES = $(COMMON_DEFINES)
181
182 <all>
183 INCLUDES = -I. -I../ -I${TOP_OBJDIR}/src/config \
184   -I${TOP_SRCDIR}/rx -I${TOP_OBJDIR}/src/rxstat
185
186 CFLAGS = $(CCFLAGS) $(DEFINES) $(INCLUDES)
187
188 # Name of directory to hold object files and libraries.
189 KOBJ = MODLOAD
190 MPS = @MPS@
191
192 # COMPDIRS is called in Makefile.common to do the actual builds.
193 COMPDIRS=linux_compdirs
194 INSTDIRS=linux_instdirs
195 DESTDIRS=linux_destdirs
196
197 include Makefile.common
198
199 <linux26 linux_26 umlinux26>
200 LINUX_MODULE_EXT=ko
201 <all -linux26 -linux_26 -umlinux26>
202 LINUX_MODULE_EXT=o
203 <all>
204
205 LINUX_MODULE_NAME=
206 LOCAL_SMP_DEF=
207
208 setup:
209         -$(RM) -f h net netinet sys rpc
210         -ln -fs rx rpc
211         for m in ${MPS} ; do \
212                 KDIR=$(KOBJ)-${LINUX_VERSION}${LINUX_MODULE_NAME}-$$m; \
213                 mkdir -p $${KDIR}; \
214                 ln -fs ../Makefile $${KDIR}/Makefile.afs ; \
215                 ln -fs ../Makefile.common $${KDIR}/Makefile.common; \
216                 ln -fs ../config $${KDIR}/config; \
217         done 
218
219 # Compile SP and MP clients as requested
220
221 ${INSTDIRS} ${DESTDIRS}: ${COMPDIRS}
222         if [ "${LINUX_KERNEL_PACKAGING}" ] ; then \
223             TARGPREFIX="pack_"; \
224         fi ; \
225         for m in ${MPS} ; do \
226                 KDIR=${KOBJ}-${LINUX_VERSION}${LINUX_MODULE_NAME}-$$m ; \
227                 echo Building in directory: $${KDIR} ; \
228                 if [ "$$m" = "MP" ] ; then \
229                         SMP_DEF="-DAFS_SMP @RHCONFIG_MP@ ${LOCAL_SMP_DEF}" ; \
230                         TARG="libafs.mp" ; \
231                 elif [ "$$m" = "EP" ] ; then \
232                         SMP_DEF="-DAFS_SMP @RHCONFIG_MP@ ${LOCAL_SMP_DEF}" ; \
233                         TARG="libafs.ep" ; \
234                 elif [ "$$m" = "BM" ] ; then \
235                         SMP_DEF="-DAFS_SMP @RHCONFIG_MP@ ${LOCAL_SMP_DEF}" ; \
236                         TARG="libafs.bm" ; \
237                 else  \
238                         SMP_DEF="@RHCONFIG_SP@ ${LOCAL_SMP_DEF}" ; \
239                         TARG=libafs ; \
240                 fi ; \
241                 cd $${KDIR} ; \
242                 $(MAKE) -f Makefile.afs SMP_DEF="$${SMP_DEF}" $@_$${TARGPREFIX}$${TARG} CLIENT=${LINUX_VERSION}${LINUX_MODULE_NAME} KDIR=$${KDIR} || exit $$?; \
243                 cd ../ ; \
244         done
245
246 ${COMPDIRS}: setup
247         $(RM) -f h 
248         $(RM) -f sys
249         $(RM) -f netinet 
250         if [ -d ${LINUX_KERNEL_PATH}/include2 ] ; then                  \
251             ln -fs ${LINUX_KERNEL_PATH}/include2/asm/../linux h       ; \
252             ln -fs ${LINUX_KERNEL_PATH}/include2/asm/../linux sys     ; \
253             ln -fs ${LINUX_KERNEL_PATH}/include2/asm/../linux netinet ; \
254         else                                                            \
255             ln -fs ${LINUX_KERNEL_PATH}/include/linux h               ; \
256             ln -fs ${LINUX_KERNEL_PATH}/include/linux sys             ; \
257             ln -fs ${LINUX_KERNEL_PATH}/include/linux netinet         ; \
258         fi
259         $(RM) -f linux 
260         ln -fs ${LINUX_KERNEL_PATH}/include/linux linux 
261         $(RM) -f net 
262         ln -fs ${LINUX_KERNEL_PATH}/include/net net 
263         $(RM) -f asm-generic
264         ln -fs ${LINUX_KERNEL_PATH}/include/asm-generic asm-generic
265         $(RM) -f asm
266 <parisc_linux22 parisc_linux24 parisc_linux26>
267         ln -fs ${LINUX_KERNEL_PATH}/include/asm-parisc asm
268 <alpha_linux_22 alpha_linux_24 alpha_linux_26>
269         ln -fs ${LINUX_KERNEL_PATH}/include/asm-alpha asm
270 <i386_linux22 i386_linux24 i386_linux26>
271         ln -fs ${LINUX_KERNEL_PATH}/include/asm-i386 asm
272 <i386_umlinux22 i386_umlinux24 i386_umlinux26>
273         ln -fs ${LINUX_KERNEL_PATH}/include/asm-um asm
274         ln -fs ${LINUX_KERNEL_PATH}/arch/um/include/sysdep
275 <amd64_linux24 amd64_linux26>
276         ln -fs ${LINUX_KERNEL_PATH}/include/asm-x86_64 asm
277 <s390_linux22 s390_linux24 s390_linux26>
278         ln -fs ${LINUX_KERNEL_PATH}/include/asm-s390 asm
279 <s390x_linux22 s390x_linux24 s390x_linux26>
280         ln -fs ${LINUX_KERNEL_PATH}/include/asm-s390x asm
281 <ppc_linux22 ppc_linux24 ppc_linux26>
282         ln -fs ${LINUX_KERNEL_PATH}/include/asm-ppc asm 
283 <ppc64_linux24 ppc64_linux26>
284         ln -s ${LINUX_KERNEL_PATH}/include/asm-ppc64 asm 
285 <sparc_linux22 sparc_linux24 sparc_linux26>
286         ln -fs ${LINUX_KERNEL_PATH}/include/asm-sparc asm
287 <sparc64_linux22 sparc64_linux24 sparc64_linux26>
288         ln -fs ${LINUX_KERNEL_PATH}/include/asm-sparc64 asm
289 <ia64_linux24 ia64_linux26>
290         ln -fs ${LINUX_KERNEL_PATH}/include/asm-ia64 asm
291 <all>
292         if [ "${LINUX_KERNEL_PACKAGING}" ] ; then \
293             TARGPREFIX="pack_"; \
294         fi ; \
295         for m in ${MPS} ; do \
296                 KDIR=${KOBJ}-${LINUX_VERSION}${LINUX_MODULE_NAME}-$$m ; \
297                 echo Building in directory: $${KDIR} ; \
298                 if [ "$$m" = "MP" ] ; then \
299                         SMP_DEF="-DAFS_SMP @RHCONFIG_MP@ ${LOCAL_SMP_DEF}" ; \
300                         TARG="libafs.mp" ; \
301                 elif [ "$$m" = "EP" ] ; then \
302                         SMP_DEF="-DAFS_SMP @RHCONFIG_MP@ ${LOCAL_SMP_DEF}" ; \
303                         TARG="libafs.ep" ; \
304                 elif [ "$$m" = "BM" ] ; then \
305                         SMP_DEF="-DAFS_SMP @RHCONFIG_MP@ ${LOCAL_SMP_DEF}" ; \
306                         TARG="libafs.bm" ; \
307                 else  \
308                         SMP_DEF="@RHCONFIG_SP@ ${LOCAL_SMP_DEF}" ; \
309                         TARG=libafs ; \
310                 fi ; \
311                 cd $${KDIR} ; \
312                 $(MAKE) -f Makefile.afs SMP_DEF="$${SMP_DEF}" $@_$${TARGPREFIX}$${TARG} CLIENT=${LINUX_VERSION}${LINUX_MODULE_NAME} KDIR=$${KDIR} || exit $$?; \
313                 cd ../ ; \
314 <all>
315         done
316
317 linux_compdirs_libafs: depsrcs libafs
318 linux_compdirs_libafs.mp: depsrcs libafs.mp
319 linux_compdirs_libafs.ep: depsrcs libafs.ep
320 linux_compdirs_libafs.bm: depsrcs libafs.bm
321 linux_instdirs_libafs: install_libafs
322 linux_instdirs_libafs.mp: install_libafs.mp
323 linux_instdirs_libafs.ep: install_libafs.ep
324 linux_instdirs_libafs.bm: install_libafs.bm
325 linux_destdirs_libafs: dest_libafs
326 linux_destdirs_libafs.mp: dest_libafs.mp
327 linux_destdirs_libafs.ep: dest_libafs.ep
328 linux_destdirs_libafs.bm: dest_libafs.bm
329
330 linux_compdirs_pack_libafs: depsrcs pack_libafs
331 linux_instdirs_pack_libafs: install_pack_libafs
332 linux_destdirs_pack_libafs: dest_pack_libafs
333
334 # Below this line are targets when in the COMMON directory:
335 # For Linux there is no kernel NFS server.
336 LIBAFS = ${LINUX_LIBAFS_NAME}-${CLIENT}.${LINUX_MODULE_EXT}
337 LIBAFS_MP = ${LINUX_LIBAFS_NAME}-${CLIENT}.mp.${LINUX_MODULE_EXT}
338 LIBAFS_EP = ${LINUX_LIBAFS_NAME}-${CLIENT}.ep.${LINUX_MODULE_EXT}
339 LIBAFS_BM = ${LINUX_LIBAFS_NAME}-${CLIENT}.bm.${LINUX_MODULE_EXT}
340
341 INST_LIBAFS = ${DESTDIR}${afskerneldir}/${LIBAFS}
342 INST_LIBAFS_MP = ${DESTDIR}${afskerneldir}/${LIBAFS_MP}
343 INST_LIBAFS_EP = ${DESTDIR}${afskerneldir}/${LIBAFS_EP}
344 INST_LIBAFS_BM = ${DESTDIR}${afskerneldir}/${LIBAFS_BM}
345
346 DEST_LIBAFS = ${DEST}/root.client/usr/vice/etc/modload/${LIBAFS}
347 DEST_LIBAFS_MP = ${DEST}/root.client/usr/vice/etc/modload/${LIBAFS_MP}
348 DEST_LIBAFS_EP = ${DEST}/root.client/usr/vice/etc/modload/${LIBAFS_EP}
349 DEST_LIBAFS_BM = ${DEST}/root.client/usr/vice/etc/modload/${LIBAFS_BM}
350
351 SYSTEM_LIBAFS = /lib/modules/${CLIENT}/extra/${LINUX_LIBAFS_NAME}/${LINUX_LIBAFS_NAME}.ko
352
353 INST_SYSTEM = ${DESTDIR}${SYSTEM_LIBAFS}
354 DEST_SYSTEM = ${DEST}/root.client${SYSTEM_LIBAFS}
355
356 libafs: $(LIBAFS) 
357         echo SP Build Complete
358
359 libafs.mp: $(LIBAFS_MP)
360         echo MP Build Complete
361
362 libafs.ep: $(LIBAFS_EP)
363         echo EP Build Complete
364
365 libafs.bm: $(LIBAFS_BM)
366         echo BM Build Complete
367
368 <linux26 linux_26 umlinux26>
369 pack_libafs: ${LINUX_LIBAFS_NAME}.ko
370         echo "Packaging Friendly Build Complete"
371
372 ${LIBAFS} ${LIBAFS_MP} ${LIBAFS_EP} ${LIBAFS_BM}: ${LINUX_LIBAFS_NAME}.ko
373         cp ${LINUX_LIBAFS_NAME}.ko $@
374
375 .FORCE:
376 ${LINUX_LIBAFS_NAME}.ko afspag.ko: .FORCE
377         env EXTRA_CFLAGS="${EXTRA_CFLAGS}" @TOP_SRCDIR@/libafs/make_kbuild_makefile.pl ${KDIR} $@ @TOP_OBJDIR@/src/config/Makefile.config Makefile.afs Makefile.common
378         ( env EXTRA_CFLAGS="${EXTRA_CFLAGS}" \
379                 $(MAKE) -C ${LINUX_KERNEL_BUILD} M=@TOP_OBJDIR@/src/libafs/${KDIR} modules 2>&1 \
380                 || echo "FAILURE: make exit code $$?" ) | tee .makelog
381         @if grep -E -q '^(FAILURE|WARNING)' .makelog; then \
382                 grep -q '^WARNING' .makelog && echo "Error: Undefined symbols in modules" ; \
383                 rm .makelog ; \
384                 exit 1 ; \
385         fi
386         rm .makelog
387
388 <all -linux26 -linux_26 -umlinux26>
389 ${LIBAFS}: $(AFSAOBJS) $(AFSNONFSOBJS)
390         $(RM) -f $@
391         $(LD) -r -o $@ $(AFSAOBJS) $(AFSNONFSOBJS)
392
393 ${LIBAFS_MP}: $(AFSAOBJS) $(AFSNONFSOBJS)
394         $(RM) -f $@
395         $(LD) -r -o $@ $(AFSAOBJS) $(AFSNONFSOBJS)
396
397 ${LIBAFS_EP}: $(AFSAOBJS) $(AFSNONFSOBJS)
398         $(RM) -f $@
399         $(LD) -r -o $@ $(AFSAOBJS) $(AFSNONFSOBJS)
400
401 ${LIBAFS_BM}: $(AFSAOBJS) $(AFSNONFSOBJS)
402         $(RM) -f $@
403         $(LD) -r -o $@ $(AFSAOBJS) $(AFSNONFSOBJS)
404 <all>
405
406 install_libafs: $(LIBAFS) 
407         ${INSTALL} -d ${DESTDIR}${afskerneldir}
408         ${INSTALL} -m 644 $(LIBAFS) $(INST_LIBAFS)
409         echo SP Install Complete
410
411 install_pack_libafs: $(LINUX_LIBAFS_NAME).ko
412         ${INSTALL} -d ${DESTDIR}/lib/modules/${CLIENT}/extra/${LINUX_LIBAFS_NAME}
413         ${INSTALL} -m 644 $(LINUX_LIBAFS_NAME).ko $(INST_SYSTEM)
414         echo Packaging Friendly Install Complete
415
416 install_libafs.mp: $(LIBAFS_MP)
417         ${INSTALL} -d ${DESTDIR}${afskerneldir}
418         ${INSTALL} -m 644 $(LIBAFS_MP) $(INST_LIBAFS_MP)
419         echo MP Install Complete
420
421 install_libafs.ep: $(LIBAFS_EP)
422         ${INSTALL} -d ${DESTDIR}${afskerneldir}
423         ${INSTALL} -m 644 $(LIBAFS_EP) $(INST_LIBAFS_EP)
424         echo EP Install Complete
425
426 install_libafs.bm: $(LIBAFS_BM)
427         ${INSTALL} -d ${DESTDIR}${afskerneldir}
428         ${INSTALL} -m 644 $(LIBAFS_BM) $(INST_LIBAFS_BM)
429         echo BM Install Complete
430
431 dest_libafs:    $(LIBAFS) 
432         ${INSTALL} -d ${DEST}/root.client/usr/vice/etc/modload
433         ${INSTALL} -m 644 $(LIBAFS) $(DEST_LIBAFS)
434         echo SP Install Complete
435
436 dest_pack_libafs: $(LINUX_LIBAFS_NAME).ko
437         ${INSTALL} -d ${DEST}/root.client/lib/modules/${CLIENT}/extra/${LINUX_LIBAFS_NAME}
438         ${INSTALL} -m 644 $(LINUX_LIBAFS_NAME).ko $(DEST_SYSTEM)
439         echo Packaging Friendly Install Complete
440
441 dest_libafs.mp: $(LIBAFS_MP)
442         ${INSTALL} -d ${DEST}/root.client/usr/vice/etc/modload
443         ${INSTALL} -m 644 $(LIBAFS_MP) $(DEST_LIBAFS_MP)
444         echo MP Install Complete
445
446 dest_libafs.ep: $(LIBAFS_EP)
447         ${INSTALL} -d ${DEST}/root.client/usr/vice/etc/modload
448         ${INSTALL} -m 644 $(LIBAFS_EP) $(DEST_LIBAFS_EP)
449         echo EP Install Complete
450
451 dest_libafs.bm: $(LIBAFS_BM)
452         ${INSTALL} -d ${DEST}/root.client/usr/vice/etc/modload
453         ${INSTALL} -m 644 $(LIBAFS_BM) $(DEST_LIBAFS_BM)
454         echo BM Install Complete