Makefile.buildboot revision 1.14
1# $NetBSD: Makefile.buildboot,v 1.14 2000/10/20 11:21:08 pk Exp $ 2 3S= ${.CURDIR}/../../../.. 4 5.PATH: ${.CURDIR}/../common ${.CURDIR}/../../sparc 6 7COMMONSOURCE= srt0.S promdev.c dvma.c promlib.c 8 9SRCS= ${COMMONSOURCE} ${PROGSOURCE} 10MKMAN= no 11BINMODE= 444 12 13# Note: relocating `boot' at 0x3C8000 seems to work on most machines 14RELOC_DEFAULT?= 3C8000 15RELOCS= $(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 20RELOC_BOOTXX= 300000 21 22CPPFLAGS+= -D_STANDALONE -DSUN4 -DSUN4C -DHEAP_VARIABLE 23 24CPPFLAGS+= -I. -I${.CURDIR}/../../.. -I${.CURDIR}/../../../.. 25CFLAGS= -O2 26CFLAGS+= -Wall -Wstrict-prototypes -Wmissing-prototypes 27 28### find out what to use for libkern 29KERN_AS= library 30.include "${S}/lib/libkern/Makefile.inc" 31LIBKERN= ${KERNLIB} 32 33.ifdef INCLUDE_LIBZ 34### find out what to use for libz 35Z_AS= library 36.include "${S}/lib/libz/Makefile.inc" 37LIBZ= ${ZLIB} 38.endif 39 40### find out what to use for libsa 41SA_AS= library 42SAMISCMAKEFLAGS+="SA_USE_LOADFILE=yes" 43.include "${S}/lib/libsa/Makefile.inc" 44LIBSA= ${SALIB} 45 46.if !make(obj) 47.BEGIN: 48 @([ -h machine ] || ln -s ${S}/arch/${MACHINE}/include machine) 49.NOPATH: machine 50CLEANFILES+= machine 51.endif 52