2ec741a3f26cc3827693bb7e169d7a0282bce905
[openafs.git] / src / libafs / MakefileProto.IRIX.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
11
12 # OS specific object files:
13 AFS_OS_OBJS = \
14         afs_base64.o \
15         osi_groups.o \
16         osi_idbg.o \
17         osi_file.o \
18         osi_inode.o \
19         osi_misc.o \
20         osi_sleep.o \
21         osi_vm.o \
22         osi_vnodeops.o
23
24 AFS_OS_NFSOBJS = \
25         osi_vfsops_nfs.o
26
27 AFS_OS_NONFSOBJS = \
28         osi_vfsops.o
29
30
31 # System specific build commands and flags
32 DBUG=-g
33
34 <sgi_62>
35 MPS=MP SP
36 <sgi_63>
37 MPS=SP
38 <sgi_64>
39 MPS=MP
40
41 <sgi_61>
42 # Turning off warnings regarding constant conditionals and not prototyped.
43 KDEFS=-D_K64U64 -D_KERNEL -DSTATIC=static -D_PAGESZ=16384 -D_MIPS3_ADDRSPACE \
44         -DTFP -non_shared -elf -xansi -64 -mips4 -TENV:kernel \
45         -TENV:misalignment=1 -OPT:space \
46         -D${CPUBOARD} -D${MPSP} -D${CPUARCH} -DAFS_SGIMP_ENV ${NODYNOPT} \
47         -jalr -woff 1209,1196,1496
48 <sgi_62>
49 # Turning off warnings regarding constant conditionals and not prototyped.
50 KDEFS_64BIT= -64 -D_K64U64 -D_PAGESZ=16384 -TENV:kernel -OPT:space \
51         -TENV:misalignment=1
52 R4000_LDFLAGS = -mips3 -64
53 R4000_KDEFS = -mips3  -DR4000_DADDIU_WAR -DFAST_LOCORE_TFAULT -DUSE_LGPAGES \
54         -DR4000 -DEVEREST -DBADVA_WAR -DMP_R4000_BADVA_WAR \
55         -DECC_RECOVER -DCLOCK_CTIME_IS_ABSOLUTE -D_SHAREII -D_HIBERNATORII \
56          -DPIOMEMOPS -DULI ${KDEFS_64BIT}
57 R8000_KDEFS = -mips4 -DTFP -DR8000 ${KDEFS_64BIT}
58 R8000_LDFLAGS = -mips4 -64
59 KDEFS= -I/usr/include -I/usr/include/sys -D_KERNEL -DSTATIC=static \
60         -D_MIPS3_ADDRSPACE -non_shared -elf -xansi \
61         ${CPU_KDEFS} \
62         -D${CPUBOARD} -D${MPSP} -DAFS_SGIMP_ENV ${NODYNOPT} \
63         -jalr -woff 1209,1196,1496
64 R10000_KDEFS = -mips4 -DR10000 -DEXPRESS -DIP28 -DI2_64 -DFAST_LOCORE_FAULT \
65         -DSCACHE_SET_ASSOC=2 -D_NO_UNCACHED_MEM_WAR -DMIPS4_ISA \
66         -DR10000_SPECULATION_WAR  \
67         -OPT:quad_align_branch_targets=FALSE \
68         -OPT:quad_align_with_memops=FALSE -OPT:unroll_times=0 \
69         -DDEFAULTSEMAMETER=1 ${KDEFS_64BIT}
70 R10000_LDFLAGS = -mips4 -64
71 R4000_32_LDFLAGS = -mips2 -o32
72 R4000_32_KDEFS = -mips2 -o32 -elf -DEXPRESS -D_K32U64 -xansi\
73         -D_PAGESZ=4096 -D_KERNEL \
74         -DSTATIC=static -DBADVA_WAR -DJUMP_WAR -DPROBE_WAR -D_MEM_PARITY_WAR \
75         -D_TLB_LOOP_LIMIT -DTLBMOD_BADVADDR_WAR -D_VCE_AVOIDANCE \
76         -D_R4600_CACHEOP_WAR -D_R4600_2_0_CACHEOP_WAR -D_IRIX5_MIPS3 \
77         -D_IRIX5_MIPS4 -D_R5000_BADVADDR_WAR -D_R5000_JUMP_WAR -DMIPS4_ISA \
78         -DR4000 -DR4000PC -DR4600 -DR4600SC -DTRITON -DTRITON_INDYSC \
79         -Wc,-pic0 -fullwarn -non_shared -nostdinc  -Wf,-XNp12000 \
80         -woff 1685,515,608,658,799,803,835,852,1048,1233,1499,1501 \
81         -DDEFAULTSEMAMETER=1
82 <sgi_63>
83 # Turning off warnings regarding constant conditionals and not prototyped.
84 # NOTE: Only for R5000 at the moment.
85 KDEFS= -I/usr/include -I/usr/include/sys -D_KERNEL -DSTATIC=static \
86         -non_shared -elf -xansi \
87         ${CPU_KDEFS} \
88         -D${CPUBOARD} -D${MPSP} -DAFS_SGIMP_ENV ${NODYNOPT} \
89         -jalr -woff 1209,1196,1496
90 R5000_LDFLAGS = -mips2 -o32
91 R5000_KDEFS =  -DCRIME -DIP32 -DCRM -D_K32U64 -xansi -D_PAGESZ=4096 \
92         -D_KERNEL -DSTATIC=static -DPROBE_WAR -D_VCE_AVOIDANCE -DTILE_DATA \
93         -D_VCE_AVOIDANCE_DEBUG -D_R4600_CACHEOP_WAR -D_TLB_LOOP_LIMIT \
94         -D_R4600_2_0_CACHEOP_WAR -DP0_WAR -D_IRIX5_MIPS4 -D_IRIX5_MIPS3 \
95         -D_R5000_BADVADDR_WAR -DMIPS4_ISA -DSW_FAST_CACHE_SYNCH -DSWASH \
96         -D_R5000_CVT_WAR=1 -D_MTEXT_VFS -DR4000 -DR4000PC -DR4600 \
97         -DR4600SC -DTRITON -g -elf -mips2 -fullwarn -non_shared -nostdinc \
98         -mips2 -o32 -woff 1685,515,608,658,799,803,852,1048,1233,1499,1501 \
99         -Wf,-XNp12000 -DDEFAULTSEMAMETER=1
100 R10000_LDFLAGS = -mips2 -o32
101 R10000_KDEFS = -DCRIME -DIP32 -DCRM -D_K32U64 -xansi -D_K32U64 -D_PAGESZ=4096 \
102         -D_KERNEL -DSTATIC=static -D_VCE_AVOIDANCE -DTILE_DATA \
103         -DTLBMOD_BADVADDR_WAR -D_VCE_AVOIDANCE_DEBUG -D_TLB_LOOP_LIMIT \
104         -DP0_WAR -D_IRIX5_MIPS4 -D_IRIX5_MIPS3 -D_R5000_BADVADDR_WAR \
105         -DMIPS4_ISA -DSW_FAST_CACHE_SYNCH -DSWASH -DSCACHE_SET_ASSOC=2 \
106         -D_R5000_CVT_WAR=1 -D_MTEXT_VFS -DR10000_SPECULATION_WAR \
107         -DMH_R10000_SPECULATION_WAR -DSP -DIP32 -DR4000 -DR4000PC -DR4600 \
108         -DR4600SC -DTRITON -DR10000 -D_NO_R4000 -g -elf -mips2 -fullwarn \
109         -non_shared -nostdinc -mips2 -o32 \
110         -woff 1685,515,608,658,799,803,852,1048,1233,1499,1501 \
111         -Wf,-XNp12000 -DDEFAULTSEMAMETER=1 
112 <sgi_64>
113 KDEFS= -I/usr/include -I/usr/include/sys -D_KERNEL -DSTATIC=static \
114         -non_shared -elf -xansi \
115         ${CPU_KDEFS} \
116         -D${CPUBOARD} -D${MPSP} -DAFS_SGIMP_ENV ${NODYNOPT} \
117         -jalr -woff 1209,1196,1496
118 R10000_LDFLAGS = -mips4 -64
119 R10000_KDEFS = -DKONA -DIP27 -DIP27 -DDISCONTIG_PHYSMEM -DNUMA_BASE -DNUMA_PM \
120          -DNUMA_TBORROW -DNUMA_MIGR_CONTROL -DNUMA_REPLICATION \
121         -DNUMA_REPL_CONTROL -DNUMA_SCHED -DLARGE_CPU_COUNT -DHUB2_NACK_WAR \
122         -DBRIDGE_ERROR_INTR_WAR -DMAPPED_KERNEL -DBHV_SYNCH -DHUB_ERR_STS_WAR \
123          -DHUB_MIGR_WAR -DNCR16C550 -DTL16PIR552 -DSN0_INTR_BROKEN -DFRU \
124         -DFORCE_ERRORS -DSN0_USE_BTE -DBTE_BZERO_WAR -DREV1_BRIDGE_SUPPORTED \
125         -DHUB_II_IFDR_WAR -xansi -DDISCONTIG_PHYSMEM -DNUMA_BASE -DNUMA_PM \
126         -DNUMA_TBORROW -DNUMA_MIGR_CONTROL -DNUMA_REPLICATION \
127         -DNUMA_REPL_CONTROL -DNUMA_SCHED -DLARGE_CPU_COUNT -DHUB2_NACK_WAR \
128         -DBRIDGE_ERROR_INTR_WAR -DMAPPED_KERNEL -DBHV_SYNCH \
129         -DHUB_ERR_STS_WAR -DHUB_MIGR_WAR -DNCR16C550 -DTL16PIR552 \
130         -DSN0_INTR_BROKEN -DFRU -DFORCE_ERRORS -DSN0_USE_BTE -DBTE_BZERO_WAR \
131         -DREV1_BRIDGE_SUPPORTED -DHUB_II_IFDR_WAR -D_PAGESZ=16384 -D_KERNEL \
132         -DSTATIC=static -D_MIPS3_ADDRSPACE -DSN0 -DMIPS4_ISA \
133         -DCLOCK_CTIME_IS_ABSOLUTE -DFAST_LOCORE_TFAULT -DULI -DCKPT \
134         -DIDLESTACK_FASTINT -DR10K_LLSC_WAR -DPTE_64BIT -DRMAPS \
135         -DPAGE_MIGRATION -DSW_FAST_CACHE_SYNCH -DINTR_KTHREADS \
136         -DMRSP_AS_MR -D_MP_NETLOCKS -DMP_STREAMS=1 -DIP27 -DR10000 \
137         -g -TENV:kernel -TENV:misalignment=1 -OPT:space \
138         -OPT:quad_align_branch_targets=FALSE \
139         -OPT:quad_align_with_memops=FALSE \
140         -OPT:unroll_times=0 -OPT:Olimit=5000 -TARG:processor=r10000 \
141         -FE:pointer_readonly -use_readonly_const -fullwarn \
142         -non_shared -mips4 -64 \
143         -woff 1685,515,608,658,799,803,852,1048,1233,1499,1501 \
144         -DDEFAULTSEMAMETER=1
145 <sgi_65>
146 # For Irix 6.5 we are building based on cpu board number rather than CPU number
147 # While -G 8 is recommended for space, we know that the table overflows when
148 # both AFS and DFS are compiled into the kernel. For Irix 6.5, define MP
149 # so we pick up locks.
150 KDEFS= -I/usr/include -I/usr/include/sys -DSTATIC=static -DAFS_SGIMP_ENV \
151         -DMP -D_KERNEL -DMP_STREAMS -D_MP_NETLOCKS -DMRSP_AS_MR \
152         -fullwarn -non_shared -G 0 \
153         -TENV:kernel -OPT:space -OPT:Olimit=0 -CG:unique_exit=on \
154         -TENV:X=1 -OPT:IEEE_arithmetic=1 -OPT:roundoff=0 \
155         -OPT:wrap_around_unsafe_opt=off \
156         ${CPU_KDEFS} -woff 1209,1196,1496
157 # 32 bit specific flags:
158 KDEFS_32 = -n32 -D_PAGESZ=4096 -mips3
159 # 64 bit specific flags:
160 KDEFS_64 = -64 -D_PAGESZ=16384 -D_MIPS3_ADDRSPACE -mips4
161
162 # CPU board specific flags:
163 IP19_KDEFS = -DIP19 -DEVEREST -DMP -DR4000 \
164         -mips3  -D_PAGESZ=16384 -D_MIPS3_ADDRSPACE -64
165 IP20_KDEFS = -DIP20 -DR4000 -DJUMP_WAR -DBADVA_WAR -DTRITON -DUSE_PCI_PIO \
166                 -D_R5000_CVT_WAR=1 -DCKPT -D_MTEXT_VFS $(KDEFS_32)
167 IP21_KDEFS = -DIP21 -DEVEREST -DMP -DTFP -TARG:processor=r8000 $(KDEFS_64)
168 IP25_KDEFS = -DIP25 -DEVEREST -DMP -DR10000 -TARG:processor=r10000 $(KDEFS_64)
169 IP26_KDEFS = -DIP26 -DTFP -TARG:sync=off -TARG:processor=r8000 $(KDEFS_64)
170 IP27_KDEFS =  -DIP27 -DR10000 -DMP -DSN -DSN0 -DMAPPED_KERNEL \
171         -DLARGE_CPU_COUNT \
172         -DPTE_64BIT -DULI -DCKPT -DMIPS4_ISA -DR10K_LLSC_WAR -DNUMA_BASE \
173         -DNUMA_PM  -DNUMA_TBORROW -DNUMA_MIGR_CONTROL -DNUMA_REPLICATION \
174         -DNUMA_REPL_CONTROL -DNUMA_SCHED -DCELL_PREPARE -DBHV_PREPARE \
175         -TARG:processor=r10000 $(KDEFS_64)
176 IP28_KDEFS = -DIP28 -DR10000 -DSCACHE_SET_ASSOC=2 -D_NO_UNCACHED_MEM_WAR \
177         -DR10000_SPECULATION_WAR -TARG:processor=r10000 \
178         -TARG:t5_no_spec_stores $(KDEFS_64)
179 IP30_KDEFS = -DIP30 -DR10000 -DMP -DCELL_PREPARE -DBHV_PREPARE \
180         -TARG:processor=r10000 $(KDEFS_64)
181 IP35_KDEFS =  -DIP35 -DR10000 -DMP -DSN -DSN1 -DMAPPED_KERNEL \
182         -DLARGE_CPU_COUNT \
183         -DPTE_64BIT -DULI -DCKPT -DMIPS4_ISA -DNUMA_BASE \
184         -DNUMA_PM  -DNUMA_TBORROW -DNUMA_MIGR_CONTROL -DNUMA_REPLICATION \
185         -DNUMA_REPL_CONTROL -DNUMA_SCHED -DCELL_PREPARE -DBHV_PREPARE \
186         -TARG:processor=r10000 $(KDEFS_64)
187 # Loader flags
188 LDFLAGS_64 = -64
189 LDFLAGS_32 = -n32
190
191
192 <all>
193 DEFINES= -DAFSDEBUG -DKERNEL -DAFS -DVICE -DNFS -DUFS -DINET -DQUOTA -DGETMOUNT
194 OPTF=${OPT} 
195 OPTF2=${OPT2} 
196 CFLAGS=-I. -I.. -I${TOP_OBJDIR}/src/config ${FSINCLUDES} $(DEFINES) -G 0 $(KDEFS) $(KOPTS) ${DBUG}
197
198 # This tells Makefile.common to use it's single directory build target.
199 #COMPDIRS = single_compdir
200 # This is the irix multiple directory target.
201 COMPDIRS = irix_compdirs
202 INSTDIRS = irix_instdirs
203 DESTDIRS = irix_destdirs
204
205 include Makefile.common
206
207 # Make all the directories, even if only building one.
208 <sgi_62>
209 PROCESSORS=R4000 R4000_32 R8000 R10000
210 <sgi_63>
211 PROCESSORS = R5000 R1000
212 <sgi_64>
213 PROCESSORS = R10000
214 <sgi_65>
215 PROCESSORS = IP19 IP20 IP21 IP25 IP26 IP27 IP28 IP30 @IRIX_BUILD_IP35@
216 <all>
217
218 KOBJ = STATIC MODLOAD
219
220
221 setup:
222         -$(RM) -f  h net netinet rpc ufs nfs  machine sys 
223         -ln -fs /usr/include/sys h
224         -ln -fs /usr/include/net /usr/include/netinet .
225         -ln -fs /usr/include/rpc /usr/include/sys .
226         -ln -fs /usr/include/sys/fs .
227 <all -sgi_65>
228         BUILDPROCS="${PROCESSORS}" ; \
229         BUILDMPS="${MPS}" ; \
230         if [ "${CPUARCH}" != "" ] ; then \
231                 BUILDPROCS=${CPUARCH}; \
232                 BUILDMPS=${MPSP}; \
233         fi ; \
234         for p in $${BUILDPROCS} ; do \
235           for n in $${BUILDMPS} ; do \
236             for t in ${KOBJ} ; do \
237                 dir=$$t.$$n.$$p ; \
238                 echo Making directory: $$dir; \
239                 mkdir -p $$dir; \
240                 $(RM) -f $$dir/Makefile.common $$dir/Makefile $$dir/config; \
241                 ln -fs ../Makefile.common $$dir/Makefile.common; \
242                 ln -fs ../Makefile $$dir/Makefile; \
243                 ln -fs ../config $$dir/config; \
244             done; \
245           done; \
246         done
247 <sgi_65>
248         BUILDPROCS="${PROCESSORS}" ; \
249         if [ "${IPNO}" != "" ] ; then \
250                 BUILDPROCS="${IPNO}"; \
251         fi ; \
252         for p in $${BUILDPROCS} ; do \
253             for t in ${KOBJ} ; do \
254                 dir=$$t.$$p ; \
255                 echo Making directory: $$dir; \
256                 mkdir -p $$dir; \
257                 $(RM) -f $$dir/Makefile.common $$dir/Makefile $$dir/config; \
258                 ln -fs ../Makefile.common $$dir/Makefile.common; \
259                 ln -fs ../Makefile $$dir/Makefile; \
260                 ln -fs ../config $$dir/config; \
261             done; \
262         done
263 <all>
264         echo Setup compelete.
265
266
267 # Compile static and modload versions of the clients.
268 <all -sgi_65>
269 ${COMPDIRS} ${INSTDIRS} ${DESTDIRS}:
270         BUILDPROCS="${PROCESSORS}" ; \
271         if [ "${CPUARCH}" != "" ] ; then \
272                 BUILDPROCS=${CPUARCH}; \
273                 BUILDMPS=${MPSP}; \
274         fi ; \
275         for p in $${BUILDPROCS} ; do \
276           for n in $${BUILDMPS} ; do \
277             for t in ${KOBJ} ; do \
278               dir=$$t.$$n.$$p ; \
279                 echo Building directory: $$dir; \
280                 case $$p in \
281                         R4000) \
282                          CPUBOARD=IP19; \
283                          CPU_KDEFS="${R4000_KDEFS}"; \
284                          LDFLAGS="${R4000_LDFLAGS}";; \
285                         R4000_32) \
286                          CPUBOARD=IP22; \
287                          CPU_KDEFS="${R4000_32_KDEFS}"; \
288                          LDFLAGS="${R4000_32_LDFLAGS}";; \
289                         R5000) \
290                          CPUBOARD=IP32; \
291                          CPU_KDEFS="${R5000_KDEFS}"; \
292                          LDFLAGS="${R5000_LDFLAGS}";; \
293                         R8000) \
294                          CPUBOARD=IP26; \
295                          CPU_KDEFS="${R8000_KDEFS}"; \
296                          LDFLAGS="${R8000_LDFLAGS}";; \
297                         R10000) \
298 <sgi_62>
299                          CPUBOARD=IP28; \
300 <sgi_63>
301                          CPUBOARD=IP32; \
302 <sgi_64>
303                          CPUBOARD=IP27; \
304 <sgi_62 sgi_63 sgi_64>
305                          CPU_KDEFS="${R10000_KDEFS}"; \
306                          LDFLAGS="${R10000_LDFLAGS}";; \
307                         *) echo "Unknown CPUARCH <$$p>" ; exit 1 ;; \
308                         esac ;\
309                         export CPUBOARD ;\
310                         export CPU_KDEFS ;\
311                         export LDFLAGS; \
312                 cd $$dir ; \
313                 $(MAKE) CPUARCH=$$p MPSP=$$n $@_$$t.libafs || exit $$?;\
314                 cd ../ ; \
315             done; \
316           done; \
317         done
318 <sgi_65>
319 ${COMPDIRS} ${INSTDIRS} ${DESTDIRS}:
320         BUILDPROCS="${PROCESSORS}" ; \
321         if [ "${IPNO}" != "" ] ; then \
322                 BUILDPROCS="${IPNO}"; \
323         fi ; \
324         for p in $${BUILDPROCS} ; do \
325             for t in ${KOBJ} ; do \
326               dir=$$t.$$p ; \
327                 echo Building directory: $$dir; \
328                 LDFLAGS="${LDFLAGS_64}"; \
329                 case $$p in \
330                 IP19)   CPU_KDEFS="${IP19_KDEFS}";; \
331                 IP20)   CPU_KDEFS="${IP20_KDEFS}"; \
332                         LDFLAGS="${LDFLAGS_32}";; \
333                 IP21)   CPU_KDEFS="${IP21_KDEFS}";; \
334                 IP25)   CPU_KDEFS="${IP25_KDEFS}";; \
335                 IP26)   CPU_KDEFS="${IP26_KDEFS}";; \
336                 IP27)   CPU_KDEFS="${IP27_KDEFS}";; \
337                 IP28)   CPU_KDEFS="${IP28_KDEFS}";; \
338                 IP30)   CPU_KDEFS="${IP30_KDEFS}";; \
339                 IP35)   CPU_KDEFS="${IP35_KDEFS}";; \
340                 *) echo Unknown IP number $$p ; exit 1 ;; \
341                 esac ;\
342                 case $$t in \
343                 MODLOAD) CPU_KDEFS="$${CPU_KDEFS} -TARG:force_jalr";; \
344                 esac ;\
345                 case $$t in \
346                 STATIC) echo X $${CPU_KDEFS} | sed 's/^X//' > $$dir/CPU_KDEFS;; \
347                 esac ;\
348                 export CPU_KDEFS ;\
349                 export LDFLAGS ;\
350                 cd $$dir ; \
351                 $(MAKE) IPNO=$$p $@_$$t.libafs || exit $$?; \
352                 cd ../ ; \
353           done; \
354         done
355 <all>
356
357 irix_compdirs_STATIC.libafs: depsrcs STATIC.libafs
358 irix_compdirs_MODLOAD.libafs: depsrcs MODLOAD.libafs
359 irix_instdirs_STATIC.libafs: install_STATIC.libafs
360 irix_instdirs_MODLOAD.libafs: install_MODLOAD.libafs
361 irix_destdirs_STATIC.libafs: dest_STATIC.libafs
362 irix_destdirs_MODLOAD.libafs: dest_MODLOAD.libafs
363
364
365
366 ${INSTDIRS}: install_COPYFILES install_LINKFILES
367 ${DESTDIRS}: dest_COPYFILES dest_LINKFILES
368
369
370
371 LIBAFSNONFSA = libafs.nonfs.a
372
373 STATIC.libafs: ${LIBAFSNONFSA}
374
375 install_STATIC.libafs: ${LIBAFSNONFSA}
376 <all -sgi_65>
377         ${CP} ${LIBAFSNONFSA} \
378                 ${DESTDIR}${afskerneldir}/libafs.${MPSP}.${CPUARCH}.nonfs.a
379 <sgi_65>
380         ${CP} ${LIBAFSNONFSA} \
381                 ${DESTDIR}${afskerneldir}/libafs.${IPNO}.nonfs.a
382 <all>
383
384 dest_STATIC.libafs: ${LIBAFSNONFSA}
385 <all -sgi_65>
386         ${CP} ${LIBAFSNONFSA} \
387                 ${DEST}/root.client/bin/libafs.${MPSP}.${CPUARCH}.nonfs.a
388 <sgi_65>
389         ${CP} ${LIBAFSNONFSA} \
390                 ${DEST}/root.client/bin/libafs.${IPNO}.nonfs.a
391 <all>
392
393 ${LIBAFSNONFSA}: $(AFSAOBJS) $(AFSNONFSOBJS)
394         $(AR) cru  $@ $?
395
396
397 LIBAFSNONFSO = libafs.nonfs.o
398
399 # MODLOAD.libafs: ${LIBAFSNONFSO} ${COPYFILES} ${LINKFILES}
400 MODLOAD.libafs: ${LIBAFSNONFSO}
401
402 install_MODLOAD.libafs: ${LIBAFSNONFSO}
403 <all -sgi_65>
404         ${CP} ${LIBAFSNONFSO} \
405                 ${DESTDIR}${afskerneldir}/libafs.${MPSP}.${CPUARCH}.nonfs.o
406 <sgi_65>
407         ${CP} ${LIBAFSNONFSO} \
408                 ${DESTDIR}${afskerneldir}/libafs.${IPNO}.nonfs.o
409 <all>
410
411 dest_MODLOAD.libafs: ${LIBAFSNONFSO}
412 <all -sgi_65>
413         ${CP} ${LIBAFSNONFSO} \
414                 ${DEST}/root.client/usr/vice/etc/sgiload/libafs.${MPSP}.${CPUARCH}.nonfs.o
415 <sgi_65>
416         ${CP} ${LIBAFSNONFSO} \
417                 ${DEST}/root.client/usr/vice/etc/sgiload/libafs.${IPNO}.nonfs.o
418 <all>
419
420 ${LIBAFSNONFSO}: $(AFSAOBJS) $(AFSNONFSOBJS)
421         $(LD) ${LDFLAGS} -elf -r -d -G 0 -o ${LIBAFSNONFSO} \
422                 $(AFSAOBJS) $(AFSNONFSOBJS)
423
424
425 install_COPYFILES:
426         ${CP} sgi_system ${DESTDIR}${afskerneldir}/afs.sm
427         chmod 644 ${DESTDIR}${afskerneldir}/afs.sm
428         ${CP} sgi_master ${DESTDIR}${afskerneldir}/afs
429         chmod 644 ${DESTDIR}${afskerneldir}/afs
430
431 dest_COPYFILES:
432         ${INSTALL} -f sgi_system ${DEST}/root.client/bin/afs.sm
433         chmod 644 ${DEST}/root.client/bin/afs.sm
434         ${INSTALL} -f sgi_master ${DEST}/root.client/bin/afs
435         chmod 644 ${DEST}/root.client/bin/afs
436
437 # Create symlinks to clients we don't need to build.
438 # If this changes, also change the kdump symlinks.
439 install_LINKFILES:
440 <sgi_65>
441         ln -fs libafs.IP20.a       ${DESTDIR}${afskerneldir}/libafs.IP22.a
442         ln -fs libafs.IP20.a       ${DESTDIR}${afskerneldir}/libafs.IP32.a
443         ln -fs libafs.IP20.nonfs.a ${DESTDIR}${afskerneldir}/libafs.IP22.nonfs.a
444         ln -fs libafs.IP20.nonfs.a ${DESTDIR}${afskerneldir}/libafs.IP32.nonfs.a
445         ln -fs libafs.IP20.o       ${DESTDIR}${afskerneldir}/libafs.IP22.o
446         ln -fs libafs.IP20.o       ${DESTDIR}${afskerneldir}/libafs.IP32.o
447         ln -fs libafs.IP20.nonfs.o ${DESTDIR}${afskerneldir}/libafs.IP22.nonfs.o
448         ln -fs libafs.IP20.nonfs.o ${DESTDIR}${afskerneldir}/libafs.IP32.nonfs.o
449 <all>
450
451 # Create symlinks to clients we don't need to build.
452 # If this changes, also change the kdump symlinks.
453 dest_LINKFILES:
454 <sgi_65>
455         ln -fs  libafs.IP20.a       ${DEST}/root.client/bin/libafs.IP22.a
456         ln -fs  libafs.IP20.a       ${DEST}/root.client/bin/libafs.IP32.a
457         ln -fs  libafs.IP20.nonfs.a ${DEST}/root.client/bin/libafs.IP22.nonfs.a
458         ln -fs  libafs.IP20.nonfs.a ${DEST}/root.client/bin/libafs.IP32.nonfs.a
459         ln -fs  libafs.IP20.o       ${DEST}/root.client/usr/vice/etc/sgiload/libafs.IP22.o
460         ln -fs  libafs.IP20.o       ${DEST}/root.client/usr/vice/etc/sgiload/libafs.IP32.o
461         ln -fs  libafs.IP20.nonfs.o ${DEST}/root.client/usr/vice/etc/sgiload/libafs.IP22.nonfs.o
462         ln -fs  libafs.IP20.nonfs.o ${DEST}/root.client/usr/vice/etc/sgiload/libafs.IP32.nonfs.o