1#	$OpenBSD: Makefile.inc,v 1.17 2024/01/28 01:07:26 deraadt Exp $
2#	$NetBSD: Makefile.inc,v 1.8 1997/04/06 08:39:38 cgd Exp $
3
4BINDIR=			/usr/mdec
5
6# For descriptions of regions available to bootstrap programs, see
7# section 3.4.1.2 (pp. III 3-14 - III 3-18) of the second edition of
8# the Alpha AXP Architecture Reference Manual.
9
10# "Region 1 start"
11PRIMARY_LOAD_ADDRESS=	20000000
12# "Region 1 start" + 32k
13SECONDARY_LOAD_ADDRESS=	20004000
14# "Region 1 start" + 256k
15HEAP_LIMIT=		20040000
16
17CPPFLAGS+=		-DPRIMARY_LOAD_ADDRESS="0x${PRIMARY_LOAD_ADDRESS}"
18CPPFLAGS+=		-DSECONDARY_LOAD_ADDRESS="0x${SECONDARY_LOAD_ADDRESS}"
19
20CPPFLAGS+=		-D_STANDALONE
21
22EXTRACFLAGS+=		-DHEAP_LIMIT="0x${HEAP_LIMIT}"
23
24CFLAGS+=		-fno-stack-protector -fno-builtin-printf \
25			-fno-builtin-vprintf -fno-builtin-putchar \
26			-fno-builtin-puts -fno-builtin-exit -fno-stack-protector
27
28OBJCOPY?=		objcopy
29STRIP?=			strip
30