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
9 include @TOP_OBJDIR@/src/config/Makefile.config
11 INSTALL_DATA = @INSTALL_DATA@
12 INSTALL_PROGRAM = @INSTALL_PROGRAM@
13 INSTALL_SCRIPT = @INSTALL_SCRIPT@
16 # OS specific object files:
36 # System specific build commands and flags
47 # Turning off warnings regarding constant conditionals and not prototyped.
48 KDEFS=-D_K64U64 -D_KERNEL -DSTATIC=static -D_PAGESZ=16384 -D_MIPS3_ADDRSPACE \
49 -DTFP -non_shared -elf -xansi -64 -mips4 -TENV:kernel \
50 -TENV:misalignment=1 -OPT:space \
51 -D${CPUBOARD} -D${MPSP} -D${CPUARCH} -DAFS_SGIMP_ENV ${NODYNOPT} \
52 -jalr -woff 1209,1196,1496
54 # Turning off warnings regarding constant conditionals and not prototyped.
55 KDEFS_64BIT= -64 -D_K64U64 -D_PAGESZ=16384 -TENV:kernel -OPT:space \
57 R4000_LDFLAGS = -mips3 -64
58 R4000_KDEFS = -mips3 -DR4000_DADDIU_WAR -DFAST_LOCORE_TFAULT -DUSE_LGPAGES \
59 -DR4000 -DEVEREST -DBADVA_WAR -DMP_R4000_BADVA_WAR \
60 -DECC_RECOVER -DCLOCK_CTIME_IS_ABSOLUTE -D_SHAREII -D_HIBERNATORII \
61 -DPIOMEMOPS -DULI ${KDEFS_64BIT}
62 R8000_KDEFS = -mips4 -DTFP -DR8000 ${KDEFS_64BIT}
63 R8000_LDFLAGS = -mips4 -64
64 KDEFS= -I/usr/include -I/usr/include/sys -D_KERNEL -DSTATIC=static \
65 -D_MIPS3_ADDRSPACE -non_shared -elf -xansi \
67 -D${CPUBOARD} -D${MPSP} -DAFS_SGIMP_ENV ${NODYNOPT} \
68 -jalr -woff 1209,1196,1496
69 R10000_KDEFS = -mips4 -DR10000 -DEXPRESS -DIP28 -DI2_64 -DFAST_LOCORE_FAULT \
70 -DSCACHE_SET_ASSOC=2 -D_NO_UNCACHED_MEM_WAR -DMIPS4_ISA \
71 -DR10000_SPECULATION_WAR \
72 -OPT:quad_align_branch_targets=FALSE \
73 -OPT:quad_align_with_memops=FALSE -OPT:unroll_times=0 \
74 -DDEFAULTSEMAMETER=1 ${KDEFS_64BIT}
75 R10000_LDFLAGS = -mips4 -64
76 R4000_32_LDFLAGS = -mips2 -o32
77 R4000_32_KDEFS = -mips2 -o32 -elf -DEXPRESS -D_K32U64 -xansi\
78 -D_PAGESZ=4096 -D_KERNEL \
79 -DSTATIC=static -DBADVA_WAR -DJUMP_WAR -DPROBE_WAR -D_MEM_PARITY_WAR \
80 -D_TLB_LOOP_LIMIT -DTLBMOD_BADVADDR_WAR -D_VCE_AVOIDANCE \
81 -D_R4600_CACHEOP_WAR -D_R4600_2_0_CACHEOP_WAR -D_IRIX5_MIPS3 \
82 -D_IRIX5_MIPS4 -D_R5000_BADVADDR_WAR -D_R5000_JUMP_WAR -DMIPS4_ISA \
83 -DR4000 -DR4000PC -DR4600 -DR4600SC -DTRITON -DTRITON_INDYSC \
84 -Wc,-pic0 -fullwarn -non_shared -nostdinc -Wf,-XNp12000 \
85 -woff 1685,515,608,658,799,803,835,852,1048,1233,1499,1501 \
88 # Turning off warnings regarding constant conditionals and not prototyped.
89 # NOTE: Only for R5000 at the moment.
90 KDEFS= -I/usr/include -I/usr/include/sys -D_KERNEL -DSTATIC=static \
91 -non_shared -elf -xansi \
93 -D${CPUBOARD} -D${MPSP} -DAFS_SGIMP_ENV ${NODYNOPT} \
94 -jalr -woff 1209,1196,1496
95 R5000_LDFLAGS = -mips2 -o32
96 R5000_KDEFS = -DCRIME -DIP32 -DCRM -D_K32U64 -xansi -D_PAGESZ=4096 \
97 -D_KERNEL -DSTATIC=static -DPROBE_WAR -D_VCE_AVOIDANCE -DTILE_DATA \
98 -D_VCE_AVOIDANCE_DEBUG -D_R4600_CACHEOP_WAR -D_TLB_LOOP_LIMIT \
99 -D_R4600_2_0_CACHEOP_WAR -DP0_WAR -D_IRIX5_MIPS4 -D_IRIX5_MIPS3 \
100 -D_R5000_BADVADDR_WAR -DMIPS4_ISA -DSW_FAST_CACHE_SYNCH -DSWASH \
101 -D_R5000_CVT_WAR=1 -D_MTEXT_VFS -DR4000 -DR4000PC -DR4600 \
102 -DR4600SC -DTRITON -g -elf -mips2 -fullwarn -non_shared -nostdinc \
103 -mips2 -o32 -woff 1685,515,608,658,799,803,852,1048,1233,1499,1501 \
104 -Wf,-XNp12000 -DDEFAULTSEMAMETER=1
105 R10000_LDFLAGS = -mips2 -o32
106 R10000_KDEFS = -DCRIME -DIP32 -DCRM -D_K32U64 -xansi -D_K32U64 -D_PAGESZ=4096 \
107 -D_KERNEL -DSTATIC=static -D_VCE_AVOIDANCE -DTILE_DATA \
108 -DTLBMOD_BADVADDR_WAR -D_VCE_AVOIDANCE_DEBUG -D_TLB_LOOP_LIMIT \
109 -DP0_WAR -D_IRIX5_MIPS4 -D_IRIX5_MIPS3 -D_R5000_BADVADDR_WAR \
110 -DMIPS4_ISA -DSW_FAST_CACHE_SYNCH -DSWASH -DSCACHE_SET_ASSOC=2 \
111 -D_R5000_CVT_WAR=1 -D_MTEXT_VFS -DR10000_SPECULATION_WAR \
112 -DMH_R10000_SPECULATION_WAR -DSP -DIP32 -DR4000 -DR4000PC -DR4600 \
113 -DR4600SC -DTRITON -DR10000 -D_NO_R4000 -g -elf -mips2 -fullwarn \
114 -non_shared -nostdinc -mips2 -o32 \
115 -woff 1685,515,608,658,799,803,852,1048,1233,1499,1501 \
116 -Wf,-XNp12000 -DDEFAULTSEMAMETER=1
118 KDEFS= -I/usr/include -I/usr/include/sys -D_KERNEL -DSTATIC=static \
119 -non_shared -elf -xansi \
121 -D${CPUBOARD} -D${MPSP} -DAFS_SGIMP_ENV ${NODYNOPT} \
122 -jalr -woff 1209,1196,1496
123 R10000_LDFLAGS = -mips4 -64
124 R10000_KDEFS = -DKONA -DIP27 -DIP27 -DDISCONTIG_PHYSMEM -DNUMA_BASE -DNUMA_PM \
125 -DNUMA_TBORROW -DNUMA_MIGR_CONTROL -DNUMA_REPLICATION \
126 -DNUMA_REPL_CONTROL -DNUMA_SCHED -DLARGE_CPU_COUNT -DHUB2_NACK_WAR \
127 -DBRIDGE_ERROR_INTR_WAR -DMAPPED_KERNEL -DBHV_SYNCH -DHUB_ERR_STS_WAR \
128 -DHUB_MIGR_WAR -DNCR16C550 -DTL16PIR552 -DSN0_INTR_BROKEN -DFRU \
129 -DFORCE_ERRORS -DSN0_USE_BTE -DBTE_BZERO_WAR -DREV1_BRIDGE_SUPPORTED \
130 -DHUB_II_IFDR_WAR -xansi -DDISCONTIG_PHYSMEM -DNUMA_BASE -DNUMA_PM \
131 -DNUMA_TBORROW -DNUMA_MIGR_CONTROL -DNUMA_REPLICATION \
132 -DNUMA_REPL_CONTROL -DNUMA_SCHED -DLARGE_CPU_COUNT -DHUB2_NACK_WAR \
133 -DBRIDGE_ERROR_INTR_WAR -DMAPPED_KERNEL -DBHV_SYNCH \
134 -DHUB_ERR_STS_WAR -DHUB_MIGR_WAR -DNCR16C550 -DTL16PIR552 \
135 -DSN0_INTR_BROKEN -DFRU -DFORCE_ERRORS -DSN0_USE_BTE -DBTE_BZERO_WAR \
136 -DREV1_BRIDGE_SUPPORTED -DHUB_II_IFDR_WAR -D_PAGESZ=16384 -D_KERNEL \
137 -DSTATIC=static -D_MIPS3_ADDRSPACE -DSN0 -DMIPS4_ISA \
138 -DCLOCK_CTIME_IS_ABSOLUTE -DFAST_LOCORE_TFAULT -DULI -DCKPT \
139 -DIDLESTACK_FASTINT -DR10K_LLSC_WAR -DPTE_64BIT -DRMAPS \
140 -DPAGE_MIGRATION -DSW_FAST_CACHE_SYNCH -DINTR_KTHREADS \
141 -DMRSP_AS_MR -D_MP_NETLOCKS -DMP_STREAMS=1 -DIP27 -DR10000 \
142 -g -TENV:kernel -TENV:misalignment=1 -OPT:space \
143 -OPT:quad_align_branch_targets=FALSE \
144 -OPT:quad_align_with_memops=FALSE \
145 -OPT:unroll_times=0 -OPT:Olimit=5000 -TARG:processor=r10000 \
146 -FE:pointer_readonly -use_readonly_const -fullwarn \
147 -non_shared -mips4 -64 \
148 -woff 1685,515,608,658,799,803,852,1048,1233,1499,1501 \
151 # For Irix 6.5 we are building based on cpu board number rather than CPU number
152 # While -G 8 is recommended for space, we know that the table overflows when
153 # both AFS and DFS are compiled into the kernel. For Irix 6.5, define MP
154 # so we pick up locks.
157 # http://techpubs.sgi.com/library/tpl/cgi-bin/getdoc.cgi?coll=0650&db=man&fname=/usr/share/catman/u_man/cat1/cc.z&srch=cc
159 KDEFS= -I/usr/include -I/usr/include/sys -DSTATIC=static -DAFS_SGIMP_ENV \
160 -DMP -D_KERNEL -DMP_STREAMS -D_MP_NETLOCKS -DMRSP_AS_MR \
161 ${CPU_KDEFS} -fullwarn -non_shared -G 0 \
162 -TENV:kernel -OPT:space -OPT:Olimit=0 -CG:unique_exit=on \
163 -TENV:X=1 -OPT:IEEE_arithmetic=1 -OPT:roundoff=0 \
164 -OPT:wrap_around_unsafe_opt=off \
166 # 32 bit specific flags:
167 KDEFS_32 = -n32 -D_PAGESZ=4096 -mips3
168 # 64 bit specific flags:
169 KDEFS_64 = -64 -D_PAGESZ=16384 -D_MIPS3_ADDRSPACE -mips4
171 # CPU board specific flags:
172 # To get more help on all board/cpu combinations see http://sgistuff.g-lenerz.de/machines.html
174 #IP19 (Challenge DM/L/XL, Onyx) CPU's R4000, R4400
175 IP19_KDEFS = -DIP19 -DEVEREST -DMP -DR4000 \
176 -D_PAGESZ=16384 -D_MIPS3_ADDRSPACE -TARG:platform=ip19:processor=r4000 $(KDEFS_32)
177 #IP20 (Indigo) CPU's R4000
178 IP20_KDEFS = -DIP20 -DR4000 -DJUMP_WAR -DBADVA_WAR -DTRITON -DUSE_PCI_PIO \
179 -D_R5000_CVT_WAR=1 -DCKPT -D_MTEXT_VFS -Ofast=ip20 $(KDEFS_32)
180 #IP21 (Power Challenge DM/L/XL, Power Onyx) R8000
181 IP21_KDEFS = -DIP21 -DEVEREST -DMP -DTFP -TARG:processor=r8000 -Ofast=ip21 $(KDEFS_64)
182 #IP22 (Indigo 2, Challenge M) CPU's R4000, R4400, R4600 (and by bug in hinv(1) also Indy IP24 machines with R4x00)
183 # -Ofast=ip22_4k is same as -TARG:ip22_4k -O3 -IPA -OPT:roundoff=3:Olimit=0:div_split=on:alias=typed
184 # when -Ofast used on IP24 Indy, the STATIC.*/libafs*.a claims to be 64-bit and /etc/refuses to build the
185 # object in the kernel.
186 IP22_4K_KDEFS = -DIP20 -DR4000 -DJUMP_WAR -DBADVA_WAR -DTRITON -DUSE_PCI_PIO \
187 -D_R5000_CVT_WAR=1 -DCKPT -D_MTEXT_VFS -TARG:platform=ip22_4k:processor=r4000 $(KDEFS_32)
188 IP22_5K_KDEFS = -DIP20 -DR4000 -DJUMP_WAR -DBADVA_WAR -DTRITON -DUSE_PCI_PIO \
189 -D_R5000_CVT_WAR=1 -DCKPT -D_MTEXT_VFS -TARG:platform=ip22_5k:processor=r5000 $(KDEFS_32)
190 #IP24 (Indy, Challenge S) is reported by hinv(1) as IP22, CPU's R4000, R4400, R4600, R5000
191 # therefore same as IP22
192 #IP25 (Power Challenge L/XL, Power Onyx) CPU's R10000
193 IP25_KDEFS = -DIP25 -DEVEREST -DMP -DR10000 -Ofast=ip25 -TARG:processor=r10000 $(KDEFS_64)
194 #IP26 (Power Challenge M, Power Indigo 2) CPU's R8000
195 IP26_KDEFS = -DIP26 -DTFP -TARG:sync=off -Ofast=ip26 -TARG:processor=r8000 $(KDEFS_64)
196 #IP27 (Origin 200, Origin 2000, Onyx 2, Origin 3000) CPU's R10000, R12000
197 IP27_KDEFS = -DIP27 -DR10000 -DMP -DSN -DSN0 -DMAPPED_KERNEL \
199 -DPTE_64BIT -DULI -DCKPT -DMIPS4_ISA -DR10K_LLSC_WAR -DNUMA_BASE \
200 -DNUMA_PM -DNUMA_TBORROW -DNUMA_MIGR_CONTROL -DNUMA_REPLICATION \
201 -DNUMA_REPL_CONTROL -DNUMA_SCHED -DCELL_PREPARE -DBHV_PREPARE \
202 -Ofast=ip27 -TARG:processor=r10000 $(KDEFS_64)
203 #IP28 (Indigo 2), CPU's R10000
204 IP28_KDEFS = -DIP28 -DR10000 -DSCACHE_SET_ASSOC=2 -D_NO_UNCACHED_MEM_WAR \
205 -DR10000_SPECULATION_WAR -Ofast=ip28 -TARG:processor=r10000 \
206 -TARG:t5_no_spec_stores $(KDEFS_64)
207 #IP30 (Octane and Octane 2) CPU's R10000, R12000, R14000 (and by bug also Indy IP24 with R5000)
208 IP30_KDEFS = -DIP30 -DR10000 -DMP -DCELL_PREPARE -DBHV_PREPARE \
209 -Ofast=ip30 -TARG:processor=r10000 $(KDEFS_64)
210 #IP32 (O2 and O2+) CPU's R5000, R10000, R12000
211 IP32_5K_KDEFS = -DIP20 -DR4000 -DJUMP_WAR -DBADVA_WAR -DTRITON -DUSE_PCI_PIO \
212 -D_PAGESZ=16384 -D_MIPS3_ADDRSPACE -Ofast=ip32_5k $(KDEFS_64)
213 IP32_10K_KDEFS = -DIP20 -DR4000 -DJUMP_WAR -DBADVA_WAR -DTRITON -DUSE_PCI_PIO \
214 -D_PAGESZ=16384 -D_MIPS3_ADDRSPACE -Ofast=ip32_10k $(KDEFS_64)
215 #IP35 (Fuel, Origin 3000) CPU's R14000, R16000
216 IP35_KDEFS = -DIP35 -DR10000 -DMP -DSN -DSN1 -DMAPPED_KERNEL \
218 -DPTE_64BIT -DULI -DCKPT -DMIPS4_ISA -DNUMA_BASE \
219 -DNUMA_PM -DNUMA_TBORROW -DNUMA_MIGR_CONTROL -DNUMA_REPLICATION \
220 -DNUMA_REPL_CONTROL -DNUMA_SCHED -DCELL_PREPARE -DBHV_PREPARE \
221 -Ofast=ip35 $(KDEFS_64)
222 #IP53 (Tezro) CPU's R16000
224 LDFLAGS_64 = -64 -IPA
225 LDFLAGS_32 = -n32 -IPA
229 DEFINES= -DAFSDEBUG -DKERNEL -DAFS -DVICE -DNFS -DUFS -DINET -DQUOTA -DGETMOUNT
232 CFLAGS=-I. -I.. -I${TOP_OBJDIR}/src/config ${FSINCLUDES} $(DEFINES) -G 0 $(KDEFS) $(KOPTS) ${DBUG}
234 # This tells Makefile.common to use it's single directory build target.
235 #COMPDIRS = single_compdir
236 # This is the irix multiple directory target.
237 COMPDIRS = irix_compdirs
238 INSTDIRS = irix_instdirs
239 DESTDIRS = irix_destdirs
241 include Makefile.common
243 # Make all the directories, even if only building one.
245 PROCESSORS=R4000 R4000_32 R8000 R10000
247 PROCESSORS = R5000 R1000
251 PROCESSORS = IP19 IP20 IP21 IP22_4K IP22_5K IP25 IP26 IP27 IP28 IP30 IP32_5K IP32_10K @IRIX_BUILD_IP35@
254 KOBJ = STATIC MODLOAD
258 -$(RM) -f h net netinet rpc ufs nfs machine sys
259 -ln -fs /usr/include/sys h
260 -ln -fs /usr/include/net /usr/include/netinet .
261 -ln -fs /usr/include/rpc /usr/include/sys .
262 -ln -fs /usr/include/sys/fs .
264 BUILDPROCS="${PROCESSORS}" ; \
265 BUILDMPS="${MPS}" ; \
266 if [ "${CPUARCH}" != "" ] ; then \
267 BUILDPROCS=${CPUARCH}; \
270 for p in $${BUILDPROCS} ; do \
271 for n in $${BUILDMPS} ; do \
272 for t in ${KOBJ} ; do \
274 echo Making directory: $$dir; \
276 $(RM) -f $$dir/Makefile.common $$dir/Makefile $$dir/config; \
277 ln -fs ../Makefile.common $$dir/Makefile.common; \
278 ln -fs ../Makefile $$dir/Makefile; \
279 ln -fs ../config $$dir/config; \
284 BUILDPROCS="${PROCESSORS}" ; \
285 if [ "${IPNO}" != "" ] ; then \
286 BUILDPROCS="${IPNO}"; \
288 for p in $${BUILDPROCS} ; do \
289 for t in ${KOBJ} ; do \
291 echo Making directory: $$dir; \
293 $(RM) -f $$dir/Makefile.common $$dir/Makefile $$dir/config; \
294 ln -fs ../Makefile.common $$dir/Makefile.common; \
295 ln -fs ../Makefile $$dir/Makefile; \
296 ln -fs ../config $$dir/config; \
303 # Compile static and modload versions of the clients.
305 ${COMPDIRS} ${INSTDIRS} ${DESTDIRS}:
306 BUILDPROCS="${PROCESSORS}" ; \
307 if [ "${CPUARCH}" != "" ] ; then \
308 BUILDPROCS=${CPUARCH}; \
311 for p in $${BUILDPROCS} ; do \
312 for n in $${BUILDMPS} ; do \
313 for t in ${KOBJ} ; do \
315 echo Building directory: $$dir; \
319 CPU_KDEFS="${R4000_KDEFS}"; \
320 LDFLAGS="${R4000_LDFLAGS}";; \
323 CPU_KDEFS="${R4000_32_KDEFS}"; \
324 LDFLAGS="${R4000_32_LDFLAGS}";; \
327 CPU_KDEFS="${R5000_KDEFS}"; \
328 LDFLAGS="${R5000_LDFLAGS}";; \
331 CPU_KDEFS="${R8000_KDEFS}"; \
332 LDFLAGS="${R8000_LDFLAGS}";; \
340 <sgi_62 sgi_63 sgi_64>
341 CPU_KDEFS="${R10000_KDEFS}"; \
342 LDFLAGS="${R10000_LDFLAGS}";; \
343 *) echo "Unknown CPUARCH <$$p>" ; exit 1 ;; \
349 $(MAKE) CPUARCH=$$p MPSP=$$n $@_$$t.libafs || exit $$?;\
355 ${COMPDIRS} ${INSTDIRS} ${DESTDIRS}:
356 BUILDPROCS="${PROCESSORS}" ; \
357 if [ "${IPNO}" != "" ] ; then \
358 BUILDPROCS="${IPNO}"; \
360 for p in $${BUILDPROCS} ; do \
361 for t in ${KOBJ} ; do \
363 echo Building directory: $$dir; \
365 IP19) CPU_KDEFS="${IP19_KDEFS}"; \
366 CPU_LDFLAGS="${LDFLAGS_32}";; \
367 IP20) CPU_KDEFS="${IP20_KDEFS}"; \
368 CPU_LDFLAGS="${LDFLAGS_32}";; \
369 IP21) CPU_KDEFS="${IP21_KDEFS}"; \
370 CPU_LDFLAGS="${LDFLAGS_64}";; \
371 IP22_4K) CPU_KDEFS="${IP22_4K_KDEFS}"; \
372 CPU_LDFLAGS="${LDFLAGS_32}";; \
373 IP22_5K) CPU_KDEFS="${IP22_5K_KDEFS}"; \
374 CPU_LDFLAGS="${LDFLAGS_32}";; \
375 IP25) CPU_KDEFS="${IP25_KDEFS}"; \
376 CPU_LDFLAGS="${LDFLAGS_64}";; \
377 IP26) CPU_KDEFS="${IP26_KDEFS}"; \
378 CPU_LDFLAGS="${LDFLAGS_64}";; \
379 IP27) CPU_KDEFS="${IP27_KDEFS}"; \
380 CPU_LDFLAGS="${LDFLAGS_64}";; \
381 IP28) CPU_KDEFS="${IP28_KDEFS}"; \
382 CPU_LDFLAGS="${LDFLAGS_64}";; \
383 IP30) CPU_KDEFS="${IP30_KDEFS}"; \
384 CPU_LDFLAGS="${LDFLAGS_64}";; \
385 IP32_5K) CPU_KDEFS="${IP32_5K_KDEFS}"; \
386 CPU_LDFLAGS="${LDFLAGS_64}";; \
387 IP32_10K) CPU_KDEFS="${IP32_10K_KDEFS}"; \
388 CPU_LDFLAGS="${LDFLAGS_64}";; \
389 IP35) CPU_KDEFS="${IP35_KDEFS}"; \
390 CPU_LDFLAGS="${LDFLAGS_64}";; \
391 *) echo Unknown IP number $$p ; exit 1 ;; \
394 MODLOAD) CPU_KDEFS="$${CPU_KDEFS} -TARG:force_jalr";; \
397 STATIC) echo X $${CPU_KDEFS} | sed 's/^X//' > $$dir/CPU_KDEFS;; \
400 export CPU_LDFLAGS ;\
402 $(MAKE) LDFLAGS="$${CPU_LDFLAGS}" IPNO=$$p $@_$$t.libafs || exit $$?; \
408 irix_compdirs_STATIC.libafs: depsrcs STATIC.libafs
409 irix_compdirs_MODLOAD.libafs: depsrcs MODLOAD.libafs
410 irix_instdirs_STATIC.libafs: install_STATIC.libafs
411 irix_instdirs_MODLOAD.libafs: install_MODLOAD.libafs
412 irix_destdirs_STATIC.libafs: dest_STATIC.libafs
413 irix_destdirs_MODLOAD.libafs: dest_MODLOAD.libafs
417 ${INSTDIRS}: install_COPYFILES install_LINKFILES
418 ${DESTDIRS}: dest_COPYFILES dest_LINKFILES
422 LIBAFSNONFSA = libafs.nonfs.a
424 STATIC.libafs: ${LIBAFSNONFSA}
426 install_STATIC.libafs: ${LIBAFSNONFSA}
428 ${CP} ${LIBAFSNONFSA} \
429 ${DESTDIR}${afskerneldir}/libafs.${MPSP}.${CPUARCH}.nonfs.a
431 ${CP} ${LIBAFSNONFSA} \
432 ${DESTDIR}${afskerneldir}/libafs.${IPNO}.nonfs.a
435 dest_STATIC.libafs: ${LIBAFSNONFSA}
437 ${CP} ${LIBAFSNONFSA} \
438 ${DEST}/root.client/bin/libafs.${MPSP}.${CPUARCH}.nonfs.a
440 ${CP} ${LIBAFSNONFSA} \
441 ${DEST}/root.client/bin/libafs.${IPNO}.nonfs.a
444 ${LIBAFSNONFSA}: $(AFSAOBJS) $(AFSNONFSOBJS)
448 LIBAFSNONFSO = libafs.nonfs.o
450 # MODLOAD.libafs: ${LIBAFSNONFSO} ${COPYFILES} ${LINKFILES}
451 MODLOAD.libafs: ${LIBAFSNONFSO}
453 install_MODLOAD.libafs: ${LIBAFSNONFSO}
455 ${CP} ${LIBAFSNONFSO} \
456 ${DESTDIR}${afskerneldir}/libafs.${MPSP}.${CPUARCH}.nonfs.o
458 ${CP} ${LIBAFSNONFSO} \
459 ${DESTDIR}${afskerneldir}/libafs.${IPNO}.nonfs.o
462 dest_MODLOAD.libafs: ${LIBAFSNONFSO}
464 ${CP} ${LIBAFSNONFSO} \
465 ${DEST}/root.client/usr/vice/etc/sgiload/libafs.${MPSP}.${CPUARCH}.nonfs.o
467 ${CP} ${LIBAFSNONFSO} \
468 ${DEST}/root.client/usr/vice/etc/sgiload/libafs.${IPNO}.nonfs.o
471 ${LIBAFSNONFSO}: $(AFSAOBJS) $(AFSNONFSOBJS)
472 $(LD) ${LDFLAGS} -elf -r -d -G 0 -o ${LIBAFSNONFSO} \
473 $(AFSAOBJS) $(AFSNONFSOBJS)
477 ${CP} sgi_system ${DESTDIR}${afskerneldir}/afs.sm
478 chmod 644 ${DESTDIR}${afskerneldir}/afs.sm
479 ${CP} sgi_master ${DESTDIR}${afskerneldir}/afs
480 chmod 644 ${DESTDIR}${afskerneldir}/afs
483 ${INSTALL} -d ${DEST}/root.client/bin
484 ${INSTALL} -m 644 sgi_system ${DEST}/root.client/bin/afs.sm
485 ${INSTALL} -m 644 sgi_master ${DEST}/root.client/bin/afs
487 # Create symlinks to clients we don't need to build.
488 # If this changes, also change the kdump symlinks.
491 echo "Now we support also IP22_4K, IP22_5K, IP32_5K, IP32_10K cpu boards."
494 # Create symlinks to clients we don't need to build.
495 # If this changes, also change the kdump symlinks.
498 ln -fs libafs.IP20.a ${DEST}/root.client/bin/libafs.IP22.a
499 ln -fs libafs.IP20.a ${DEST}/root.client/bin/libafs.IP32.a
500 ln -fs libafs.IP20.nonfs.a ${DEST}/root.client/bin/libafs.IP22.nonfs.a
501 ln -fs libafs.IP20.nonfs.a ${DEST}/root.client/bin/libafs.IP32.nonfs.a
502 ln -fs libafs.IP20.o ${DEST}/root.client/usr/vice/etc/sgiload/libafs.IP22.o
503 ln -fs libafs.IP20.o ${DEST}/root.client/usr/vice/etc/sgiload/libafs.IP32.o
504 ln -fs libafs.IP20.nonfs.o ${DEST}/root.client/usr/vice/etc/sgiload/libafs.IP22.nonfs.o
505 ln -fs libafs.IP20.nonfs.o ${DEST}/root.client/usr/vice/etc/sgiload/libafs.IP32.nonfs.o