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