Home | History | Annotate | Line # | Download | only in stand
Makefile.buildboot revision 1.5.2.1
      1 #	$NetBSD: Makefile.buildboot,v 1.5.2.1 2000/02/22 23:06:31 he Exp $
      2 
      3 S=	${.CURDIR}/../../../..
      4 
      5 .PATH: ${.CURDIR}/../common ${.CURDIR}/../../sparc
      6 
      7 COMMONSOURCE=	srt0.S promdev.c dvma.c promlib.c
      8 
      9 SRCS=		${COMMONSOURCE} ${PROGSOURCE}
     10 MKMAN=		no
     11 BINMODE=	444
     12 
     13 RELOCS=		200000 300000 400000 700000
     14 # Note: a `RELOC' value of 0x300000 seems to work on most machines
     15 RELOC_DEFAULT?=	300000
     16 # `bootxx' is linked at a different address to circumvent i-cache
     17 # flushing issues on Hypersparcs
     18 RELOC_BOOTXX=	340000
     19 
     20 # Note: a `RELOC' value of 0x340000 seems to work on most machines
     21 RELOC?=		${RELOC_SUN4C}
     22 
     23 CPPFLAGS+=	-D_STANDALONE -DRELOC=${RELOC} -DSUN4 -DSUN4C -DSUN_BOOTPARAMS
     24 
     25 CPPFLAGS+=	-I. -I${.CURDIR}/../../.. -I${.CURDIR}/../../../..
     26 CFLAGS=		-O2
     27 CFLAGS+=	-Wall -Wstrict-prototypes -Wmissing-prototypes
     28 
     29 ### find out what to use for libkern
     30 KERN_AS=	library
     31 .include "${S}/lib/libkern/Makefile.inc"
     32 LIBKERN=	${KERNLIB}
     33 
     34 .ifdef INCLUDE_LIBZ
     35 ### find out what to use for libz
     36 Z_AS=		library
     37 .include "${S}/lib/libz/Makefile.inc"
     38 LIBZ=		${ZLIB}
     39 .endif
     40 
     41 ### find out what to use for libsa
     42 SA_AS=		library
     43 .include "${S}/lib/libsa/Makefile.inc"
     44 LIBSA=		${SALIB}
     45 
     46 .BEGIN:
     47 	@([ -h machine ] || ln -s ${S}/arch/${MACHINE}/include machine)
     48