Makefile.buildboot revision 1.6 1 # $NetBSD: Makefile.buildboot,v 1.6 1999/04/28 15:22:25 christos 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
22 CPPFLAGS+= -I. -I${.CURDIR}/../../.. -I${.CURDIR}/../../../..
23 CFLAGS= -O2
24 CFLAGS+= -Wall -Wstrict-prototypes -Wmissing-prototypes
25
26 ### find out what to use for libkern
27 KERN_AS= library
28 .include "${S}/lib/libkern/Makefile.inc"
29 LIBKERN= ${KERNLIB}
30
31 .ifdef INCLUDE_LIBZ
32 ### find out what to use for libz
33 Z_AS= library
34 .include "${S}/lib/libz/Makefile.inc"
35 LIBZ= ${ZLIB}
36 .endif
37
38 ### find out what to use for libsa
39 SA_AS= library
40 SAMISCMAKEFLAGS+="SA_USE_LOADFILE=yes"
41 .include "${S}/lib/libsa/Makefile.inc"
42 LIBSA= ${SALIB}
43
44 .BEGIN:
45 @([ -h machine ] || ln -s ${S}/arch/${MACHINE}/include machine)
46