Makefile.buildboot revision 1.14 1 # $NetBSD: Makefile.buildboot,v 1.14 2000/10/20 11:21:08 pk 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 # Note: relocating `boot' at 0x3C8000 seems to work on most machines
14 RELOC_DEFAULT?= 3C8000
15 RELOCS= $(RELOC_DEFAULT)
16 #RELOCS+= 200000 400000 700000 # additional link addresses
17
18 # `bootxx' is linked at a different address to circumvent i-cache
19 # flushing issues on Hypersparcs
20 RELOC_BOOTXX= 300000
21
22 CPPFLAGS+= -D_STANDALONE -DSUN4 -DSUN4C -DHEAP_VARIABLE
23
24 CPPFLAGS+= -I. -I${.CURDIR}/../../.. -I${.CURDIR}/../../../..
25 CFLAGS= -O2
26 CFLAGS+= -Wall -Wstrict-prototypes -Wmissing-prototypes
27
28 ### find out what to use for libkern
29 KERN_AS= library
30 .include "${S}/lib/libkern/Makefile.inc"
31 LIBKERN= ${KERNLIB}
32
33 .ifdef INCLUDE_LIBZ
34 ### find out what to use for libz
35 Z_AS= library
36 .include "${S}/lib/libz/Makefile.inc"
37 LIBZ= ${ZLIB}
38 .endif
39
40 ### find out what to use for libsa
41 SA_AS= library
42 SAMISCMAKEFLAGS+="SA_USE_LOADFILE=yes"
43 .include "${S}/lib/libsa/Makefile.inc"
44 LIBSA= ${SALIB}
45
46 .if !make(obj)
47 .BEGIN:
48 @([ -h machine ] || ln -s ${S}/arch/${MACHINE}/include machine)
49 .NOPATH: machine
50 CLEANFILES+= machine
51 .endif
52