1 1.1 thorpej # $NetBSD: Makefile.bootprogs,v 1.1 1998/03/28 00:21:35 thorpej Exp $ 2 1.1 thorpej 3 1.1 thorpej .include <bsd.own.mk> # for ECOFF_TOOLCHAIN definition 4 1.1 thorpej 5 1.1 thorpej S= ${.CURDIR}/../../../.. 6 1.1 thorpej 7 1.1 thorpej .PATH: ${.CURDIR}/../common 8 1.1 thorpej 9 1.1 thorpej NOMAN= 10 1.1 thorpej STRIPFLAG= 11 1.1 thorpej BINMODE= 444 12 1.1 thorpej 13 1.1 thorpej STRIP?= strip 14 1.1 thorpej 15 1.1 thorpej .PHONY: machine-links 16 1.1 thorpej beforedepend: machine-links 17 1.1 thorpej # ${MACHINE} then ${MACHINE_ARCH} 18 1.1 thorpej machine-links: 19 1.1 thorpej -rm -f machine && \ 20 1.1 thorpej ln -s $S/arch/alpha/include machine 21 1.1 thorpej -rm -f alpha && \ 22 1.1 thorpej ln -s $S/arch/alpha/include alpha 23 1.1 thorpej CLEANFILES+=machine alpha 24 1.1 thorpej 25 1.1 thorpej all: machine-links ${PROG} 26 1.1 thorpej 27 1.1 thorpej AFLAGS += -DASSEMBLER 28 1.1 thorpej #CPPFLAGS+= -nostdinc -I${.OBJDIR} 29 1.1 thorpej CPPFLAGS+= -I${.OBJDIR} 30 1.1 thorpej CPPFLAGS += -D_STANDALONE -I${.CURDIR}/../.. -I${S} 31 1.1 thorpej CFLAGS = -Wall -Werror -mno-fp-regs -g 32 1.1 thorpej 33 1.1 thorpej # For descriptions of regions available to bootstrap programs, see 34 1.1 thorpej # section 3.4.1.2 (pp. III 3-14 - III 3-18) of the second edition of 35 1.1 thorpej # the Alpha AXP Architecture Reference Manual. 36 1.1 thorpej 37 1.1 thorpej PRIMARY_LOAD_ADDRESS= 20000000 # "Region 1 start" 38 1.1 thorpej SECONDARY_LOAD_ADDRESS= 20004000 # "Region 1 start" + 32k 39 1.1 thorpej HEAP_LIMIT= 20040000 # "Region 1 start" + 256k 40 1.1 thorpej 41 1.1 thorpej CPPFLAGS+= -DPRIMARY_LOAD_ADDRESS="0x${PRIMARY_LOAD_ADDRESS}" 42 1.1 thorpej CPPFLAGS+= -DSECONDARY_LOAD_ADDRESS="0x${SECONDARY_LOAD_ADDRESS}" 43 1.1 thorpej CPPFLAGS+= -DHEAP_LIMIT="0x${HEAP_LIMIT}" 44 1.1 thorpej 45 1.1 thorpej PRIMARY_CPPFLAGS= -DPRIMARY_BOOTBLOCK 46 1.1 thorpej FILE_FORMAT_CPPFLAGS= -DALPHA_BOOT_ECOFF -DALPHA_BOOT_ELF 47 1.1 thorpej 48 1.1 thorpej .if defined(ECOFF_TOOLCHAIN) 49 1.1 thorpej CPPFLAGS+= -DECOFF_COMPAT 50 1.1 thorpej .endif 51 1.1 thorpej 52 1.1 thorpej .include <bsd.prog.mk> 53 1.1 thorpej 54 1.1 thorpej ### find out what to use for libkern 55 1.1 thorpej KERN_AS= library 56 1.1 thorpej .include "${S}/lib/libkern/Makefile.inc" 57 1.1 thorpej LIBKERN= ${KERNLIB} 58 1.1 thorpej 59 1.1 thorpej ### find out what to use for libz 60 1.1 thorpej Z_AS= library 61 1.1 thorpej .include "${S}/lib/libz/Makefile.inc" 62 1.1 thorpej LIBZ= ${ZLIB} 63 1.1 thorpej 64 1.1 thorpej ### find out what to use for libsa 65 1.1 thorpej SA_AS= library 66 1.1 thorpej SAMISCMAKEFLAGS= SA_USE_CREAD=yes 67 1.1 thorpej .include "${S}/lib/libsa/Makefile.inc" 68 1.1 thorpej LIBSA= ${SALIB} 69