Makefile.buildboot revision 1.9 1 # $NetBSD: Makefile.buildboot,v 1.9 2000/01/23 17:04:10 mycroft 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 RELOC_SUN4= 0x240000
14 RELOC_SUN4C= 0x340000
15 RELOC_SUN4M= 0x440000
16
17 # Note: a `RELOC' value of 0x340000 seems to work on most machines
18 RELOC?= ${RELOC_SUN4C}
19
20 CPPFLAGS+= -D_STANDALONE -DRELOC=${RELOC} -DSUN4 -DSUN4C -DSUN_BOOTPARAMS\
21 -DHEAP_VARIABLE
22
23 CPPFLAGS+= -I. -I${.CURDIR}/../../.. -I${.CURDIR}/../../../..
24 CFLAGS= -O2
25 CFLAGS+= -Wall -Wstrict-prototypes -Wmissing-prototypes
26
27 ### find out what to use for libkern
28 KERN_AS= library
29 .include "${S}/lib/libkern/Makefile.inc"
30 LIBKERN= ${KERNLIB}
31
32 .ifdef INCLUDE_LIBZ
33 ### find out what to use for libz
34 Z_AS= library
35 .include "${S}/lib/libz/Makefile.inc"
36 LIBZ= ${ZLIB}
37 .endif
38
39 ### find out what to use for libsa
40 SA_AS= library
41 SAMISCMAKEFLAGS+="SA_USE_LOADFILE=yes"
42 .include "${S}/lib/libsa/Makefile.inc"
43 LIBSA= ${SALIB}
44
45 .if !make(obj)
46 .BEGIN:
47 @([ -h machine ] || ln -s ${S}/arch/${MACHINE}/include machine)
48 .NOPATH: machine
49 CLEANFILES+= machine
50 .endif
51