Annotation of sys/arch/sparc/stand/Makefile.inc, Revision 1.1.1.1
1.1 nbrk 1: # $OpenBSD: Makefile.inc,v 1.13 2005/12/30 02:03:49 millert Exp $
2: # $NetBSD: Makefile.inc,v 1.5 1996/02/01 22:33:01 mycroft Exp $
3:
4: BINDIR= /usr/mdec
5:
6: RELOC_TEST= 0x340000
7: RELOC_SUN4= 0x240000
8: RELOC_SUN4C= 0x380000
9: RELOC_SUN4M= 0x440000
10:
11: # Note: a `RELOC' value of 0x380000 seems to work on most machines
12: RELOC?= ${RELOC_TEST}
13: RELOC2!= perl -e 'printf "0x%x", ${RELOC_TEST} + 0x40000'
14:
15: CFLAGS+= -fno-stack-protector
16:
17: DEFS= -DSTANDALONE -DRELOC=${RELOC} -DSUN4 -DSUN4C -DSUN_BOOTPARAMS
18:
19: ### Figure out what to use for libkern
20: LIBKERNDIR= ${.CURDIR}/../libkern
21:
22: .if exists(${LIBKERNDIR}/obj.${MACHINE})
23: LIBKERNOBJDIR= ${LIBKERNDIR}/obj.${MACHINE}
24: .elif exists(${LIBKERNDIR}/obj)
25: LIBKERNOBJDIR= ${LIBKERNDIR}/obj
26: .else
27: LIBKERNOBJDIR= ${LIBKERNDIR}
28: .endif
29:
30: LIBKERN= ${LIBKERNOBJDIR}/libkern.a
31:
32: ### Figure out what to use for libsa
33: LIBSADIR= ${.CURDIR}/../libsa
34:
35: .if exists(${LIBSADIR}/obj.${MACHINE})
36: LIBSAOBJDIR= ${LIBSADIR}/obj.${MACHINE}
37: .elif exists(${LIBSADIR}/obj)
38: LIBSAOBJDIR= ${LIBSADIR}/obj
39: .else
40: LIBSAOBJDIR= ${LIBSADIR}
41: .endif
42:
43: LIBSA= ${LIBSAOBJDIR}/libsa.a
44:
45: ### Figure out what to use for libz
46: LIBZDIR= ${.CURDIR}/../libz
47:
48: .if exists(${LIBZDIR}/obj.${MACHINE})
49: LIBZOBJDIR= ${LIBZDIR}/obj.${MACHINE}
50: .elif exists(${LIBZDIR}/obj)
51: LIBZOBJDIR= ${LIBZDIR}/obj
52: .else
53: LIBZOBJDIR= ${LIBZDIR}
54: .endif
55:
56: LIBZ= ${LIBZOBJDIR}/libz.a
CVSweb